29require
'../main.inc.php';
34require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
35require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm.lib.php';
36require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skill.class.php';
40$langs->loadLangs(array(
"admin",
"hrm"));
48$action =
GETPOST(
'action',
'aZ09');
49$backtopage =
GETPOST(
'backtopage',
'alpha');
51$value =
GETPOST(
'value',
'alpha');
52$label =
GETPOST(
'label',
'alpha');
53$modulepart =
GETPOST(
'modulepart',
'aZ09');
55$scandir =
GETPOST(
'scan_dir',
'alpha');
58$arrayofparameters = array(
59 'HRM_MAXRANK'=>array(
'type'=>
'integer',
'enabled'=>1),
60 'HRM_DEFAULT_SKILL_DESCRIPTION'=>array(
'type'=>
'varchar',
'enabled'=>1),
66$dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
73include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
75if ($action ==
'update') {
76 $max_rank =
GETPOST(
'HRM_MAXRANK',
'int');
79 if (!empty($max_rank)) {
80 $static_skill =
new Skill($db);
81 $TAllSkills = $static_skill->fetchAll();
82 if (is_array($TAllSkills)) {
83 foreach ($TAllSkills as &$skill) {
84 if (empty($skill->lines)) $skill->fetchLines();
85 if (count($skill->lines) < $conf->global->HRM_MAXRANK) {
86 $skill->createSkills(count($skill->lines) + 1);
91} elseif ($action ==
'updateMask') {
92 $maskconst =
GETPOST(
'maskconstEvaluation',
'aZ09');
93 $maskvalue =
GETPOST(
'maskEvaluation',
'alpha');
95 if ($maskconst && preg_match(
'/_MASK$/', $maskconst)) {
96 $res =
dolibarr_set_const($db, $maskconst, $maskvalue,
'chaine', 0,
'', $conf->entity);
107} elseif ($action ==
'specimen') {
108 $modele =
GETPOST(
'module',
'alpha');
109 $tmpobjectkey =
GETPOST(
'object');
111 $tmpobject =
new $tmpobjectkey($db);
112 $tmpobject->initAsSpecimen();
115 $file =
''; $classname =
''; $filefound = 0;
116 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
117 foreach ($dirmodels as $reldir) {
118 $file =
dol_buildpath($reldir.
"core/modules/hrm/doc/pdf_".$modele.
"_".strtolower($tmpobjectkey).
".modules.php", 0);
119 if (file_exists($file)) {
121 $classname =
"pdf_".$modele;
129 $module =
new $classname($db);
131 if ($module->write_file($tmpobject, $langs) > 0) {
132 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=".strtolower($tmpobjectkey).
"&file=SPECIMEN.pdf");
140 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
142} elseif ($action ==
'setmod') {
144 $tmpobjectkey =
GETPOST(
'object');
145 if (!empty($tmpobjectkey)) {
146 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
"_ADDON";
149} elseif ($action ==
'set') {
152} elseif ($action ==
'del') {
155 $tmpobjectkey =
GETPOST(
'object');
156 if (!empty($tmpobjectkey)) {
157 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
'_ADDON_PDF';
158 if ($conf->global->$constforval ==
"$value") {
163} elseif ($action ==
'setdoc') {
165 $tmpobjectkey =
GETPOST(
'object');
166 if (!empty($tmpobjectkey)) {
167 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
'_ADDON_PDF';
171 $conf->global->$constforval = $value;
180} elseif ($action ==
'unsetdoc') {
181 $tmpobjectkey =
GETPOST(
'object');
182 if (!empty($tmpobjectkey)) {
183 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
'_ADDON_PDF';
193$form =
new Form($db);
196$page_name =
"HRMSetup";
198llxHeader(
'', $langs->trans($page_name), $help_url);
201$linkback =
'<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1').
'">'.$langs->trans(
"BackToModuleList").
'</a>';
210$myTmpObjects = array();
211$myTmpObjects[
'evaluation'] = array(
'label'=>
'Evaluation',
'includerefgeneration'=>1,
'includedocgeneration'=>0);
213foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
214 if ($myTmpObjectKey != $type) {
217 if ($myTmpObjectArray[
'includerefgeneration']) {
223 print
load_fiche_titre($langs->trans(
"NumberingModules").
' ('.$myTmpObjectArray[
'label'].
')',
'',
'');
225 print
'<table class="noborder centpercent">';
226 print
'<tr class="liste_titre">';
227 print
'<td>'.$langs->trans(
"Name").
'</td>';
228 print
'<td>'.$langs->trans(
"Description").
'</td>';
229 print
'<td class="nowrap">'.$langs->trans(
"Example").
'</td>';
230 print
'<td class="center" width="60">'.$langs->trans(
"Status").
'</td>';
231 print
'<td class="center" width="16">'.$langs->trans(
"ShortInfo").
'</td>';
236 foreach ($dirmodels as $reldir) {
240 $handle = opendir($dir);
241 if (is_resource($handle)) {
242 while (($file = readdir($handle)) !==
false) {
243 if (strpos($file,
'mod_'.strtolower($myTmpObjectKey).
'_') === 0 && substr($file,
dol_strlen($file) - 3, 3) ==
'php') {
244 $file = substr($file, 0,
dol_strlen($file) - 4);
246 require_once $dir.
'/'.$file.
'.php';
248 $module =
new $file($db);
251 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
254 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
258 if ($module->isEnabled()) {
259 dol_include_once(
'/'.$moduledir.
'/class/'.strtolower($myTmpObjectKey).
'.class.php');
261 print
'<tr class="oddeven"><td>'.$module->name.
"</td><td>\n";
262 print $module->info();
266 print
'<td class="nowrap">';
267 $tmp = $module->getExample();
268 if (preg_match(
'/^Error/', $tmp)) {
269 $langs->load(
"errors");
270 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
271 } elseif ($tmp ==
'NotConfigured') {
272 print $langs->trans($tmp);
278 print
'<td class="center">';
279 $constforvar =
'HRMTEST_'.strtoupper($myTmpObjectKey).
'_ADDON';
281 print
img_picto($langs->trans(
"Activated"),
'switch_on');
283 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.newToken().
'&object='.strtolower($myTmpObjectKey).
'&value='.urlencode($file).
'">';
284 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
289 $nameofclass = ucfirst($myTmpObjectKey);
290 $mytmpinstance =
new $nameofclass($db);
291 $mytmpinstance->initAsSpecimen();
295 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
297 $nextval = $module->getNextValue($mytmpinstance);
298 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
299 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
301 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
302 $nextval = $langs->trans($nextval);
304 $htmltooltip .= $nextval.
'<br>';
306 $htmltooltip .= $langs->trans($module->error).
'<br>';
310 print
'<td class="center">';
311 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
325 if ($myTmpObjectArray[
'includedocgeneration']) {
330 $type = strtolower($myTmpObjectKey);
332 print
load_fiche_titre($langs->trans(
"DocumentModules", $myTmpObjectKey),
'',
'');
337 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
338 $sql .=
" WHERE type = '".$db->escape($type).
"'";
339 $sql .=
" AND entity = ".$conf->entity;
340 $resql = $db->query($sql);
343 $num_rows = $db->num_rows($resql);
344 while ($i < $num_rows) {
345 $array = $db->fetch_array($resql);
346 array_push($def, $array[0]);
353 print
"<table class=\"noborder\" width=\"100%\">\n";
354 print
"<tr class=\"liste_titre\">\n";
355 print
'<td>'.$langs->trans(
"Name").
'</td>';
356 print
'<td>'.$langs->trans(
"Description").
'</td>';
357 print
'<td class="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
358 print
'<td class="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
359 print
'<td class="center" width="38">'.$langs->trans(
"ShortInfo").
'</td>';
360 print
'<td class="center" width="38">'.$langs->trans(
"Preview").
'</td>';
365 foreach ($dirmodels as $reldir) {
366 foreach (array(
'',
'/doc') as $valdir) {
367 $realpath = $reldir.
"core/modules/".$moduledir.$valdir;
371 $handle = opendir($dir);
372 if (is_resource($handle)) {
373 while (($file = readdir($handle)) !==
false) {
379 foreach ($filelist as $file) {
380 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
381 if (file_exists($dir.
'/'.$file)) {
382 $name = substr($file, 4,
dol_strlen($file) - 16);
383 $classname = substr($file, 0,
dol_strlen($file) - 12);
385 require_once $dir.
'/'.$file;
386 $module =
new $classname($db);
388 $modulequalified = 1;
389 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
390 $modulequalified = 0;
392 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
393 $modulequalified = 0;
396 if ($modulequalified) {
397 print
'<tr class="oddeven"><td width="100">';
398 print (empty($module->name) ? $name : $module->
name);
400 if (method_exists($module,
'info')) {
401 print $module->info($langs);
403 print $module->description;
408 if (in_array($name, $def)) {
409 print
'<td class="center">'.
"\n";
410 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.newToken().
'&value='.$name.
'">';
411 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
415 print
'<td class="center">'.
"\n";
416 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=set&token='.newToken().
'&value='.$name.
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
421 print
'<td class="center">';
422 $constforvar =
'HRMTEST_'.strtoupper($myTmpObjectKey).
'_ADDON';
426 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=unsetdoc&token='.newToken().
'&object='.urlencode(strtolower($myTmpObjectKey)).
'&value='.$name.
'&scan_dir='.$module->scandir.
'&label='.urlencode($module->name).
'&type='.urlencode($type).
'" alt="'.$langs->trans(
"Disable").
'">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
428 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.newToken().
'&object='.urlencode(strtolower($myTmpObjectKey)).
'&value='.$name.
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
433 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
434 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
435 if ($module->type ==
'pdf') {
436 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
438 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
440 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
441 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
442 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
444 print
'<td class="center">';
445 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
449 print
'<td class="center">';
450 if ($module->type ==
'pdf') {
451 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'&object='.$myTmpObjectKey.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
453 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
473if (empty($conf->global->HRM_MAXRANK)) {
474 $conf->global->HRM_MAXRANK = Skill::DEFAULT_MAX_RANK_PER_SKILL;
477if ($action ==
'edit') {
478 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
479 print
'<input type="hidden" name="token" value="'.newToken().
'">';
480 print
'<input type="hidden" name="action" value="update">';
482 print
'<table class="noborder centpercent">';
483 print
'<tr class="liste_titre"><td>'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td></tr>';
485 foreach ($arrayofparameters as $constname => $val) {
486 if ($val[
'enabled']==1) {
488 print
'<tr class="oddeven"><td>';
489 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
490 print
'<span id="helplink'.$constname.
'" class="spanforparamtooltip">'.$form->textwithpicto($langs->trans($constname), $tooltiphelp, 1,
'info',
'', 0, 3,
'tootips'.$constname).
'</span>';
493 if ($val[
'type'] ==
'textarea') {
494 print
'<textarea class="flat" name="' . $constname .
'" id="' . $constname .
'" cols="50" rows="5" wrap="soft">' .
"\n";
496 print
"</textarea>\n";
497 } elseif ($val[
'type'] ==
'integer') {
498 print
'<input class="flat" name="' . $constname .
'" id="' . $constname .
'" value="' .
getDolGlobalString($constname) .
'" type="number" step="1" min="0" max="50" >' .
"\n";
499 } elseif ($val[
'type'] ==
'html') {
500 require_once DOL_DOCUMENT_ROOT .
'/core/class/doleditor.class.php';
501 $doleditor =
new DolEditor($constname,
getDolGlobalString($constname),
'', 160,
'dolibarr_notes',
'',
false,
false, isModEnabled(
'fckeditor'), ROWS_5,
'90%');
502 $doleditor->Create();
503 } elseif ($val[
'type'] ==
'yesno') {
505 } elseif (preg_match(
'/emailtemplate:/', $val[
'type'])) {
506 include_once DOL_DOCUMENT_ROOT .
'/core/class/html.formmail.class.php';
509 $tmp = explode(
':', $val[
'type']);
510 $nboftemplates = $formmail->fetchAllEMailTemplate($tmp[1], $user,
null, 1);
512 $arrayofmessagename = array();
513 if (is_array($formmail->lines_model)) {
514 foreach ($formmail->lines_model as $modelmail) {
517 if (!empty($arrayofmessagename[$modelmail->label])) {
518 $moreonlabel =
' <span class="opacitymedium">(' . $langs->trans(
"SeveralLangugeVariatFound") .
')</span>';
521 $arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace(
'/\(|\)/',
'', $modelmail->label)) . $moreonlabel;
524 print $form->selectarray($constname, $arrayofmessagename, $conf->global->{$constname},
'None', 0, 0,
'', 0, 0, 0,
'',
'', 1);
525 } elseif (preg_match(
'/category:/', $val[
'type'])) {
526 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
527 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
530 $tmp = explode(
':', $val[
'type']);
531 print
img_picto(
'',
'category',
'class="pictofixedwidth"');
532 print $formother->select_categories($tmp[1], $conf->global->{$constname}, $constname, 0, $langs->trans(
'CustomersProspectsCategoriesShort'));
533 } elseif (preg_match(
'/thirdparty_type/', $val[
'type'])) {
534 require_once DOL_DOCUMENT_ROOT .
'/core/class/html.formcompany.class.php';
536 print $formcompany->selectProspectCustomerType($conf->global->{$constname}, $constname);
537 } elseif ($val[
'type'] ==
'securekey') {
538 print
'<input required="required" type="text" class="flat" id="' . $constname .
'" name="' . $constname .
'" value="' . (
GETPOST($constname,
'alpha') ?
GETPOST($constname,
'alpha') : $conf->global->{$constname}) .
'" size="40">';
539 if (!empty($conf->use_javascript_ajax)) {
540 print
' ' .
img_picto($langs->trans(
'Generate'),
'refresh',
'id="generate_token' . $constname .
'" class="linkobject"');
544 include_once DOL_DOCUMENT_ROOT .
'/core/lib/security2.lib.php';
546 } elseif ($val[
'type'] ==
'product') {
547 if (isModEnabled(
'product') || isModEnabled(
'service')) {
548 $selected = (empty($conf->global->$constname) ?
'' : $conf->global->$constname);
549 $form->select_produits($selected, $constname,
'', 0);
552 print
'<input name="' . $constname .
'" class="flat ' . (empty($val[
'css']) ?
'minwidth200' : $val[
'css']) .
'" value="' . $conf->global->{$constname} .
'">';
559 print
'<br><div class="center">';
560 print
'<input class="button button-save" type="submit" value="'.$langs->trans(
"Save").
'">';
566 if (!empty($arrayofparameters)) {
567 print
'<table class="noborder centpercent">';
568 print
'<tr class="liste_titre"><td>'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td></tr>';
570 foreach ($arrayofparameters as $constname => $val) {
571 if ($val[
'enabled']==1) {
573 print
'<tr class="oddeven"><td>';
574 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
575 print $form->textwithpicto($langs->trans($constname), $tooltiphelp);
578 if ($val[
'type'] ==
'textarea') {
580 } elseif ($val[
'type']==
'html') {
582 } elseif ($val[
'type'] ==
'yesno') {
583 print ajax_constantonoff($constname);
584 } elseif (preg_match(
'/emailtemplate:/', $val[
'type'])) {
585 include_once DOL_DOCUMENT_ROOT .
'/core/class/html.formmail.class.php';
588 $tmp = explode(
':', $val[
'type']);
590 $template = $formmail->getEMailTemplate($db, $tmp[1], $user, $langs,
getDolGlobalString($constname));
594 print $langs->trans($template->label);
595 } elseif (preg_match(
'/category:/', $val[
'type'])) {
601 $ways = $c->print_all_ways(
' >> ',
'none', 0, 1);
603 foreach ($ways as $way) {
604 $toprint[] =
'<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ?
' style="background: #' . $c->color .
';"' :
' style="background: #bbb"') .
'>' . $way .
'</li>';
606 print
'<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">' . implode(
' ', $toprint) .
'</ul></div>';
607 } elseif (preg_match(
'/thirdparty_type/', $val[
'type'])) {
608 if ($conf->global->{$constname}==2) {
609 print $langs->trans(
"Prospect");
610 } elseif ($conf->global->{$constname}==3) {
611 print $langs->trans(
"ProspectCustomer");
612 } elseif ($conf->global->{$constname}==1) {
613 print $langs->trans(
"Customer");
614 } elseif ($conf->global->{$constname}==0) {
615 print $langs->trans(
"NorProspectNorCustomer");
617 } elseif ($val[
'type'] ==
'product') {
619 $resprod = $product->fetch($conf->global->{$constname});
622 } elseif ($resprod < 0) {
634 print
'<div class="tabsAction">';
635 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?action=edit">'.$langs->trans(
"Modify").
'</a>';
638 print
'<br>'.$langs->trans(
"NothingToSetup");
643if (empty($setupnotempty)) {
644 print
'<br>'.$langs->trans(
"NothingToSetup");
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()
Empty header.
Class to manage categories.
Class to manage a WYSIWYG editor.
Class to manage products or services.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
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_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_nl2br($stringtoencode, $nl2brmode=0, $forxml=false)
Replace CRLF in string with a HTML BR tag.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
hrmAdminPrepareHead()
Prepare admin pages header.
$conf db name
Only used if Module[ID]Name translation string is not found.
dolJSToSetRandomPassword($htmlname, $htmlnameofbutton='generate_token', $generic=1)
Ouput javacript to autoset a generated password using default module into a HTML element.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.