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 /
gf.bdcloud.fr /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
class
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
group
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
notify
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
agenda_extsites.php
7.87
KB
-rw-r--r--
2020-10-12 13:32
bank.php
20.18
KB
-rw-r--r--
2020-10-12 13:32
card.php
103.15
KB
-rw-r--r--
2020-10-12 13:32
clicktodial.php
7.49
KB
-rw-r--r--
2020-10-12 13:32
document.php
6.28
KB
-rw-r--r--
2020-10-12 13:32
hierarchy.php
8.26
KB
-rw-r--r--
2020-10-12 13:32
home.php
8.43
KB
-rw-r--r--
2020-10-12 13:32
index.html
1
B
-rw-r--r--
2020-10-12 13:32
info.php
2.48
KB
-rw-r--r--
2020-10-12 13:32
ldap.php
6.38
KB
-rw-r--r--
2020-10-12 13:32
list.php
29.59
KB
-rw-r--r--
2020-10-12 13:32
logout.php
3.55
KB
-rw-r--r--
2020-10-12 13:32
note.php
5.06
KB
-rw-r--r--
2020-10-12 13:32
param_ihm.php
19.54
KB
-rw-r--r--
2020-10-12 13:32
passwordforgotten.php
8.45
KB
-rw-r--r--
2020-10-12 13:32
perms.php
15.56
KB
-rw-r--r--
2020-10-12 13:32
Save
Rename
<?php /* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org> * Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com> * Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr> * * 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/user/hierarchy.php * \ingroup user * \brief Page of hierarchy view of user module */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/treeview.lib.php'; if (!$user->rights->user->user->lire && !$user->admin) accessforbidden(); // Load translation files required by page $langs->loadLangs(array('users', 'companies')); // Security check (for external users) $socid = 0; if ($user->socid > 0) $socid = $user->socid; $sall = trim((GETPOST('search_all', 'alphanohtml') != '') ?GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml')); $search_user = GETPOST('search_user', 'alpha'); $userstatic = new User($db); $search_statut = GETPOST('search_statut', 'int'); if ($search_statut == '') $search_statut = '1'; if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter', 'alpha')) // Both test are required to be compatible with all browsers { $search_statut = ""; } // Define value to know what current user can do on users $canadduser = (!empty($user->admin) || $user->rights->user->user->creer); /* * View */ $form = new Form($db); $arrayofjs = array( '/includes/jquery/plugins/jquerytreeview/jquery.treeview.js', '/includes/jquery/plugins/jquerytreeview/lib/jquery.cookie.js', ); $arrayofcss = array('/includes/jquery/plugins/jquerytreeview/jquery.treeview.css'); llxHeader('', $langs->trans("ListOfUsers").' - '.$langs->trans("HierarchicView"), '', '', 0, 0, $arrayofjs, $arrayofcss); // Load hierarchy of users $user_arbo = $userstatic->get_full_tree(0, ($search_statut != '' && $search_statut >= 0) ? "statut = ".$search_statut : ''); if (!is_array($user_arbo) && $user_arbo < 0) { setEventMessages($userstatic->error, $userstatic->errors, 'warnings'); } else { // Define fulltree array $fulltree = $user_arbo; //var_dump($fulltree); // Define data (format for treeview) $data = array(); $data[] = array('rowid'=>0, 'fk_menu'=>-1, 'title'=>"racine", 'mainmenu'=>'', 'leftmenu'=>'', 'fk_mainmenu'=>'', 'fk_leftmenu'=>''); foreach ($fulltree as $key => $val) { $userstatic->id = $val['id']; $userstatic->ref = $val['label']; $userstatic->login = $val['login']; $userstatic->firstname = $val['firstname']; $userstatic->lastname = $val['lastname']; $userstatic->statut = $val['statut']; $userstatic->email = $val['email']; $userstatic->gender = $val['gender']; $userstatic->socid = $val['fk_soc']; $userstatic->admin = $val['admin']; $userstatic->entity = $val['entity']; $userstatic->photo = $val['photo']; $entity = $val['entity']; $entitystring = ''; // TODO Set of entitystring should be done with a hook if (!empty($conf->multicompany->enabled) && is_object($mc)) { if (empty($entity)) { $entitystring = $langs->trans("AllEntities"); } else { $mc->getInfo($entity); $entitystring = $mc->label; } } $li = $userstatic->getNomUrl(-1, '', 0, 1); if (!empty($conf->multicompany->enabled) && $userstatic->admin && !$userstatic->entity) { $li .= img_picto($langs->trans("SuperAdministrator"), 'redstar'); } elseif ($userstatic->admin) { $li .= img_picto($langs->trans("Administrator"), 'star'); } $li .= ' ('.$val['login'].($entitystring ? ' - '.$entitystring : '').')'; $data[] = array( 'rowid'=>$val['rowid'], 'fk_menu'=>$val['fk_user'], 'statut'=>$val['statut'], 'entry'=>'<table class="nobordernopadding centpercent"><tr><td class="'.($val['statut'] ? 'usertdenabled' : 'usertddisabled').'">'.$li.'</td><td align="right" class="'.($val['statut'] ? 'usertdenabled' : 'usertddisabled').'">'.$userstatic->getLibStatut(3).'</td></tr></table>' ); } //var_dump($data); $title = $langs->trans("ListOfUsers").' - '.$langs->trans("HierarchicView"); $param = "search_statut=".urlencode($search_statut); $newcardbutton = ''; if ($canadduser) { $newcardbutton .= dolGetButtonTitle($langs->trans('NewUser'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/user/card.php?action=create'.($mode == 'employee' ? '&employee=1' : '').'&leftmenu='); } $morehtmlright .= dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-list paddingleft', DOL_URL_ROOT.'/user/list.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : '')); print load_fiche_titre($title, $morehtmlright.' '.$newcardbutton, 'user'); print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">'."\n"; if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">'; print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="sortfield" value="'.$sortfield.'">'; print '<input type="hidden" name="sortorder" value="'.$sortorder.'">'; print '<input type="hidden" name="page" value="'.$page.'">'; print '<input type="hidden" name="mode" value="'.$mode.'">'; print '<input type="hidden" name="contextpage" value="'.$contextpage.'">'; print '<table class="liste nohover centpercent">'; print '<tr class="liste_titre_filter">'; print '<td class="liste_titre"> </td>'; print '<td class="liste_titre"> </td>'; // Status print '<td class="liste_titre right">'; print $form->selectarray('search_statut', array('-1'=>'', '1'=>$langs->trans('Enabled')), $search_statut); print '</td>'; print '<td class="liste_titre maxwidthsearch">'; $searchpicto = $form->showFilterAndCheckAddButtons(0); print $searchpicto; print '</td>'; print '</tr>'; print '<tr class="liste_titre">'; print_liste_field_titre("HierarchicView"); print_liste_field_titre('<div id="iddivjstreecontrol"><a href="#">'.img_picto('', 'folder', 'class="paddingright"').$langs->trans("UndoExpandAll").'</a> | <a href="#">'.img_picto('', 'folder-open', 'class="paddingright"').$langs->trans("ExpandAll").'</a></div>', $_SERVER['PHP_SELF'], "", '', "", 'align="center"'); print_liste_field_titre("Status", $_SERVER['PHP_SELF'], "", '', "", 'align="right"'); print_liste_field_titre('', $_SERVER["PHP_SELF"], "", '', '', '', '', '', 'maxwidthsearch '); print '</tr>'; $nbofentries = (count($data) - 1); if ($nbofentries > 0) { print '<tr '.$bc[false].'><td colspan="3">'; tree_recur($data, $data[0], 0); print '</td>'; print '<td></td>'; print '</tr>'; } else { print '<tr '.$bc[true].'>'; print '<td colspan="3">'; print '<table class="nobordernopadding"><tr class="nobordernopadding"><td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>'; print '<td valign="middle">'; print $langs->trans("NoCategoryYet"); print '</td>'; print '<td> </td>'; print '</table>'; print '</td>'; print '<td></td>'; print '</tr>'; } print "</table>"; print "</form>\n"; } // /*print '<script type="text/javascript" language="javascript"> jQuery(document).ready(function() { function init_myfunc() { jQuery(".usertddisabled").hide(); } init_myfunc(); }); </script>'; */ // End of page llxFooter(); $db->close();