34require
'../main.inc.php';
35require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
36require_once DOL_DOCUMENT_ROOT.
'/core/lib/pdf.lib.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/lib/fichinter.lib.php';
38require_once DOL_DOCUMENT_ROOT.
'/fichinter/class/fichinter.class.php';
50$langs->loadLangs(array(
'admin',
'errors',
'interventions',
'other'));
56$action =
GETPOST(
'action',
'aZ09');
57$value =
GETPOST(
'value',
'alpha');
58$modulepart =
GETPOST(
'modulepart',
'aZ09');
60$label =
GETPOST(
'label',
'alpha');
61$scandir =
GETPOST(
'scan_dir',
'alpha');
70include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
72if ($action ==
'updateMask') {
73 $maskconst =
GETPOST(
'maskconst',
'aZ09');
74 $maskvalue =
GETPOST(
'maskvalue',
'alpha');
78 if ($maskconst && preg_match(
'/_MASK$/', $maskconst)) {
79 $res =
dolibarr_set_const($db, $maskconst, $maskvalue,
'chaine', 0,
'', $conf->entity);
91} elseif ($action ==
'specimen') {
92 $modele =
GETPOST(
'module',
'alpha');
95 $inter->initAsSpecimen();
100 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
101 foreach ($dirmodels as $reldir) {
102 $file =
dol_buildpath($reldir.
"core/modules/fichinter/doc/pdf_".$modele.
".modules.php", 0);
103 if (file_exists($file)) {
104 $classname =
"pdf_".$modele;
109 if ($classname !==
'') {
112 $module =
new $classname($db);
113 '@phan-var-force ModelePDFFicheinter $module';
115 if ($module->write_file($inter, $langs) > 0) {
116 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=ficheinter&file=SPECIMEN.pdf");
124 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
126} elseif ($action ==
'set') {
129} elseif ($action ==
'del') {
136} elseif ($action ==
'setdoc') {
138 if (
dolibarr_set_const($db,
"FICHEINTER_ADDON_PDF", $value,
'chaine', 0,
'', $conf->entity)) {
141 $conf->global->FICHEINTER_ADDON_PDF = $value;
149} elseif ($action ==
'setmod') {
154} elseif ($action ==
'set_FICHINTER_FREE_TEXT') {
155 $freetext =
GETPOST(
'FICHINTER_FREE_TEXT',
'restricthtml');
156 $res =
dolibarr_set_const($db,
"FICHINTER_FREE_TEXT", $freetext,
'chaine', 0,
'', $conf->entity);
167} elseif ($action ==
'set_FICHINTER_DRAFT_WATERMARK') {
168 $draft =
GETPOST(
'FICHINTER_DRAFT_WATERMARK',
'alpha');
169 $res =
dolibarr_set_const($db,
"FICHINTER_DRAFT_WATERMARK", trim($draft),
'chaine', 0,
'', $conf->entity);
180} elseif ($action ==
'set_FICHINTER_PRINT_PRODUCTS') {
181 $val =
GETPOST(
'FICHINTER_PRINT_PRODUCTS',
'alpha');
182 $res =
dolibarr_set_const($db,
"FICHINTER_PRINT_PRODUCTS", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
193} elseif ($action ==
'set_FICHINTER_USE_SERVICE_DURATION') {
194 $val =
GETPOST(
'FICHINTER_USE_SERVICE_DURATION',
'alpha');
195 $res =
dolibarr_set_const($db,
"FICHINTER_USE_SERVICE_DURATION", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
206} elseif ($action ==
'set_FICHINTER_WITHOUT_DURATION') {
207 $val =
GETPOST(
'FICHINTER_WITHOUT_DURATION',
'alpha');
208 $res =
dolibarr_set_const($db,
"FICHINTER_WITHOUT_DURATION", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
219} elseif ($action ==
'set_FICHINTER_DATE_WITHOUT_HOUR') {
220 $val =
GETPOST(
'FICHINTER_DATE_WITHOUT_HOUR',
'alpha');
221 $res =
dolibarr_set_const($db,
"FICHINTER_DATE_WITHOUT_HOUR", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
232} elseif ($action ==
"set_FICHINTER_ALLOW_ONLINE_SIGN") {
233 $val =
GETPOST(
'FICHINTER_ALLOW_ONLINE_SIGN',
'alpha');
234 $res =
dolibarr_set_const($db,
"FICHINTER_ALLOW_ONLINE_SIGN", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
245} elseif ($action ==
"set_FICHINTER_ALLOW_EXTERNAL_DOWNLOAD") {
246 $val =
GETPOST(
'FICHINTER_ALLOW_EXTERNAL_DOWNLOAD',
'alpha');
247 $res =
dolibarr_set_const($db,
"FICHINTER_ALLOW_EXTERNAL_DOWNLOAD", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
266$dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
268llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-fichinter');
270$form =
new Form($db);
272$linkback =
'<a href="'.dolBuildUrl(DOL_URL_ROOT.
'/admin/modules.php', [
'restore_lastsearch_values' => 1]).
'">'.
img_picto($langs->trans(
"BackToModuleList"),
'back',
'class="pictofixedwidth"').
'<span class="hideonsmartphone">'.$langs->trans(
"BackToModuleList").
'</span></a>';
274print
load_fiche_titre($langs->trans(
"InterventionsSetup"), $linkback,
'title_setup');
279print
dol_get_fiche_head($head,
'ficheinter', $langs->trans(
"Interventions"), -1,
'intervention');
285print
'<div class="div-table-responsive-no-min">';
286print
'<table class="noborder centpercent">';
287print
'<tr class="liste_titre">';
288print
'<td width="100">'.$langs->trans(
"Name").
'</td>';
289print
'<td>'.$langs->trans(
"Description").
'</td>';
290print
'<td>'.$langs->trans(
"Example").
'</td>';
291print
'<td align="center" width="60">'.$langs->trans(
"Status").
'</td>';
292print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
297foreach ($dirmodels as $reldir) {
301 $handle = opendir($dir);
302 if (is_resource($handle)) {
303 while (($file = readdir($handle)) !==
false) {
304 if (preg_match(
'/^(mod_.*)\.php$/i', $file, $reg)) {
306 $classname = substr($file, 4);
308 require_once $dir.$file.
'.php';
310 $module =
new $file();
312 '@phan-var-force ModeleNumRefFicheinter $module';
314 if ($module->isEnabled()) {
316 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
319 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
324 print
'<tr class="oddeven"><td>'.$module->getName($langs).
"</td><td>\n";
325 print $module->info($langs);
329 print
'<td class="nowrap">';
330 $tmp = $module->getExample();
331 if (preg_match(
'/^Error/', $tmp)) {
332 $langs->load(
"errors");
333 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
334 } elseif ($tmp ==
'NotConfigured') {
335 print
'<span class="opacitymedium">'.$langs->trans($tmp).
'</span>';
341 print
'<td class="center">';
343 print
img_picto($langs->trans(
"Activated"),
'switch_on');
345 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.
newToken().
'&value='.urlencode($classname).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
350 $ficheinter->initAsSpecimen();
354 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
355 $nextval = $module->getNextValue(
$mysoc, $ficheinter);
356 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
357 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
359 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
360 $nextval = $langs->trans($nextval);
362 $htmltooltip .= $nextval.
'<br>';
364 $htmltooltip .= $langs->trans($module->error).
'<br>';
367 print
'<td class="center">';
368 print $form->textwithpicto(
'', $htmltooltip, 1,
'info');
396$sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
397$sql .=
" WHERE type = '".$db->escape($type).
"'";
398$sql .=
" AND entity = ".((int) $conf->entity);
399$resql = $db->query($sql);
402 $num_rows = $db->num_rows($resql);
403 while ($i < $num_rows) {
404 $array = $db->fetch_array($resql);
405 if (is_array($array)) {
406 array_push($def, $array[0]);
415print
'<div class="div-table-responsive-no-min">';
416print
'<table class="noborder centpercent">';
417print
'<tr class="liste_titre">';
418print
'<td>'.$langs->trans(
"Name").
'</td>';
419print
'<td>'.$langs->trans(
"Description").
'</td>';
420print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
421print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
422print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
423print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
428foreach ($dirmodels as $reldir) {
429 $realpath = $reldir.
"core/modules/fichinter/doc";
433 $handle = opendir($dir);
434 if (is_resource($handle)) {
436 while (($file = readdir($handle)) !==
false) {
442 foreach ($filelist as $file) {
443 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
444 if (file_exists($dir.
'/'.$file)) {
445 $name = substr($file, 4,
dol_strlen($file) - 16);
446 $classname = substr($file, 0,
dol_strlen($file) - 12);
448 require_once $dir.
'/'.$file;
449 $module =
new $classname($db);
451 '@phan-var-force ModelePDFFicheinter $module';
453 $modulequalified = 1;
454 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
455 $modulequalified = 0;
457 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
458 $modulequalified = 0;
461 if ($modulequalified) {
462 print
'<tr class="oddeven"><td width="100">';
463 print(empty($module->name) ? $name : $module->
name);
465 if (method_exists($module,
'info')) {
466 print $module->info($langs);
468 print $module->description;
473 if (in_array($name, $def)) {
474 print
"<td align=\"center\">\n";
475 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">';
476 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
480 print
"<td align=\"center\">\n";
481 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>';
486 print
"<td align=\"center\">";
488 print
img_picto($langs->trans(
"Default"),
'on');
490 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
495 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
496 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
497 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
498 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
500 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
501 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
502 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentMode").
': '.
yn($module->option_modereg, 1, 1);
503 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentConditions").
': '.
yn($module->option_condreg, 1, 1);
504 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
505 $htmltooltip .=
'<br>'.$langs->trans(
"WatermarkOnDraftOrders").
': '.
yn($module->option_draft_watermark, 1, 1);
506 print
'<td class="center">';
507 print $form->textwithpicto(
'', $htmltooltip, -1,
'info');
511 print
'<td class="center">';
512 if ($module->type ==
'pdf') {
513 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
515 print
img_object($langs->transnoentitiesnoconv(
"PreviewNotAvailable"),
'generic');
538print
'<div class="div-table-responsive-no-min">';
539print
'<table class="noborder centpercent">';
540print
'<tr class="liste_titre">';
541print
'<td>'.$langs->trans(
"Parameter").
'</td>';
542print
'<td align="center" width="60"></td>';
543print
"<td> </td>\n";
547$substitutionarray[
'__(AnyTranslationKey)__'] = $langs->trans(
"Translation");
548$htmltext =
'<i>'.$langs->trans(
"AvailableVariables").
':<br>';
549foreach ($substitutionarray as $key => $val) {
550 $htmltext .= $key.
'<br>';
554print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
555print
'<input type="hidden" name="token" value="'.newToken().
'">';
556print
'<input type="hidden" name="action" value="set_FICHINTER_FREE_TEXT">';
557print
'<tr class="oddeven"><td colspan="2">';
558print $form->textwithpicto($langs->trans(
"FreeLegalTextOnInterventions"), $langs->trans(
"AddCRIfTooLong").
'<br><br>'.$htmltext, 1,
'help',
'', 0, 2,
'freetexttooltip').
'<br>';
559$variablename =
'FICHINTER_FREE_TEXT';
561 print
'<textarea name="'.$variablename.
'" class="flat" cols="120">'.
getDolGlobalString($variablename).
'</textarea>';
563 include_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
565 print $doleditor->Create();
567print
'</td><td class="right">';
568print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
573print
"<form method=\"post\" action=\"".$_SERVER[
"PHP_SELF"].
"\">";
574print
'<input type="hidden" name="token" value="'.newToken().
'">';
575print
"<input type=\"hidden\" name=\"action\" value=\"set_FICHINTER_DRAFT_WATERMARK\">";
576print
'<tr class="oddeven"><td>';
577print $form->textwithpicto($langs->trans(
"WatermarkOnDraftInterventionCards"), $htmltext, 1,
'help',
'', 0, 2,
'watermarktooltip').
'<br>';
579print
'<input class="flat minwidth200" type="text" name="FICHINTER_DRAFT_WATERMARK" value="'.dol_escape_htmltag(
getDolGlobalString(
'FICHINTER_DRAFT_WATERMARK')).
'">';
580print
'</td><td class="right">';
581print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
585print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
586print
'<input type="hidden" name="token" value="'.newToken().
'">';
587print
'<input type="hidden" name="action" value="set_FICHINTER_PRINT_PRODUCTS">';
588print
'<tr class="oddeven"><td>';
589print $langs->trans(
"PrintProductsOnFichinter").
' ('.$langs->trans(
"PrintProductsOnFichinterDetails").
')</td>';
590print
'<td align="center"><input type="checkbox" name="FICHINTER_PRINT_PRODUCTS" ';
595print
'</td><td class="right">';
596print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
600print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
601print
'<input type="hidden" name="token" value="'.newToken().
'">';
602print
'<input type="hidden" name="action" value="set_FICHINTER_USE_SERVICE_DURATION">';
603print
'<tr class="oddeven">';
605print $langs->trans(
"UseServicesDurationOnFichinter");
607print
'<td class="center">';
608print
'<input type="checkbox" name="FICHINTER_USE_SERVICE_DURATION"'.(getDolGlobalString(
"FICHINTER_USE_SERVICE_DURATION") ?
' checked' :
'').
'>';
610print
'<td class="right">';
611print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
616print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
617print
'<input type="hidden" name="token" value="'.newToken().
'">';
618print
'<input type="hidden" name="action" value="set_FICHINTER_WITHOUT_DURATION">';
619print
'<tr class="oddeven">';
621print $langs->trans(
"UseDurationOnFichinter");
623print
'<td class="center">';
624print
'<input type="checkbox" name="FICHINTER_WITHOUT_DURATION"'.(getDolGlobalString(
"FICHINTER_WITHOUT_DURATION") ?
' checked' :
'').
'>';
626print
'<td class="right">';
627print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
632print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
633print
'<input type="hidden" name="token" value="'.newToken().
'">';
634print
'<input type="hidden" name="action" value="set_FICHINTER_DATE_WITHOUT_HOUR">';
635print
'<tr class="oddeven">';
637print $langs->trans(
"UseDateWithoutHourOnFichinter");
639print
'<td class="center">';
640print
'<input type="checkbox" name="FICHINTER_DATE_WITHOUT_HOUR"'.(getDolGlobalString(
"FICHINTER_DATE_WITHOUT_HOUR") ?
' checked' :
'').
'>';
642print
'<td class="right">';
643print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
648print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
649print
'<input type="hidden" name="token" value="'.newToken().
'">';
650print
'<input type="hidden" name="action" value="set_FICHINTER_ALLOW_ONLINE_SIGN">';
651print
'<tr class="oddeven">';
653print $langs->trans(
"AllowOnlineSign");
655print
'<td class="center">';
656print
'<input type="checkbox" name="FICHINTER_ALLOW_ONLINE_SIGN"'.(getDolGlobalString(
"FICHINTER_ALLOW_ONLINE_SIGN") ?
' checked' :
'').
'>';
658print
'<td class="right">';
659print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
664print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
665print
'<input type="hidden" name="token" value="'.newToken().
'">';
666print
'<input type="hidden" name="action" value="set_FICHINTER_ALLOW_EXTERNAL_DOWNLOAD">';
667print
'<tr class="oddeven">';
669print $langs->trans(
"AllowExternalDownload");
671print
'<td class="center">';
672print
'<input type="checkbox" name="FICHINTER_ALLOW_EXTERNAL_DOWNLOAD"'.(getDolGlobalString(
"FICHINTER_ALLOW_EXTERNAL_DOWNLOAD") ?
' checked' :
'').
'>';
674print
'<td class="right">';
675print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
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.
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
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.
Class to manage a WYSIWYG editor.
fichinter_admin_prepare_head()
Return array head with list of tabs to view object information.
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, $allowothertags=array())
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, $morecssdiv='')
Show tabs of a record.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $allowothertags=array())
Show a picto called object_picto (generic function)
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
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...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
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.
pdf_getSubstitutionArray($outputlangs, $exclude=null, $object=null, $onlykey=0, $include=null)
Return array of possible substitutions for PDF content (without external module substitutions).
$conf db name
Only used if Module[ID]Name translation string is not found.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.