dolibarr  16.0.5
index.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2011 Dimitri Mouillard <dmouillard@teclib.com>
3  * Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2012-2014 Regis Houssin <regis.houssin@inodbox.com>
5  * Copyright (C) 2015-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
6  * Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
7  * Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <https://www.gnu.org/licenses/>.
21  */
22 
29 require '../main.inc.php';
30 require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
31 require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
32 require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
33 require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
34 require_once DOL_DOCUMENT_ROOT.'/user/class/usergroup.class.php';
35 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
36 require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
37 if (!empty($conf->deplacement->enabled)) {
38  require_once DOL_DOCUMENT_ROOT.'/compta/deplacement/class/deplacement.class.php';
39 }
40 if (!empty($conf->expensereport->enabled)) {
41  require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php';
42 }
43 if (!empty($conf->recruitment->enabled)) {
44  require_once DOL_DOCUMENT_ROOT.'/recruitment/class/recruitmentcandidature.class.php';
45  require_once DOL_DOCUMENT_ROOT.'/recruitment/class/recruitmentjobposition.class.php';
46 }
47 if (!empty($conf->holiday->enabled)) {
48  require_once DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php';
49 }
50 
51 $hookmanager = new HookManager($db);
52 $hookmanager->initHooks('hrmindex');
53 
54 // Load translation files required by the page
55 $langs->loadLangs(array('users', 'holiday', 'trips', 'boxes'));
56 
57 $socid = GETPOST("socid", "int");
58 
59 // Protection if external user
60 if ($user->socid > 0) {
62 }
63 
64 if (empty($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_COUNTRY)) {
65  $setupcompanynotcomplete = 1;
66 }
67 
68 $max = $conf->global->MAIN_SIZE_SHORTLIST_LIMIT;
69 
70 
71 /*
72  * Actions
73  */
74 
75 // Update sold
76 if (!empty($conf->holiday->enabled) && !empty($setupcompanynotcomplete)) {
77  $holidaystatic = new Holiday($db);
78  $result = $holidaystatic->updateBalance();
79 }
80 
81 
82 /*
83  * View
84  */
85 
86 $childids = $user->getAllChildIds();
87 $childids[] = $user->id;
88 
89 $title = $langs->trans('HRMArea');
90 
91 llxHeader('', $title, '');
92 
93 print load_fiche_titre($langs->trans("HRMArea"), '', 'hrm');
94 
95 
96 if (!empty($setupcompanynotcomplete)) {
97  $langs->load("errors");
98  $warnpicto = img_warning($langs->trans("WarningMandatorySetupNotComplete"));
99  print '<br><div class="warning"><a href="'.DOL_URL_ROOT.'/admin/company.php?mainmenu=home'.(empty($setupcompanynotcomplete) ? '' : '&action=edit&token='.newToken()).'">'.$warnpicto.' '.$langs->trans("WarningMandatorySetupNotComplete").'</a></div>';
100 
101  llxFooter();
102  exit;
103 }
104 
105 
106 print '<div class="fichecenter"><div class="fichethirdleft">';
107 
108 if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This is useless due to the global search combo
109  if (!empty($conf->holiday->enabled) && $user->rights->holiday->read) {
110  $langs->load("holiday");
111  $listofsearchfields['search_holiday'] = array('text'=>'TitreRequestCP');
112  }
113  if (!empty($conf->deplacement->enabled) && $user->rights->deplacement->lire) {
114  $langs->load("trips");
115  $listofsearchfields['search_deplacement'] = array('text'=>'ExpenseReport');
116  }
117  if (!empty($conf->expensereport->enabled) && $user->rights->expensereport->lire) {
118  $langs->load("trips");
119  $listofsearchfields['search_expensereport'] = array('text'=>'ExpenseReport');
120  }
121  if (count($listofsearchfields)) {
122  print '<form method="post" action="'.DOL_URL_ROOT.'/core/search.php">';
123  print '<input type="hidden" name="token" value="'.newToken().'">';
124  print '<div class="div-table-responsive-no-min">';
125  print '<table class="noborder nohover centpercent">';
126  $i = 0;
127  foreach ($listofsearchfields as $key => $value) {
128  if ($i == 0) {
129  print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
130  }
131  print '<tr '.$bc[false].'>';
132  print '<td class="nowrap"><label for="'.$key.'">'.$langs->trans($value["text"]).'</label></td><td><input type="text" class="flat inputsearch" name="'.$key.'" id="'.$key.'" size="18"></td>';
133  if ($i == 0) {
134  print '<td rowspan="'.count($listofsearchfields).'"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td>';
135  }
136  print '</tr>';
137  $i++;
138  }
139  print '</table>';
140  print '</div>';
141  print '</form>';
142  print '<br>';
143  }
144 }
145 
146 
147 if (!empty($conf->holiday->enabled)) {
148  if (empty($conf->global->HOLIDAY_HIDE_BALANCE)) {
149  $holidaystatic = new Holiday($db);
150  $user_id = $user->id;
151 
152  print '<div class="div-table-responsive-no-min">';
153  print '<table class="noborder nohover centpercent">';
154  print '<tr class="liste_titre"><th colspan="3">'.$langs->trans("Holidays").'</th></tr>';
155  print '<tr class="oddeven">';
156  print '<td>';
157 
158  $out = '';
159  $nb_holiday = 0;
160  $typeleaves = $holidaystatic->getTypes(1, 1);
161  foreach ($typeleaves as $key => $val) {
162  $nb_type = $holidaystatic->getCPforUser($user->id, $val['rowid']);
163  $nb_holiday += $nb_type;
164  $out .= ' - '.($langs->trans($val['code']) != $val['code'] ? $langs->trans($val['code']) : $val['label']).': <strong>'.($nb_type ? price2num($nb_type) : 0).'</strong><br>';
165  }
166  $balancetoshow = $langs->trans('SoldeCPUser', '{s1}');
167  print '<div class="valignmiddle div-balanceofleave">'.str_replace('{s1}', img_picto('', 'holiday', 'class="paddingleft pictofixedwidth"').'<span class="balanceofleave valignmiddle'.($nb_holiday > 0 ? ' amountpaymentcomplete' : ($nb_holiday < 0 ? ' amountremaintopay' : ' amountpaymentneutral')).'">'.round($nb_holiday, 5).'</span>', $balancetoshow).'</div>';
168  print '<span class="opacitymedium">'.$out.'</span>';
169 
170  print '</td>';
171  print '</tr>';
172  print '</table></div><br>';
173  } elseif (!is_numeric($conf->global->HOLIDAY_HIDE_BALANCE)) {
174  print $langs->trans($conf->global->HOLIDAY_HIDE_BALANCE).'<br>';
175  }
176 }
177 
178 
179 print '</div><div class="fichetwothirdright">';
180 
181 
182 
183 // Latest leave requests
184 if (!empty($conf->holiday->enabled) && $user->rights->holiday->read) {
185  $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.email, u.photo, u.statut as user_status,";
186  $sql .= " x.rowid, x.ref, x.fk_type, x.date_debut as date_start, x.date_fin as date_end, x.halfday, x.tms as dm, x.statut as status";
187  $sql .= " FROM ".MAIN_DB_PREFIX."holiday as x, ".MAIN_DB_PREFIX."user as u";
188  $sql .= " WHERE u.rowid = x.fk_user";
189  $sql .= " AND x.entity = ".$conf->entity;
190  if (empty($user->rights->holiday->readall)) {
191  $sql .= ' AND x.fk_user IN ('.$db->sanitize(join(',', $childids)).')';
192  }
193  //if (empty($user->rights->societe->client->voir) && !$user->socid) $sql.= " AND x.fk_soc = s. rowid AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
194  //if (!empty($socid)) $sql.= " AND x.fk_soc = ".((int) $socid);
195  $sql .= $db->order("x.tms", "DESC");
196  $sql .= $db->plimit($max, 0);
197 
198  $result = $db->query($sql);
199  if ($result) {
200  $var = false;
201  $num = $db->num_rows($result);
202 
203  $holidaystatic = new Holiday($db);
204  $userstatic = new User($db);
205 
206  $listhalfday = array('morning'=>$langs->trans("Morning"), "afternoon"=>$langs->trans("Afternoon"));
207  $typeleaves = $holidaystatic->getTypes(1, -1);
208 
209  $i = 0;
210 
211  print '<div class="div-table-responsive-no-min">';
212  print '<table class="noborder centpercent">';
213  print '<tr class="liste_titre">';
214  print '<th colspan="3">'.$langs->trans("BoxTitleLastLeaveRequests", min($max, $num)).'</th>';
215  print '<th>'.$langs->trans("from").'</th>';
216  print '<th>'.$langs->trans("to").'</th>';
217  print '<th class="right" colspan="2"><a href="'.DOL_URL_ROOT.'/holiday/list.php?sortfield=cp.tms&sortorder=DESC">'.$langs->trans("FullList").'</th>';
218  print '</tr>';
219  if ($num) {
220  while ($i < $num && $i < $max) {
221  $obj = $db->fetch_object($result);
222 
223  $holidaystatic->id = $obj->rowid;
224  $holidaystatic->ref = $obj->ref;
225  $holidaystatic->statut = $obj->status;
226  $holidaystatic->date_debut = $db->jdate($obj->date_start);
227 
228  $userstatic->id = $obj->uid;
229  $userstatic->lastname = $obj->lastname;
230  $userstatic->firstname = $obj->firstname;
231  $userstatic->login = $obj->login;
232  $userstatic->photo = $obj->photo;
233  $userstatic->email = $obj->email;
234  $userstatic->statut = $obj->user_status;
235 
236  print '<tr class="oddeven">';
237  print '<td class="nowraponall">'.$holidaystatic->getNomUrl(1).'</td>';
238  print '<td class="tdoverflowmax100">'.$userstatic->getNomUrl(-1, 'leave').'</td>';
239 
240  $leavecode = empty($typeleaves[$obj->fk_type]) ? 'Undefined' : $typeleaves[$obj->fk_type]['code'];
241  print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($langs->trans($leavecode)).'">'.dol_escape_htmltag($langs->trans($leavecode)).'</td>';
242 
243  $starthalfday = ($obj->halfday == -1 || $obj->halfday == 2) ? 'afternoon' : 'morning';
244  $endhalfday = ($obj->halfday == 1 || $obj->halfday == 2) ? 'morning' : 'afternoon';
245 
246  print '<td>'.dol_print_date($db->jdate($obj->date_start), 'day').' <span class="opacitymedium">'.$langs->trans($listhalfday[$starthalfday]).'</span>';
247  print '<td>'.dol_print_date($db->jdate($obj->date_end), 'day').' <span class="opacitymedium">'.$langs->trans($listhalfday[$endhalfday]).'</span>';
248  print '<td class="right">'.dol_print_date($db->jdate($obj->dm), 'day').'</td>';
249  print '<td class="right nowrap" width="16">'.$holidaystatic->LibStatut($obj->status, 3, $holidaystatic->date_debut).'</td>';
250  print '</tr>';
251 
252  $i++;
253  }
254  } else {
255  print '<tr class="oddeven"><td colspan="7" class="opacitymedium">'.$langs->trans("None").'</td></tr>';
256  }
257  print '</table>';
258  print '</div>';
259  print '<br>';
260  } else {
261  dol_print_error($db);
262  }
263 }
264 
265 
266 // Latest expense report
267 if (!empty($conf->expensereport->enabled) && $user->rights->expensereport->lire) {
268  $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.email, u.statut as user_status, u.photo,";
269  $sql .= " x.rowid, x.ref, x.date_debut as date, x.tms as dm, x.total_ttc, x.fk_statut as status";
270  $sql .= " FROM ".MAIN_DB_PREFIX."expensereport as x, ".MAIN_DB_PREFIX."user as u";
271  //if (empty($user->rights->societe->client->voir) && !$user->socid) $sql.= ", ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."societe_commerciaux as sc";
272  $sql .= " WHERE u.rowid = x.fk_user_author";
273  $sql .= " AND x.entity = ".$conf->entity;
274  if (empty($user->rights->expensereport->readall) && empty($user->rights->expensereport->lire_tous)) {
275  $sql .= ' AND x.fk_user_author IN ('.$db->sanitize(join(',', $childids)).')';
276  }
277  //if (empty($user->rights->societe->client->voir) && !$user->socid) $sql.= " AND x.fk_soc = s. rowid AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
278  //if (!empty($socid)) $sql.= " AND x.fk_soc = ".((int) $socid);
279  $sql .= $db->order("x.tms", "DESC");
280  $sql .= $db->plimit($max, 0);
281 
282  $result = $db->query($sql);
283  if ($result) {
284  $num = $db->num_rows($result);
285 
286  $i = 0;
287 
288  print '<div class="div-table-responsive-no-min">';
289  print '<table class="noborder centpercent">';
290  print '<tr class="liste_titre">';
291  print '<th colspan="2">'.$langs->trans("BoxTitleLastModifiedExpenses", min($max, $num)).'</th>';
292  print '<th class="right">'.$langs->trans("TotalTTC").'</th>';
293  print '<th class="right" colspan="2"><a href="'.DOL_URL_ROOT.'/expensereport/list.php?sortfield=d.tms&sortorder=DESC">'.$langs->trans("FullList").'</th>';
294  print '</tr>';
295  if ($num) {
296  $total_ttc = $totalam = $total = 0;
297 
298  $expensereportstatic = new ExpenseReport($db);
299  $userstatic = new User($db);
300  while ($i < $num && $i < $max) {
301  $obj = $db->fetch_object($result);
302 
303  $expensereportstatic->id = $obj->rowid;
304  $expensereportstatic->ref = $obj->ref;
305  $expensereportstatic->statut = $obj->status;
306  $expensereportstatic->status = $obj->status;
307 
308  $userstatic->id = $obj->uid;
309  $userstatic->lastname = $obj->lastname;
310  $userstatic->firstname = $obj->firstname;
311  $userstatic->email = $obj->email;
312  $userstatic->login = $obj->login;
313  $userstatic->statut = $obj->user_status;
314  $userstatic->photo = $obj->photo;
315 
316  print '<tr class="oddeven">';
317  print '<td class="tdoverflowmax200">'.$expensereportstatic->getNomUrl(1).'</td>';
318  print '<td class="tdoverflowmax150">'.$userstatic->getNomUrl(-1).'</td>';
319  print '<td class="right amount">'.price($obj->total_ttc).'</td>';
320  print '<td class="right">'.dol_print_date($db->jdate($obj->dm), 'day').'</td>';
321  print '<td class="right nowraponall" width="16">'.$expensereportstatic->LibStatut($obj->status, 3).'</td>';
322  print '</tr>';
323 
324  $i++;
325  }
326  } else {
327  print '<tr class="oddeven"><td colspan="5" class="opacitymedium">'.$langs->trans("None").'</td></tr>';
328  }
329  print '</table>';
330  print '</div>';
331  print '<br>';
332  } else {
333  dol_print_error($db);
334  }
335 }
336 
337 
338 // Last modified job position
339 if (!empty($conf->recruitment->enabled) && $user->rights->recruitment->recruitmentjobposition->read) {
340  $staticrecruitmentcandidature = new RecruitmentCandidature($db);
341  $staticrecruitmentjobposition = new RecruitmentJobPosition($db);
342  $sql = "SELECT rc.rowid, rc.ref, rc.email, rc.lastname, rc.firstname, rc.date_creation, rc.tms, rc.status,";
343  $sql.= " rp.rowid as jobid, rp.ref as jobref, rp.label";
344  $sql .= " FROM ".MAIN_DB_PREFIX."recruitment_recruitmentcandidature as rc";
345  $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."recruitment_recruitmentjobposition as rp ON rc.fk_recruitmentjobposition = rp.rowid";
346  if (isModEnabled('societe') && empty($user->rights->societe->client->voir) && !$socid) {
347  $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
348  }
349  $sql .= " WHERE rc.entity IN (".getEntity($staticrecruitmentcandidature->element).")";
350  if (isModEnabled('societe') && empty($user->rights->societe->client->voir) && !$socid) {
351  $sql .= " AND rp.fk_soc = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
352  }
353  if ($socid) {
354  $sql .= " AND rp.fk_soc = $socid";
355  }
356  $sql .= $db->order("rc.tms", "DESC");
357  $sql .= $db->plimit($max, 0);
358 
359  $resql = $db->query($sql);
360  if ($resql) {
361  $num = $db->num_rows($resql);
362  $i = 0;
363 
364  print '<div class="div-table-responsive-no-min">';
365  print '<table class="noborder centpercent">';
366  print '<tr class="liste_titre">';
367  print '<th colspan="3">';
368  print $langs->trans("BoxTitleLatestModifiedCandidatures", min($max, $num));
369  print '</th>';
370  print '<th class="right" colspan="2"><a href="'.DOL_URL_ROOT.'/recruitment/recruitmentcandidature_list.php?sortfield=t.tms&sortorder=DESC">'.$langs->trans("FullList").'</th>';
371  print '</tr>';
372  if ($num) {
373  while ($i < $num) {
374  $objp = $db->fetch_object($resql);
375  $staticrecruitmentcandidature->id = $objp->rowid;
376  $staticrecruitmentcandidature->ref = $objp->ref;
377  $staticrecruitmentcandidature->email = $objp->email;
378  $staticrecruitmentcandidature->status = $objp->status;
379  $staticrecruitmentcandidature->date_creation = $objp->date_creation;
380  $staticrecruitmentcandidature->firstname = $objp->firstname;
381  $staticrecruitmentcandidature->lastname = $objp->lastname;
382 
383  $staticrecruitmentjobposition->id = $objp->jobid;
384  $staticrecruitmentjobposition->ref = $objp->jobref;
385  $staticrecruitmentjobposition->label = $objp->label;
386 
387  print '<tr class="oddeven">';
388  print '<td class="nowraponall">'.$staticrecruitmentcandidature->getNomUrl(1, '').'</td>';
389  print '<td class="tdoverflowmax150">'.$staticrecruitmentcandidature->getFullName($langs).'</td>';
390  print '<td class="nowraponall">'.$staticrecruitmentjobposition->getNomUrl(1).'</td>';
391  print '<td class="right nowrap">'.dol_print_date($db->jdate($objp->tms), 'day').'</td>';
392  print '<td class="right nowrap" width="16">';
393  print $staticrecruitmentcandidature->getLibStatut(3);
394  print "</td>";
395  print '</tr>';
396  $i++;
397  }
398 
399  $db->free($resql);
400  } else {
401  print '<tr class="oddeven"><td colspan="4" class="opacitymedium">'.$langs->trans("None").'</td></tr>';
402  }
403  print "</table>";
404  print "</div>";
405  print "<br>";
406  } else {
407  dol_print_error($db);
408  }
409 }
410 
411 print '</div></div>';
412 
413 // Initialize technical object to manage hooks. Note that conf->hooks_modules contains array
414 $parameters = array('user' => $user);
415 $reshook = $hookmanager->executeHooks('dashboardHRM', $parameters, $object); // Note that $action and $object may have been modified by hook
416 
417 // End of page
418 llxFooter();
419 $db->close();
dol_escape_htmltag
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields.
Definition: functions.lib.php:1468
load_fiche_titre
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
Definition: functions.lib.php:5204
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
dol_print_error
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Definition: functions.lib.php:4844
img_warning
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
Definition: functions.lib.php:4521
RecruitmentJobPosition
Class for RecruitmentJobPosition.
Definition: recruitmentjobposition.class.php:32
price2num
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
Definition: functions.lib.php:5661
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3880
llxFooter
llxFooter()
Footer empty.
Definition: index.php:71
Holiday
Class of the module paid holiday.
Definition: holiday.class.php:34
RecruitmentCandidature
Class for RecruitmentCandidature.
Definition: recruitmentcandidature.class.php:32
llxHeader
if(!defined('NOTOKENRENEWAL')) if(!defined('NOLOGIN')) if(!defined('NOCSRFCHECK')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) if(!defined('NOIPCHECK')) if(!defined('NOBROWSERNOTIF')) llxHeader()
Header empty.
Definition: index.php:63
isModEnabled
isModEnabled($module)
Is Dolibarr module enabled.
Definition: functions.lib.php:105
User
Class to manage Dolibarr users.
Definition: user.class.php:44
ExpenseReport
Class to manage Trips and Expenses.
Definition: expensereport.class.php:36
$resql
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->rights->fournisseur->facture->lire)||(isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
Definition: index.php:742
accessforbidden
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Definition: security.lib.php:933
HookManager
Class to manage hooks.
Definition: hookmanager.class.php:30