Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
gf.bdcloud.fr /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
dolistore
[ DIR ]
drwxrwxrwx
2020-10-12 13:32
menus
[ DIR ]
drwxrwxrwx
2020-10-12 13:32
system
[ DIR ]
drwxrwxrwx
2022-07-01 18:32
tools
[ DIR ]
drwxrwxrwx
2020-10-12 13:32
.htaccess
510
B
-rw-r--r--
2023-01-18 07:38
accountant.php
9
KB
-rwxrwxrwx
2020-10-12 13:32
agenda.php
7.11
KB
-rwxrwxrwx
2020-10-12 13:32
agenda_extrafields.php
4.07
KB
-rwxrwxrwx
2020-10-12 13:32
agenda_extsites.php
8.36
KB
-rwxrwxrwx
2020-10-12 13:32
agenda_other.php
14.35
KB
-rwxrwxrwx
2020-10-12 13:32
agenda_reminder.php
7.75
KB
-rwxrwxrwx
2020-10-12 13:32
agenda_xcal.php
8.62
KB
-rwxrwxrwx
2020-10-12 13:32
bank.php
18.42
KB
-rwxrwxrwx
2020-10-12 13:32
bank_extrafields.php
3.28
KB
-rwxrwxrwx
2020-10-12 13:32
barcode.php
13.36
KB
-rwxrwxrwx
2020-10-12 13:32
bom.php
17.08
KB
-rwxrwxrwx
2020-10-12 13:32
bom_extrafields.php
3.15
KB
-rwxrwxrwx
2020-10-12 13:32
boxes.php
17.11
KB
-rwxrwxrwx
2020-10-12 13:32
chequereceipts.php
9.17
KB
-rwxrwxrwx
2020-10-12 13:32
clicktodial.php
5.32
KB
-rwxrwxrwx
2020-10-12 13:32
commande.php
26.71
KB
-rwxrwxrwx
2020-10-12 13:32
commande_fournisseur_dispatch_extrafields.php
4.19
KB
-rwxrwxrwx
2020-10-12 13:32
company.php
41.23
KB
-rwxrwxrwx
2020-10-12 13:32
compta.php
6.71
KB
-rwxrwxrwx
2020-10-12 13:32
confexped.php
4.43
KB
-rwxrwxrwx
2020-10-12 13:32
const.php
10.37
KB
-rwxrwxrwx
2020-10-12 13:32
contract.php
17.07
KB
-rwxrwxrwx
2020-10-12 13:32
dav.php
6.21
KB
-rwxrwxrwx
2020-10-12 13:32
debugbar.php
3.63
KB
-rwxrwxrwx
2020-10-12 13:32
defaultvalues.php
15.81
KB
-rwxrwxrwx
2020-10-12 13:32
delais.php
15.48
KB
-rwxrwxrwx
2020-10-12 13:32
dict.php
103.09
KB
-rwxrwxrwx
2020-10-12 13:32
ecm.php
2.89
KB
-rwxrwxrwx
2020-10-12 13:32
emailcollector_card.php
27.68
KB
-rwxrwxrwx
2020-10-12 13:32
emailcollector_list.php
22.46
KB
-rwxrwxrwx
2020-10-12 13:32
events.php
4.55
KB
-rwxrwxrwx
2020-10-12 13:32
expedition.php
17.47
KB
-rwxrwxrwx
2020-10-12 13:32
expedition_extrafields.php
4.11
KB
-rwxrwxrwx
2020-10-12 13:32
expeditiondet_extrafields.php
4.2
KB
-rwxrwxrwx
2020-10-12 13:32
expensereport.php
16.49
KB
-rwxrwxrwx
2020-10-12 13:32
expensereport_extrafields.php
3.99
KB
-rwxrwxrwx
2020-10-12 13:32
expensereport_ik.php
6.15
KB
-rwxrwxrwx
2020-10-12 13:32
expensereport_rules.php
11.11
KB
-rwxrwxrwx
2020-10-12 13:32
export.php
3.52
KB
-rwxrwxrwx
2020-10-12 13:32
external_rss.php
10.95
KB
-rwxrwxrwx
2020-10-12 13:32
facture.php
32.26
KB
-rwxrwxrwx
2020-10-12 13:32
facture_situation.php
7.96
KB
-rwxrwxrwx
2020-10-12 13:32
fckeditor.php
8.09
KB
-rwxrwxrwx
2020-10-12 13:32
fichinter.php
21.22
KB
-rwxrwxrwx
2020-10-12 13:32
geoipmaxmind.php
5.6
KB
-rwxrwxrwx
2020-10-12 13:32
holiday.php
17.49
KB
-rwxrwxrwx
2020-10-12 13:32
holiday_extrafields.php
3.96
KB
-rwxrwxrwx
2020-10-12 13:32
ihm.php
20.57
KB
-rwxrwxrwx
2020-10-12 13:32
import.php
3.37
KB
-rwxrwxrwx
2020-10-12 13:32
index.php
32.73
KB
-rwxrwxrwx
2023-01-18 07:38
ldap.php
12.79
KB
-rwxrwxrwx
2020-10-12 13:32
ldap_contacts.php
15.03
KB
-rwxrwxrwx
2020-10-12 13:32
ldap_groups.php
9.72
KB
-rwxrwxrwx
2020-10-12 13:32
ldap_members.php
19.98
KB
-rwxrwxrwx
2020-10-12 13:32
ldap_members_types.php
8.8
KB
-rwxrwxrwx
2020-10-12 13:32
ldap_users.php
21.81
KB
-rwxrwxrwx
2020-10-12 13:32
limits.php
14.38
KB
-rwxrwxrwx
2020-10-12 13:32
livraison.php
16.06
KB
-rwxrwxrwx
2020-10-12 13:32
livraison_extrafields.php
4.11
KB
-rwxrwxrwx
2020-10-12 13:32
livraisondet_extrafields.php
4.2
KB
-rwxrwxrwx
2020-10-12 13:32
loan.php
3.21
KB
-rwxrwxrwx
2020-10-12 13:32
mailing.php
5.39
KB
-rwxrwxrwx
2020-10-12 13:32
mailman.php
7.98
KB
-rwxrwxrwx
2020-10-12 13:32
mails.php
38.72
KB
-rwxrwxrwx
2020-10-12 13:32
mails_emailing.php
25.54
KB
-rwxrwxrwx
2020-10-12 13:32
mails_senderprofile_list.php
26.84
KB
-rwxrwxrwx
2020-10-12 13:32
mails_templates.php
47.01
KB
-rwxrwxrwx
2020-10-12 13:32
menus.php
8.02
KB
-rwxrwxrwx
2020-10-12 13:32
modulehelp.php
19.21
KB
-rwxrwxrwx
2020-10-12 13:32
modules.php
47.39
KB
-rwxrwxrwx
2020-10-12 13:32
mrp.php
17.18
KB
-rwxrwxrwx
2020-10-12 13:32
mrp_extrafields.php
3.15
KB
-rwxrwxrwx
2020-10-12 13:32
multicurrency.php
12.77
KB
-rwxrwxrwx
2020-10-12 13:32
notification.php
14.83
KB
-rwxrwxrwx
2020-10-12 13:32
oauth.php
4.79
KB
-rwxrwxrwx
2020-10-12 13:32
oauthlogintokens.php
14.72
KB
-rwxrwxrwx
2020-10-12 13:32
openinghours.php
6.44
KB
-rwxrwxrwx
2020-10-12 13:32
order_extrafields.php
3.99
KB
-rwxrwxrwx
2020-10-12 13:32
orderdet_extrafields.php
4.07
KB
-rwxrwxrwx
2020-10-12 13:32
payment.php
10.11
KB
-rwxrwxrwx
2020-10-12 13:32
paymentbybanktransfer.php
17.89
KB
-rwxrwxrwx
2020-10-12 13:32
pdf.php
14.64
KB
-rwxrwxrwx
2020-10-12 13:32
perms.php
7.88
KB
-rwxrwxrwx
2020-10-12 13:32
prelevement.php
17.86
KB
-rwxrwxrwx
2020-10-12 13:32
propal.php
25.87
KB
-rwxrwxrwx
2020-10-12 13:32
proxy.php
6.7
KB
-rwxrwxrwx
2020-10-12 13:32
receiptprinter.php
18.14
KB
-rwxrwxrwx
2020-10-12 13:32
reception_extrafields.php
4.1
KB
-rwxrwxrwx
2020-10-12 13:32
reception_setup.php
17.21
KB
-rwxrwxrwx
2020-10-12 13:32
resource.php
4.31
KB
-rwxrwxrwx
2020-10-12 13:32
resource_extrafields.php
3.98
KB
-rwxrwxrwx
2020-10-12 13:32
security.php
16.45
KB
-rwxrwxrwx
2020-10-12 13:32
security_file.php
7.04
KB
-rwxrwxrwx
2020-10-12 13:32
security_other.php
6.34
KB
-rwxrwxrwx
2020-10-12 13:32
sms.php
11.46
KB
-rwxrwxrwx
2020-10-12 13:32
socialnetworks.php
3.22
KB
-rwxrwxrwx
2020-10-12 13:32
spip.php
5.09
KB
-rwxrwxrwx
2020-10-12 13:32
stock.php
19
KB
-rwxrwxrwx
2020-10-12 13:32
supplier_invoice.php
18.75
KB
-rwxrwxrwx
2020-10-12 13:32
supplier_order.php
21.49
KB
-rwxrwxrwx
2020-10-12 13:32
supplier_payment.php
16.64
KB
-rwxrwxrwx
2020-10-12 13:32
supplier_proposal.php
20.6
KB
-rwxrwxrwx
2020-10-12 13:32
supplierinvoice_extrafields.php
4.14
KB
-rwxrwxrwx
2020-10-12 13:32
supplierinvoicedet_extrafields.php
4.19
KB
-rwxrwxrwx
2020-10-12 13:32
supplierorder_extrafields.php
4.04
KB
-rwxrwxrwx
2020-10-12 13:32
supplierorderdet_extrafields.php
4.14
KB
-rwxrwxrwx
2020-10-12 13:32
syslog.php
10.16
KB
-rwxrwxrwx
2020-10-12 13:32
taxes.php
8.77
KB
-rwxrwxrwx
2020-10-12 13:32
ticket.php
14.26
KB
-rwxrwxrwx
2020-10-12 13:32
ticket_extrafields.php
3.74
KB
-rwxrwxrwx
2020-10-12 13:32
ticket_public.php
15.61
KB
-rwxrwxrwx
2020-10-12 13:32
translation.php
23.06
KB
-rwxrwxrwx
2020-10-12 13:32
triggers.php
2.74
KB
-rwxrwxrwx
2020-10-12 13:32
user.php
11.86
KB
-rwxrwxrwx
2020-10-12 13:32
usergroup.php
9.94
KB
-rwxrwxrwx
2020-10-12 13:32
website.php
23.57
KB
-rwxrwxrwx
2020-10-12 13:32
website_options.php
4.72
KB
-rwxrwxrwx
2020-10-12 13:32
workflow.php
7.43
KB
-rwxrwxrwx
2020-10-12 13:32
Save
Rename
<?php /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2013 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2011 Herve Prot <herve.prot@symeos.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/admin/perms.php * \ingroup core * \brief Page d'administration/configuration des permissions par defaut */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; // Load translation files required by the page $langs->loadLangs(array('admin', 'users', 'other')); $action = GETPOST('action', 'aZ09'); if (!$user->admin) accessforbidden(); $entity = $conf->entity; /* * Actions */ if ($action == 'add') { $sql = "UPDATE ".MAIN_DB_PREFIX."rights_def SET bydefault=1"; $sql .= " WHERE id = ".GETPOST("pid", 'int'); $sql .= " AND entity = ".$conf->entity; $db->query($sql); } if ($action == 'remove') { $sql = "UPDATE ".MAIN_DB_PREFIX."rights_def SET bydefault=0"; $sql .= " WHERE id = ".GETPOST('pid', 'int'); $sql .= " AND entity = ".$conf->entity; $db->query($sql); } /* * View */ $wikihelp = 'EN:Setup_Security|FR:Paramétrage_Sécurité|ES:Configuración_Seguridad'; llxHeader('', $langs->trans("DefaultRights"), $wikihelp); print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup'); print '<span class="opacitymedium">'.$langs->trans("DefaultRightsDesc")." ".$langs->trans("OnlyActiveElementsAreShown")."</span><br><br>\n"; $db->begin(); // Search all modules with permission and reload permissions def. $modules = array(); $modulesdir = dolGetModulesDirs(); foreach ($modulesdir as $dir) { $handle = @opendir(dol_osencode($dir)); if (is_resource($handle)) { while (($file = readdir($handle)) !== false) { if (is_readable($dir.$file) && substr($file, 0, 3) == 'mod' && substr($file, dol_strlen($file) - 10) == '.class.php') { $modName = substr($file, 0, dol_strlen($file) - 10); if ($modName) { include_once $dir.$file; $objMod = new $modName($db); // Load all lang files of module if (isset($objMod->langfiles) && is_array($objMod->langfiles)) { foreach ($objMod->langfiles as $domain) { $langs->load($domain); } } // Load all permissions if ($objMod->rights_class) { $ret = $objMod->insert_permissions(0, $entity); $modules[$objMod->rights_class] = $objMod; //print "modules[".$objMod->rights_class."]=$objMod;"; } } } } } } $db->commit(); $head = security_prepare_head(); dol_fiche_head($head, 'default', $langs->trans("Security"), -1); // Show warning about external users print info_admin(showModulesExludedForExternal($modules)).'<br>'."\n"; print "\n"; print '<div class="div-table-responsive-no-min">'; print '<table class="noborder centpercent">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("Module").'</td>'; print '<td class="center"> </td>'; print '<td class="center">'.$langs->trans("Default").'</td>'; print '<td>'.$langs->trans("Permissions").'</td>'; print '</tr>'."\n"; //print "xx".$conf->global->MAIN_USE_ADVANCED_PERMS; $sql = "SELECT r.id, r.libelle as label, r.module, r.module_position, r.perms, r.subperms, r.bydefault"; $sql .= " FROM ".MAIN_DB_PREFIX."rights_def as r"; $sql .= " WHERE r.libelle NOT LIKE 'tou%'"; // On ignore droits "tous" $sql .= " AND r.entity = ".$entity; if (empty($conf->global->MAIN_USE_ADVANCED_PERMS)) $sql .= " AND r.perms NOT LIKE '%_advance'"; // Hide advanced perms if option is not enabled $sql .= " ORDER BY r.family_position, r.module_position, r.module, r.id"; $result = $db->query($sql); if ($result) { $num = $db->num_rows($result); $i = 0; $oldmod = ''; while ($i < $num) { $obj = $db->fetch_object($result); // If line is for a module that doe snot existe anymore (absent of includes/module), we ignore it if (empty($modules[$obj->module])) { $i++; continue; } // Save field module_position in database if value is still zero if (empty($obj->module_position)) { if (is_object($modules[$obj->module]) && ($modules[$obj->module]->module_position > 0)) { // TODO Define familyposition $family = $modules[$obj->module]->family_position; $familyposition = 0; $sqlupdate = 'UPDATE '.MAIN_DB_PREFIX."rights_def SET module_position = ".$modules[$obj->module]->module_position.","; $sqlupdate .= " family_position = ".$familyposition; $sqlupdate .= " WHERE module_position = 0 AND module = '".$db->escape($obj->module)."'"; $db->query($sqlupdate); } } // Check if permission we found is inside a module definition. If not, we discard it. $found = false; foreach ($modules[$obj->module]->rights as $key => $val) { $rights_class = $objMod->rights_class; if ($val[4] == $obj->perms && (empty($val[5]) || $val[5] == $obj->subperms)) { $found = true; break; } } if (!$found) { $i++; continue; } // Break found, it's a new module to catch if (isset($obj->module) && ($oldmod <> $obj->module)) { $oldmod = $obj->module; // Break detected, we get objMod $objMod = $modules[$obj->module]; $picto = ($objMod->picto ? $objMod->picto : 'generic'); // Show break line print '<tr class="oddeven trforbreak">'; print '<td class="maxwidthonsmartphone tdoverflowonsmartphone">'; print img_object('', $picto, 'class="pictoobjectwidth paddingright"').' '.$objMod->getName(); print '<a name="'.$objMod->getName().'"></a>'; print '</td>'; print '<td> </td>'; print '<td> </td>'; print '<td> </td>'; print '</tr>'."\n"; } $perm_libelle = ($conf->global->MAIN_USE_ADVANCED_PERMS && ($langs->trans("PermissionAdvanced".$obj->id) != ("PermissionAdvanced".$obj->id)) ? $langs->trans("PermissionAdvanced".$obj->id) : (($langs->trans("Permission".$obj->id) != ("Permission".$obj->id)) ? $langs->trans("Permission".$obj->id) : $obj->label)); print '<tr class="oddeven">'; // Picto and label of module print '<td class="maxwidthonsmartphone tdoverflowonsmartphone">'; print '</td>'; // Tick if ($obj->bydefault == 1) { print '<td>'; print '<a class="reposition" href="perms.php?pid='.$obj->id.'&action=remove">'.img_edit_remove().'</a>'; print '</td>'; print '<td class="center">'; print img_picto($langs->trans("Active"), 'tick'); print '</td>'; } else { print '<td>'; print '<a class="reposition" href="perms.php?pid='.$obj->id.'&action=add">'.img_edit_add().'</a>'; print '</td>'; print '<td class="center">'; print ' '; print '</td>'; } // Permission and tick print '<td>'.$perm_libelle.'</td>'; print '</tr>'."\n"; $i++; } } else dol_print_error($db); print '</table>'; print '</div>'; dol_fiche_end(); // End of page llxFooter(); $db->close();