dolibarr 21.0.0-beta
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
29// Libraries
30require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
31require_once DOL_DOCUMENT_ROOT.'/recruitment/lib/recruitment.lib.php';
32require_once DOL_DOCUMENT_ROOT."/recruitment/class/recruitmentjobposition.class.php";
33
42// Translations
43$langs->loadLangs(array("admin", "recruitment"));
44
45// Access control
46if (!$user->admin) {
48}
49
50// Parameters
51$action = GETPOST('action', 'aZ09');
52$backtopage = GETPOST('backtopage', 'alpha');
53$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
54
55$value = GETPOST('value', 'alpha');
56$label = GETPOST('label', 'alpha');
57$scandir = GETPOST('scan_dir', 'alpha');
58$type = 'recruitmentjobposition';
59
60$arrayofparameters = array(
61// 'RECRUITMENT_MYPARAM1'=>array('css'=>'minwidth200', 'enabled'=>1),
62// 'RECRUITMENT_MYPARAM2'=>array('css'=>'minwidth500', 'enabled'=>1)
63);
64
65$error = 0;
66$setupnotempty = 0;
67
68$moduledir = 'recruitment';
69$myTmpObjects = array();
70$myTmpObjects['recruitmentjobposition'] = array('label' => 'RecruitmentJobPosition', 'includerefgeneration' => 1, 'includedocgeneration' => 1, 'class' => 'RecruitmentJobPosition');
71
72$tmpobjectkey = GETPOST('object', 'aZ09');
73if ($tmpobjectkey && !array_key_exists($tmpobjectkey, $myTmpObjects)) {
74 accessforbidden('Bad value for object. Hack attempt ?');
75}
76
77
78/*
79 * Actions
80 */
81
82include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
83
84if ($action == 'updateMask') {
85 $maskconst = GETPOST('maskconstjob', 'alpha');
86 $maskvalue = GETPOST('maskjob', 'alpha');
87
88 if ($maskconst && preg_match('/_MASK$/', $maskconst)) {
89 $res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
90 }
91
92 if (!($res > 0)) {
93 $error++;
94 }
95
96 if (!$error) {
97 setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
98 } else {
99 setEventMessages($langs->trans("Error"), null, 'errors');
100 }
101} elseif ($action == 'specimen' && $tmpobjectkey) {
102 $modele = GETPOST('module', 'alpha');
103
104 $className = $myTmpObjects[$tmpobjectkey]['class'];
105 $tmpobject = new $className($db);
106 $tmpobject->initAsSpecimen();
107
108 // Search template files
109 $file = '';
110 $classname = '';
111 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
112 foreach ($dirmodels as $reldir) {
113 $file = dol_buildpath($reldir."core/modules/recruitment/doc/pdf_".$modele."_".strtolower($tmpobjectkey).".modules.php", 0);
114 if (file_exists($file)) {
115 $classname = "pdf_".$modele."_".strtolower($tmpobjectkey);
116 break;
117 }
118 }
119
120 if ($classname !== '') {
121 require_once $file;
122
123 $module = new $classname($db);
124
125 '@phan-var-force ModelePDFRecruitmentJobPosition $module';
126
127 if ($module->write_file($tmpobject, $langs) > 0) {
128 header("Location: ".DOL_URL_ROOT."/document.php?modulepart=recruitment-".strtolower($tmpobjectkey)."&file=SPECIMEN.pdf");
129 return;
130 } else {
131 setEventMessages($module->error, null, 'errors');
132 dol_syslog($module->error, LOG_ERR);
133 }
134 } else {
135 setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
136 dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
137 }
138} elseif ($action == 'set') {
139 // Activate a model
140 $ret = addDocumentModel($value, $type, $label, $scandir);
141} elseif ($action == 'del') {
142 $ret = delDocumentModel($value, $type);
143 if ($ret > 0) {
144 if (!empty($tmpobjectkey)) {
145 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey).'_ADDON_PDF';
146 if (getDolGlobalString($constforval) == "$value") {
147 dolibarr_del_const($db, $constforval, $conf->entity);
148 }
149 }
150 }
151} elseif ($action == 'setmod') {
152 // TODO Check if numbering module chosen can be activated by calling method canBeActivated
153 if (!empty($tmpobjectkey)) {
154 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey)."_ADDON";
155
156 dolibarr_set_const($db, $constforval, $value, 'chaine', 0, '', $conf->entity);
157 }
158} elseif ($action == 'setdoc') {
159 // Set default model
160 if (!empty($tmpobjectkey)) {
161 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey).'_ADDON_PDF';
162 if (dolibarr_set_const($db, $constforval, $value, 'chaine', 0, '', $conf->entity)) {
163 // The constant that was read before the new set
164 // We therefore requires a variable to have a coherent view
165 $conf->global->$constforval = $value;
166 }
167
168 // We disable/enable the document template (into llx_document_model table)
169 $ret = delDocumentModel($value, $type);
170 if ($ret > 0) {
171 $ret = addDocumentModel($value, $type, $label, $scandir);
172 }
173 }
174} elseif ($action == 'unsetdoc') {
175 if (!empty($tmpobjectkey)) {
176 $constforval = 'RECRUITMENT_'.strtoupper($tmpobjectkey).'_ADDON_PDF';
177 dolibarr_del_const($db, $constforval, $conf->entity);
178 }
179}
180
181
182
183/*
184 * View
185 */
186
187$form = new Form($db);
188
189$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
190
191$page_name = "RecruitmentSetup";
192llxHeader('', $langs->trans($page_name));
193
194// Subheader
195$linkback = '<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1').'">'.$langs->trans("BackToModuleList").'</a>';
196
197print load_fiche_titre($langs->trans($page_name), $linkback, 'title_setup');
198
199// Configuration header
201print dol_get_fiche_head($head, 'settings', '', -1, '');
202
203// Setup page goes here
204//echo '<span class="opacitymedium">'.$langs->trans("RecruitmentSetupPage").'</span><br><br>';
205
206
207if ($action == 'edit') {
208 print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
209 print '<input type="hidden" name="token" value="'.newToken().'">';
210 print '<input type="hidden" name="action" value="update">';
211
212 print '<table class="noborder centpercent">';
213 print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
214
215 foreach ($arrayofparameters as $key => $val) {
216 print '<tr class="oddeven"><td>';
217 $tooltiphelp = (($langs->trans($key.'Tooltip') != $key.'Tooltip') ? $langs->trans($key.'Tooltip') : '');
218 print $form->textwithpicto($langs->trans($key), $tooltiphelp);
219 print '</td><td><input name="'.$key.'" class="flat '.(empty($val['css']) ? 'minwidth200' : $val['css']).'" value="'.getDolGlobalString($key).'"></td></tr>';
220 }
221 print '</table>';
222
223 print '<br><div class="center">';
224 print '<input class="button button-save" type="submit" value="'.$langs->trans("Save").'">';
225 print '</div>';
226
227 print '</form>';
228 print '<br>';
229} else {
230 if (!empty($arrayofparameters)) {
231 print '<table class="noborder centpercent">';
232 print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Parameter").'</td><td></td></tr>';
233
234 foreach ($arrayofparameters as $key => $val) {
235 $setupnotempty++;
236
237 print '<tr class="oddeven"><td>';
238 $tooltiphelp = (($langs->trans($key.'Tooltip') != $key.'Tooltip') ? $langs->trans($key.'Tooltip') : '');
239 print $form->textwithpicto($langs->trans($key), $tooltiphelp);
240 print '</td><td>'.getDolGlobalString($key).'</td></tr>';
241 }
242
243 print '</table>';
244
245 print '<div class="tabsAction">';
246 print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit&token='.newToken().'">'.$langs->trans("Modify").'</a>';
247 print '</div>';
248 }
249}
250
251
252foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
253 if ($myTmpObjectArray['includerefgeneration']) {
254 // Numbering models
255 $setupnotempty++;
256
257 print load_fiche_titre($langs->trans("NumberingModules", $myTmpObjectKey), '', '');
258
259 print '<table class="noborder centpercent">';
260 print '<tr class="liste_titre">';
261 print '<td>'.$langs->trans("Name").'</td>';
262 print '<td>'.$langs->trans("Description").'</td>';
263 print '<td class="nowrap">'.$langs->trans("Example").'</td>';
264 print '<td class="center" width="60">'.$langs->trans("Status").'</td>';
265 print '<td class="center" width="16">'.$langs->trans("ShortInfo").'</td>';
266 print '</tr>'."\n";
267
268 clearstatcache();
269
270 foreach ($dirmodels as $reldir) {
271 $dir = dol_buildpath($reldir."core/modules/".$moduledir);
272
273 if (is_dir($dir)) {
274 $handle = opendir($dir);
275 if (is_resource($handle)) {
276 while (($file = readdir($handle)) !== false) {
277 if (strpos($file, 'mod_'.strtolower($myTmpObjectKey).'_') === 0 && substr($file, dol_strlen($file) - 3, 3) == 'php') {
278 $file = substr($file, 0, dol_strlen($file) - 4);
279 print '<!-- '.$dir.'/'.$file.' -->'."\n";
280 require_once $dir.'/'.$file.'.php';
281
282 $module = new $file($db);
283 '@phan-var-force ModeleNumRefRecruitmentJobPosition $module';
284
285 // Show modules according to features level
286 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
287 continue;
288 }
289 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
290 continue;
291 }
292
293 if ($module->isEnabled()) {
294 dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php');
295
296 print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
297 print $module->info($langs);
298 print '</td>';
299
300 // Show example of numbering model
301 print '<td class="nowrap">';
302 $tmp = $module->getExample();
303 if (preg_match('/^Error/', $tmp)) {
304 $langs->load("errors");
305 print '<div class="error">'.$langs->trans($tmp).'</div>';
306 } elseif ($tmp == 'NotConfigured') {
307 print $langs->trans($tmp);
308 } else {
309 print $tmp;
310 }
311 print '</td>'."\n";
312
313 print '<td class="center">';
314 $constforvar = 'RECRUITMENT_'.strtoupper($myTmpObjectKey).'_ADDON';
315 if (getDolGlobalString($constforvar) == $file) {
316 print img_picto($langs->trans("Activated"), 'switch_on');
317 } else {
318 print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&object='.strtolower($myTmpObjectKey).'&value='.urlencode($file).'">';
319 print img_picto($langs->trans("Disabled"), 'switch_off');
320 print '</a>';
321 }
322 print '</td>';
323
324 $className = $myTmpObjectArray['class'];
325 $mytmpinstance = new $className($db);
326 $mytmpinstance->initAsSpecimen();
327
328 // Info
329 $htmltooltip = '';
330 $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
331
332 $nextval = $module->getNextValue($mytmpinstance);
333 if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
334 $htmltooltip .= ''.$langs->trans("NextValue").': ';
335 if ($nextval) {
336 if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
337 $nextval = $langs->trans($nextval);
338 }
339 $htmltooltip .= $nextval.'<br>';
340 } else {
341 $htmltooltip .= $langs->trans($module->error).'<br>';
342 }
343 }
344
345 print '<td class="center">';
346 print $form->textwithpicto('', $htmltooltip, 1, 0);
347 print '</td>';
348
349 print "</tr>\n";
350 }
351 }
352 }
353 closedir($handle);
354 }
355 }
356 }
357 print "</table><br>\n";
358 }
359
360 if ($myTmpObjectArray['includedocgeneration']) {
361 /*
362 * Document templates generators
363 */
364 $setupnotempty++;
365 $type = strtolower($myTmpObjectKey);
366
367 print load_fiche_titre($langs->trans("DocumentModules", $myTmpObjectKey), '', '');
368
369 // Load array def with activated templates
370 $def = array();
371 $sql = "SELECT nom";
372 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
373 $sql .= " WHERE type = '".$db->escape($type)."'";
374 $sql .= " AND entity = ".$conf->entity;
375 $resql = $db->query($sql);
376 if ($resql) {
377 $i = 0;
378 $num_rows = $db->num_rows($resql);
379 while ($i < $num_rows) {
380 $array = $db->fetch_array($resql);
381 if (is_array($array)) {
382 array_push($def, $array[0]);
383 }
384 $i++;
385 }
386 } else {
387 dol_print_error($db);
388 }
389
390
391 print "<table class=\"noborder\" width=\"100%\">\n";
392 print "<tr class=\"liste_titre\">\n";
393 print '<td>'.$langs->trans("Name").'</td>';
394 print '<td>'.$langs->trans("Description").'</td>';
395 print '<td class="center" width="60">'.$langs->trans("Status")."</td>\n";
396 print '<td class="center" width="60">'.$langs->trans("Default")."</td>\n";
397 print '<td class="center" width="38">'.$langs->trans("ShortInfo").'</td>';
398 print '<td class="center" width="38">'.$langs->trans("Preview").'</td>';
399 print "</tr>\n";
400
401 clearstatcache();
402 $filelist = array();
403
404 foreach ($dirmodels as $reldir) {
405 foreach (array('', '/doc') as $valdir) {
406 $realpath = $reldir."core/modules/".$moduledir.$valdir;
407 $dir = dol_buildpath($realpath);
408
409 if (is_dir($dir)) {
410 $handle = opendir($dir);
411 if (is_resource($handle)) {
412 while (($file = readdir($handle)) !== false) {
413 $filelist[] = $file;
414 }
415 closedir($handle);
416 arsort($filelist);
417
418 foreach ($filelist as $file) {
419 if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
420 if (file_exists($dir.'/'.$file)) {
421 $name = substr($file, 4, dol_strlen($file) - 16);
422 $classname = substr($file, 0, dol_strlen($file) - 12);
423
424 require_once $dir.'/'.$file;
425 $module = new $classname($db);
426 '@phan-var-force ModelePDFRecruitmentJobPosition $module';
427
428 $modulequalified = 1;
429 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
430 $modulequalified = 0;
431 }
432 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
433 $modulequalified = 0;
434 }
435
436 if ($modulequalified) {
437 print '<tr class="oddeven"><td width="100">';
438 print(empty($module->name) ? $name : $module->name);
439 print "</td><td>\n";
440 if (method_exists($module, 'info')) {
441 print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
442 } else {
443 print $module->description;
444 }
445 print '</td>';
446
447 // Active
448 if (in_array($name, $def)) {
449 print '<td class="center">'."\n";
450 print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'">';
451 print img_picto($langs->trans("Enabled"), 'switch_on');
452 print '</a>';
453 print '</td>';
454 } else {
455 print '<td class="center">'."\n";
456 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>';
457 print "</td>";
458 }
459
460 // Default
461 print '<td class="center">';
462 $constforvar = 'RECRUITMENT_'.strtoupper($myTmpObjectKey).'_ADDON_PDF';
463 if (getDolGlobalString($constforvar) == $name) {
464 //print img_picto($langs->trans("Default"), 'on');
465 // Even if choice is the default value, we allow to disable it. Replace this with previous line if you need to disable unset
466 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>';
467 } else {
468 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>';
469 }
470 print '</td>';
471
472 // Info
473 $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
474 $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
475 if ($module->type == 'pdf') {
476 $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
477 }
478 $htmltooltip .= '<br>'.$langs->trans("Path").': '.preg_replace('/^\//', '', $realpath).'/'.$file;
479
480 $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
481 $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
482 $htmltooltip .= '<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
483
484 print '<td class="center">';
485 print $form->textwithpicto('', $htmltooltip, 1, 0);
486 print '</td>';
487
488 // Preview
489 print '<td class="center">';
490 if ($module->type == 'pdf') {
491 $newname = preg_replace('/_'.preg_quote(strtolower($myTmpObjectKey), '/').'/', '', $name);
492 print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.urlencode($newname).'&object='.urlencode($myTmpObjectKey).'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
493 } else {
494 print img_object($langs->trans("PreviewNotAvailable"), 'generic');
495 }
496 print '</td>';
497
498 print "</tr>\n";
499 }
500 }
501 }
502 }
503 }
504 }
505 }
506 }
507
508 print '</table>';
509 }
510}
511
512if (empty($setupnotempty)) {
513 print '<br>'.$langs->trans("NothingToSetup");
514}
515
516// Page end
517print dol_get_fiche_end();
518
519llxFooter();
520$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:71
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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
Definition member.php:79
recruitmentAdminPrepareHead()
Prepare admin pages header.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:152
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.