dolibarr 21.0.0-alpha
setup.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2004-2020 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
4 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
26// Load Dolibarr environment
27require '../../main.inc.php';
28
29global $conf, $langs, $user;
30
31// Libraries
32require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
33require_once DOL_DOCUMENT_ROOT.'/recruitment/lib/recruitment.lib.php';
34require_once DOL_DOCUMENT_ROOT."/recruitment/class/recruitmentjobposition.class.php";
35
36// Translations
37$langs->loadLangs(array("admin", "recruitment"));
38
39// Access control
40if (!$user->admin) {
42}
43
44// Parameters
45$action = GETPOST('action', 'aZ09');
46$backtopage = GETPOST('backtopage', 'alpha');
47$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
48
49$value = GETPOST('value', 'alpha');
50$label = GETPOST('label', 'alpha');
51$scandir = GETPOST('scan_dir', 'alpha');
52$type = 'recruitmentjobposition';
53
54$arrayofparameters = array(
55// 'RECRUITMENT_MYPARAM1'=>array('css'=>'minwidth200', 'enabled'=>1),
56// 'RECRUITMENT_MYPARAM2'=>array('css'=>'minwidth500', 'enabled'=>1)
57);
58
59$error = 0;
60$setupnotempty = 0;
61
62$moduledir = 'recruitment';
63$myTmpObjects = array();
64$myTmpObjects['recruitmentjobposition'] = array('label' => 'RecruitmentJobPosition', 'includerefgeneration' => 1, 'includedocgeneration' => 1, 'class' => 'RecruitmentJobPosition');
65
66$tmpobjectkey = GETPOST('object', 'aZ09');
67if ($tmpobjectkey && !array_key_exists($tmpobjectkey, $myTmpObjects)) {
68 accessforbidden('Bad value for object. Hack attempt ?');
69}
70
71
72/*
73 * Actions
74 */
75
76include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
77
78if ($action == 'updateMask') {
79 $maskconst = GETPOST('maskconstjob', 'alpha');
80 $maskvalue = GETPOST('maskjob', 'alpha');
81
82 if ($maskconst && preg_match('/_MASK$/', $maskconst)) {
83 $res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
84 }
85
86 if (!($res > 0)) {
87 $error++;
88 }
89
90 if (!$error) {
91 setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
92 } else {
93 setEventMessages($langs->trans("Error"), null, 'errors');
94 }
95} elseif ($action == 'specimen' && $tmpobjectkey) {
96 $modele = GETPOST('module', 'alpha');
97
98 $className = $myTmpObjects[$tmpobjectkey]['class'];
99 $tmpobject = new $className($db);
100 $tmpobject->initAsSpecimen();
101
102 // Search template files
103 $file = '';
104 $classname = '';
105 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
106 foreach ($dirmodels as $reldir) {
107 $file = dol_buildpath($reldir."core/modules/recruitment/doc/pdf_".$modele."_".strtolower($tmpobjectkey).".modules.php", 0);
108 if (file_exists($file)) {
109 $classname = "pdf_".$modele."_".strtolower($tmpobjectkey);
110 break;
111 }
112 }
113
114 if ($classname !== '') {
115 require_once $file;
116
117 $module = new $classname($db);
118
119 '@phan-var-force ModelePDFRecruitmentJobPosition $module';
120
121 if ($module->write_file($tmpobject, $langs) > 0) {
122 header("Location: ".DOL_URL_ROOT."/document.php?modulepart=recruitment-".strtolower($tmpobjectkey)."&file=SPECIMEN.pdf");
123 return;
124 } else {
125 setEventMessages($module->error, null, 'errors');
126 dol_syslog($module->error, LOG_ERR);
127 }
128 } else {
129 setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
130 dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
131 }
132} elseif ($action == 'set') {
133 // Activate a model
134 $ret = addDocumentModel($value, $type, $label, $scandir);
135} elseif ($action == 'del') {
136 $ret = delDocumentModel($value, $type);
137 if ($ret > 0) {
138 if (!empty($tmpobjectkey)) {
139 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey).'_ADDON_PDF';
140 if (getDolGlobalString($constforval) == "$value") {
141 dolibarr_del_const($db, $constforval, $conf->entity);
142 }
143 }
144 }
145} elseif ($action == 'setmod') {
146 // TODO Check if numbering module chosen can be activated by calling method canBeActivated
147 if (!empty($tmpobjectkey)) {
148 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey)."_ADDON";
149
150 dolibarr_set_const($db, $constforval, $value, 'chaine', 0, '', $conf->entity);
151 }
152} elseif ($action == 'setdoc') {
153 // Set default model
154 if (!empty($tmpobjectkey)) {
155 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey).'_ADDON_PDF';
156 if (dolibarr_set_const($db, $constforval, $value, 'chaine', 0, '', $conf->entity)) {
157 // The constant that was read before the new set
158 // We therefore requires a variable to have a coherent view
159 $conf->global->$constforval = $value;
160 }
161
162 // We disable/enable the document template (into llx_document_model table)
163 $ret = delDocumentModel($value, $type);
164 if ($ret > 0) {
165 $ret = addDocumentModel($value, $type, $label, $scandir);
166 }
167 }
168} elseif ($action == 'unsetdoc') {
169 if (!empty($tmpobjectkey)) {
170 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey).'_ADDON_PDF';
171 dolibarr_del_const($db, $constforval, $conf->entity);
172 }
173}
174
175
176
177/*
178 * View
179 */
180
181$form = new Form($db);
182
183$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
184
185$page_name = "RecruitmentSetup";
186llxHeader('', $langs->trans($page_name));
187
188// Subheader
189$linkback = '<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1').'">'.$langs->trans("BackToModuleList").'</a>';
190
191print load_fiche_titre($langs->trans($page_name), $linkback, 'title_setup');
192
193// Configuration header
195print dol_get_fiche_head($head, 'settings', '', -1, '');
196
197// Setup page goes here
198//echo '<span class="opacitymedium">'.$langs->trans("RecruitmentSetupPage").'</span><br><br>';
199
200
201if ($action == 'edit') {
202 print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
203 print '<input type="hidden" name="token" value="'.newToken().'">';
204 print '<input type="hidden" name="action" value="update">';
205
206 print '<table class="noborder centpercent">';
207 print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
208
209 foreach ($arrayofparameters as $key => $val) {
210 print '<tr class="oddeven"><td>';
211 $tooltiphelp = (($langs->trans($key.'Tooltip') != $key.'Tooltip') ? $langs->trans($key.'Tooltip') : '');
212 print $form->textwithpicto($langs->trans($key), $tooltiphelp);
213 print '</td><td><input name="'.$key.'" class="flat '.(empty($val['css']) ? 'minwidth200' : $val['css']).'" value="'.getDolGlobalString($key).'"></td></tr>';
214 }
215 print '</table>';
216
217 print '<br><div class="center">';
218 print '<input class="button button-save" type="submit" value="'.$langs->trans("Save").'">';
219 print '</div>';
220
221 print '</form>';
222 print '<br>';
223} else {
224 if (!empty($arrayofparameters)) {
225 print '<table class="noborder centpercent">';
226 print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
227
228 foreach ($arrayofparameters as $key => $val) {
229 $setupnotempty++;
230
231 print '<tr class="oddeven"><td>';
232 $tooltiphelp = (($langs->trans($key.'Tooltip') != $key.'Tooltip') ? $langs->trans($key.'Tooltip') : '');
233 print $form->textwithpicto($langs->trans($key), $tooltiphelp);
234 print '</td><td>'.getDolGlobalString($key).'</td></tr>';
235 }
236
237 print '</table>';
238
239 print '<div class="tabsAction">';
240 print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit&token='.newToken().'">'.$langs->trans("Modify").'</a>';
241 print '</div>';
242 }
243}
244
245
246foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
247 if ($myTmpObjectArray['includerefgeneration']) {
248 /*
249 * Orders Numbering model
250 */
251 $setupnotempty++;
252
253 print load_fiche_titre($langs->trans("NumberingModules", $myTmpObjectKey), '', '');
254
255 print '<table class="noborder centpercent">';
256 print '<tr class="liste_titre">';
257 print '<td>'.$langs->trans("Name").'</td>';
258 print '<td>'.$langs->trans("Description").'</td>';
259 print '<td class="nowrap">'.$langs->trans("Example").'</td>';
260 print '<td class="center" width="60">'.$langs->trans("Status").'</td>';
261 print '<td class="center" width="16">'.$langs->trans("ShortInfo").'</td>';
262 print '</tr>'."\n";
263
264 clearstatcache();
265
266 foreach ($dirmodels as $reldir) {
267 $dir = dol_buildpath($reldir."core/modules/".$moduledir);
268
269 if (is_dir($dir)) {
270 $handle = opendir($dir);
271 if (is_resource($handle)) {
272 while (($file = readdir($handle)) !== false) {
273 if (strpos($file, 'mod_'.strtolower($myTmpObjectKey).'_') === 0 && substr($file, dol_strlen($file) - 3, 3) == 'php') {
274 $file = substr($file, 0, dol_strlen($file) - 4);
275 require_once $dir.'/'.$file.'.php';
276
277 $module = new $file($db);
278 '@phan-var-force ModeleNumRefRecruitmentJobPosition $module';
279
280 // Show modules according to features level
281 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
282 continue;
283 }
284 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
285 continue;
286 }
287
288 if ($module->isEnabled()) {
289 dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php');
290
291 print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
292 print $module->info($langs);
293 print '</td>';
294
295 // Show example of numbering model
296 print '<td class="nowrap">';
297 $tmp = $module->getExample();
298 if (preg_match('/^Error/', $tmp)) {
299 $langs->load("errors");
300 print '<div class="error">'.$langs->trans($tmp).'</div>';
301 } elseif ($tmp == 'NotConfigured') {
302 print $langs->trans($tmp);
303 } else {
304 print $tmp;
305 }
306 print '</td>'."\n";
307
308 print '<td class="center">';
309 $constforvar = 'RECRUITMENT_'.strtoupper($myTmpObjectKey).'_ADDON';
310 if (getDolGlobalString($constforvar) == $file) {
311 print img_picto($langs->trans("Activated"), 'switch_on');
312 } else {
313 print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&object='.strtolower($myTmpObjectKey).'&value='.urlencode($file).'">';
314 print img_picto($langs->trans("Disabled"), 'switch_off');
315 print '</a>';
316 }
317 print '</td>';
318
319 $className = $myTmpObjectArray['class'];
320 $mytmpinstance = new $className($db);
321 $mytmpinstance->initAsSpecimen();
322
323 // Info
324 $htmltooltip = '';
325 $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
326
327 $nextval = $module->getNextValue($mytmpinstance);
328 if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
329 $htmltooltip .= ''.$langs->trans("NextValue").': ';
330 if ($nextval) {
331 if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
332 $nextval = $langs->trans($nextval);
333 }
334 $htmltooltip .= $nextval.'<br>';
335 } else {
336 $htmltooltip .= $langs->trans($module->error).'<br>';
337 }
338 }
339
340 print '<td class="center">';
341 print $form->textwithpicto('', $htmltooltip, 1, 0);
342 print '</td>';
343
344 print "</tr>\n";
345 }
346 }
347 }
348 closedir($handle);
349 }
350 }
351 }
352 print "</table><br>\n";
353 }
354
355 if ($myTmpObjectArray['includedocgeneration']) {
356 /*
357 * Document templates generators
358 */
359 $setupnotempty++;
360 $type = strtolower($myTmpObjectKey);
361
362 print load_fiche_titre($langs->trans("DocumentModules", $myTmpObjectKey), '', '');
363
364 // Load array def with activated templates
365 $def = array();
366 $sql = "SELECT nom";
367 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
368 $sql .= " WHERE type = '".$db->escape($type)."'";
369 $sql .= " AND entity = ".$conf->entity;
370 $resql = $db->query($sql);
371 if ($resql) {
372 $i = 0;
373 $num_rows = $db->num_rows($resql);
374 while ($i < $num_rows) {
375 $array = $db->fetch_array($resql);
376 if (is_array($array)) {
377 array_push($def, $array[0]);
378 }
379 $i++;
380 }
381 } else {
382 dol_print_error($db);
383 }
384
385
386 print "<table class=\"noborder\" width=\"100%\">\n";
387 print "<tr class=\"liste_titre\">\n";
388 print '<td>'.$langs->trans("Name").'</td>';
389 print '<td>'.$langs->trans("Description").'</td>';
390 print '<td class="center" width="60">'.$langs->trans("Status")."</td>\n";
391 print '<td class="center" width="60">'.$langs->trans("Default")."</td>\n";
392 print '<td class="center" width="38">'.$langs->trans("ShortInfo").'</td>';
393 print '<td class="center" width="38">'.$langs->trans("Preview").'</td>';
394 print "</tr>\n";
395
396 clearstatcache();
397 $filelist = array();
398
399 foreach ($dirmodels as $reldir) {
400 foreach (array('', '/doc') as $valdir) {
401 $realpath = $reldir."core/modules/".$moduledir.$valdir;
402 $dir = dol_buildpath($realpath);
403
404 if (is_dir($dir)) {
405 $handle = opendir($dir);
406 if (is_resource($handle)) {
407 while (($file = readdir($handle)) !== false) {
408 $filelist[] = $file;
409 }
410 closedir($handle);
411 arsort($filelist);
412
413 foreach ($filelist as $file) {
414 if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
415 if (file_exists($dir.'/'.$file)) {
416 $name = substr($file, 4, dol_strlen($file) - 16);
417 $classname = substr($file, 0, dol_strlen($file) - 12);
418
419 require_once $dir.'/'.$file;
420 $module = new $classname($db);
421 '@phan-var-force ModelePDFRecruitmentJobPosition $module';
422
423 $modulequalified = 1;
424 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
425 $modulequalified = 0;
426 }
427 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
428 $modulequalified = 0;
429 }
430
431 if ($modulequalified) {
432 print '<tr class="oddeven"><td width="100">';
433 print(empty($module->name) ? $name : $module->name);
434 print "</td><td>\n";
435 if (method_exists($module, 'info')) {
436 print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
437 } else {
438 print $module->description;
439 }
440 print '</td>';
441
442 // Active
443 if (in_array($name, $def)) {
444 print '<td class="center">'."\n";
445 print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'">';
446 print img_picto($langs->trans("Enabled"), 'switch_on');
447 print '</a>';
448 print '</td>';
449 } else {
450 print '<td class="center">'."\n";
451 print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
452 print "</td>";
453 }
454
455 // Default
456 print '<td class="center">';
457 $constforvar = 'RECRUITMENT_'.strtoupper($myTmpObjectKey).'_ADDON_PDF';
458 if (getDolGlobalString($constforvar) == $name) {
459 //print img_picto($langs->trans("Default"), 'on');
460 // Even if choice is the default value, we allow to disable it. Replace this with previous line if you need to disable unset
461 print '<a href="'.$_SERVER["PHP_SELF"].'?action=unsetdoc&token='.newToken().'&object='.urlencode(strtolower($myTmpObjectKey)).'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'&type='.urlencode($type).'" alt="'.$langs->trans("Disable").'">'.img_picto($langs->trans("Enabled"), 'on').'</a>';
462 } else {
463 print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&object='.urlencode(strtolower($myTmpObjectKey)).'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
464 }
465 print '</td>';
466
467 // Info
468 $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
469 $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
470 if ($module->type == 'pdf') {
471 $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
472 }
473 $htmltooltip .= '<br>'.$langs->trans("Path").': '.preg_replace('/^\//', '', $realpath).'/'.$file;
474
475 $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
476 $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
477 $htmltooltip .= '<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
478
479 print '<td class="center">';
480 print $form->textwithpicto('', $htmltooltip, 1, 0);
481 print '</td>';
482
483 // Preview
484 print '<td class="center">';
485 if ($module->type == 'pdf') {
486 $newname = preg_replace('/_'.preg_quote(strtolower($myTmpObjectKey), '/').'/', '', $name);
487 print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.urlencode($newname).'&object='.urlencode($myTmpObjectKey).'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
488 } else {
489 print img_object($langs->trans("PreviewNotAvailable"), 'generic');
490 }
491 print '</td>';
492
493 print "</tr>\n";
494 }
495 }
496 }
497 }
498 }
499 }
500 }
501 }
502
503 print '</table>';
504 }
505}
506
507if (empty($setupnotempty)) {
508 print '<br>'.$langs->trans("NothingToSetup");
509}
510
511// Page end
512print dol_get_fiche_end();
513
514llxFooter();
515$db->close();
addDocumentModel($name, $type, $label='', $description='')
Add document model used by doc generator.
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
delDocumentModel($name, $type)
Delete document model used by doc generator.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Definition wrapper.php:70
Class to manage generation of HTML components Only common components must be here.
llxFooter()
Footer empty.
Definition document.php:107
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
yn($yesno, $format=1, $color=0)
Return yes or no in current language.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
recruitmentAdminPrepareHead()
Prepare admin pages header.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:140
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.