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';
41$langs->loadLangs(array(
'admin',
'errors',
'interventions',
'other'));
47$action =
GETPOST(
'action',
'aZ09');
48$value =
GETPOST(
'value',
'alpha');
49$modulepart =
GETPOST(
'modulepart',
'aZ09');
51$label =
GETPOST(
'label',
'alpha');
52$scandir =
GETPOST(
'scan_dir',
'alpha');
60include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
62if ($action ==
'updateMask') {
63 $maskconst =
GETPOST(
'maskconst',
'aZ09');
64 $maskvalue =
GETPOST(
'maskvalue',
'alpha');
65 if ($maskconst && preg_match(
'/_MASK$/', $maskconst)) {
66 $res =
dolibarr_set_const($db, $maskconst, $maskvalue,
'chaine', 0,
'', $conf->entity);
78} elseif ($action ==
'specimen') {
79 $modele =
GETPOST(
'module',
'alpha');
82 $inter->initAsSpecimen();
87 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
88 foreach ($dirmodels as $reldir) {
89 $file =
dol_buildpath($reldir.
"core/modules/fichinter/doc/pdf_".$modele.
".modules.php", 0);
90 if (file_exists($file)) {
91 $classname =
"pdf_".$modele;
96 if ($classname !==
'') {
99 $module =
new $classname($db);
100 '@phan-var-force ModelePDFFicheinter $module';
102 if ($module->write_file($inter, $langs) > 0) {
103 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=ficheinter&file=SPECIMEN.pdf");
111 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
113} elseif ($action ==
'set') {
116} elseif ($action ==
'del') {
119 if ($conf->global->FICHEINTER_ADDON_PDF ==
"$value") {
123} elseif ($action ==
'setdoc') {
125 if (
dolibarr_set_const($db,
"FICHEINTER_ADDON_PDF", $value,
'chaine', 0,
'', $conf->entity)) {
128 $conf->global->FICHEINTER_ADDON_PDF = $value;
136} elseif ($action ==
'setmod') {
141} elseif ($action ==
'set_FICHINTER_FREE_TEXT') {
142 $freetext =
GETPOST(
'FICHINTER_FREE_TEXT',
'restricthtml');
143 $res =
dolibarr_set_const($db,
"FICHINTER_FREE_TEXT", $freetext,
'chaine', 0,
'', $conf->entity);
154} elseif ($action ==
'set_FICHINTER_DRAFT_WATERMARK') {
155 $draft =
GETPOST(
'FICHINTER_DRAFT_WATERMARK',
'alpha');
156 $res =
dolibarr_set_const($db,
"FICHINTER_DRAFT_WATERMARK", trim($draft),
'chaine', 0,
'', $conf->entity);
167} elseif ($action ==
'set_FICHINTER_PRINT_PRODUCTS') {
168 $val =
GETPOST(
'FICHINTER_PRINT_PRODUCTS',
'alpha');
169 $res =
dolibarr_set_const($db,
"FICHINTER_PRINT_PRODUCTS", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
180} elseif ($action ==
'set_FICHINTER_USE_SERVICE_DURATION') {
181 $val =
GETPOST(
'FICHINTER_USE_SERVICE_DURATION',
'alpha');
182 $res =
dolibarr_set_const($db,
"FICHINTER_USE_SERVICE_DURATION", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
193} elseif ($action ==
'set_FICHINTER_WITHOUT_DURATION') {
194 $val =
GETPOST(
'FICHINTER_WITHOUT_DURATION',
'alpha');
195 $res =
dolibarr_set_const($db,
"FICHINTER_WITHOUT_DURATION", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
206} elseif ($action ==
'set_FICHINTER_DATE_WITHOUT_HOUR') {
207 $val =
GETPOST(
'FICHINTER_DATE_WITHOUT_HOUR',
'alpha');
208 $res =
dolibarr_set_const($db,
"FICHINTER_DATE_WITHOUT_HOUR", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
219} elseif ($action ==
"set_FICHINTER_ALLOW_ONLINE_SIGN") {
220 $val =
GETPOST(
'FICHINTER_ALLOW_ONLINE_SIGN',
'alpha');
221 $res =
dolibarr_set_const($db,
"FICHINTER_ALLOW_ONLINE_SIGN", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
232} elseif ($action ==
"set_FICHINTER_ALLOW_EXTERNAL_DOWNLOAD") {
233 $val =
GETPOST(
'FICHINTER_ALLOW_EXTERNAL_DOWNLOAD',
'alpha');
234 $res =
dolibarr_set_const($db,
"FICHINTER_ALLOW_EXTERNAL_DOWNLOAD", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
253$dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
255llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-fichinter');
257$form =
new Form($db);
259$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
260print
load_fiche_titre($langs->trans(
"InterventionsSetup"), $linkback,
'title_setup');
265print
dol_get_fiche_head($head,
'ficheinter', $langs->trans(
"Interventions"), -1,
'intervention');
271print
'<div class="div-table-responsive-no-min">';
272print
'<table class="noborder centpercent">';
273print
'<tr class="liste_titre">';
274print
'<td width="100">'.$langs->trans(
"Name").
'</td>';
275print
'<td>'.$langs->trans(
"Description").
'</td>';
276print
'<td>'.$langs->trans(
"Example").
'</td>';
277print
'<td align="center" width="60">'.$langs->trans(
"Status").
'</td>';
278print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
283foreach ($dirmodels as $reldir) {
287 $handle = opendir($dir);
288 if (is_resource($handle)) {
289 while (($file = readdir($handle)) !==
false) {
290 if (preg_match(
'/^(mod_.*)\.php$/i', $file, $reg)) {
292 $classname = substr($file, 4);
294 require_once $dir.$file.
'.php';
296 $module =
new $file();
298 '@phan-var-force ModeleNumRefFicheinter $module';
300 if ($module->isEnabled()) {
302 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
305 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
310 print
'<tr class="oddeven"><td>'.$module->getName($langs).
"</td><td>\n";
311 print $module->info($langs);
315 print
'<td class="nowrap">';
316 $tmp = $module->getExample();
317 if (preg_match(
'/^Error/', $tmp)) {
318 $langs->load(
"errors");
319 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
320 } elseif ($tmp ==
'NotConfigured') {
321 print
'<span class="opacitymedium">'.$langs->trans($tmp).
'</span>';
327 print
'<td class="center">';
328 if ($conf->global->FICHEINTER_ADDON == $classname) {
329 print
img_picto($langs->trans(
"Activated"),
'switch_on');
331 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>';
336 $ficheinter->initAsSpecimen();
340 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
341 $nextval = $module->getNextValue($mysoc, $ficheinter);
342 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
343 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
345 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
346 $nextval = $langs->trans($nextval);
348 $htmltooltip .= $nextval.
'<br>';
350 $htmltooltip .= $langs->trans($module->error).
'<br>';
353 print
'<td class="center">';
354 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
382$sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
383$sql .=
" WHERE type = '".$db->escape($type).
"'";
384$sql .=
" AND entity = ".$conf->entity;
385$resql = $db->query($sql);
388 $num_rows = $db->num_rows($resql);
389 while ($i < $num_rows) {
390 $array = $db->fetch_array($resql);
391 if (is_array($array)) {
392 array_push($def, $array[0]);
401print
'<div class="div-table-responsive-no-min">';
402print
'<table class="noborder centpercent">';
403print
'<tr class="liste_titre">';
404print
'<td>'.$langs->trans(
"Name").
'</td>';
405print
'<td>'.$langs->trans(
"Description").
'</td>';
406print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
407print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
408print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
409print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
414foreach ($dirmodels as $reldir) {
415 $realpath = $reldir.
"core/modules/fichinter/doc";
419 $handle = opendir($dir);
420 if (is_resource($handle)) {
422 while (($file = readdir($handle)) !==
false) {
428 foreach ($filelist as $file) {
429 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
430 if (file_exists($dir.
'/'.$file)) {
431 $name = substr($file, 4,
dol_strlen($file) - 16);
432 $classname = substr($file, 0,
dol_strlen($file) - 12);
434 require_once $dir.
'/'.$file;
435 $module =
new $classname($db);
437 '@phan-var-force ModelePDFFicheinter $module';
439 $modulequalified = 1;
440 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
441 $modulequalified = 0;
443 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
444 $modulequalified = 0;
447 if ($modulequalified) {
448 print
'<tr class="oddeven"><td width="100">';
449 print(empty($module->name) ? $name : $module->
name);
451 if (method_exists($module,
'info')) {
452 print $module->info($langs);
454 print $module->description;
459 if (in_array($name, $def)) {
460 print
"<td align=\"center\">\n";
461 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">';
462 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
466 print
"<td align=\"center\">\n";
467 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>';
472 print
"<td align=\"center\">";
473 if ($conf->global->FICHEINTER_ADDON_PDF ==
"$name") {
474 print
img_picto($langs->trans(
"Default"),
'on');
476 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>';
481 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
482 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
483 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
484 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
486 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
487 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
488 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentMode").
': '.
yn($module->option_modereg, 1, 1);
489 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentConditions").
': '.
yn($module->option_condreg, 1, 1);
490 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
491 $htmltooltip .=
'<br>'.$langs->trans(
"WatermarkOnDraftOrders").
': '.
yn($module->option_draft_watermark, 1, 1);
492 print
'<td class="center">';
493 print $form->textwithpicto(
'', $htmltooltip, -1, 0);
497 print
'<td class="center">';
498 if ($module->type ==
'pdf') {
499 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
501 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
524print
'<div class="div-table-responsive-no-min">';
525print
'<table class="noborder centpercent">';
526print
'<tr class="liste_titre">';
527print
'<td>'.$langs->trans(
"Parameter").
'</td>';
528print
'<td align="center" width="60">'.$langs->trans(
"Value").
'</td>';
529print
"<td> </td>\n";
533$substitutionarray[
'__(AnyTranslationKey)__'] = $langs->trans(
"Translation");
534$htmltext =
'<i>'.$langs->trans(
"AvailableVariables").
':<br>';
535foreach ($substitutionarray as $key => $val) {
536 $htmltext .= $key.
'<br>';
540print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
541print
'<input type="hidden" name="token" value="'.newToken().
'">';
542print
'<input type="hidden" name="action" value="set_FICHINTER_FREE_TEXT">';
543print
'<tr class="oddeven"><td colspan="2">';
544print $form->textwithpicto($langs->trans(
"FreeLegalTextOnInterventions"), $langs->trans(
"AddCRIfTooLong").
'<br><br>'.$htmltext, 1,
'help',
'', 0, 2,
'freetexttooltip').
'<br>';
545$variablename =
'FICHINTER_FREE_TEXT';
547 print
'<textarea name="'.$variablename.
'" class="flat" cols="120">'.
getDolGlobalString($variablename).
'</textarea>';
549 include_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
551 print $doleditor->Create();
553print
'</td><td class="right">';
554print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
559print
"<form method=\"post\" action=\"".$_SERVER[
"PHP_SELF"].
"\">";
560print
'<input type="hidden" name="token" value="'.newToken().
'">';
561print
"<input type=\"hidden\" name=\"action\" value=\"set_FICHINTER_DRAFT_WATERMARK\">";
562print
'<tr class="oddeven"><td>';
563print $form->textwithpicto($langs->trans(
"WatermarkOnDraftInterventionCards"), $htmltext, 1,
'help',
'', 0, 2,
'watermarktooltip').
'<br>';
565print
'<input class="flat minwidth200" type="text" name="FICHINTER_DRAFT_WATERMARK" value="'.dol_escape_htmltag(
getDolGlobalString(
'FICHINTER_DRAFT_WATERMARK')).
'">';
566print
'</td><td class="right">';
567print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
571print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
572print
'<input type="hidden" name="token" value="'.newToken().
'">';
573print
'<input type="hidden" name="action" value="set_FICHINTER_PRINT_PRODUCTS">';
574print
'<tr class="oddeven"><td>';
575print $langs->trans(
"PrintProductsOnFichinter").
' ('.$langs->trans(
"PrintProductsOnFichinterDetails").
')</td>';
576print
'<td align="center"><input type="checkbox" name="FICHINTER_PRINT_PRODUCTS" ';
581print
'</td><td class="right">';
582print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
586print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
587print
'<input type="hidden" name="token" value="'.newToken().
'">';
588print
'<input type="hidden" name="action" value="set_FICHINTER_USE_SERVICE_DURATION">';
589print
'<tr class="oddeven">';
591print $langs->trans(
"UseServicesDurationOnFichinter");
593print
'<td class="center">';
594print
'<input type="checkbox" name="FICHINTER_USE_SERVICE_DURATION"'.(getDolGlobalString(
"FICHINTER_USE_SERVICE_DURATION") ?
' checked' :
'').
'>';
596print
'<td class="right">';
597print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
602print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
603print
'<input type="hidden" name="token" value="'.newToken().
'">';
604print
'<input type="hidden" name="action" value="set_FICHINTER_WITHOUT_DURATION">';
605print
'<tr class="oddeven">';
607print $langs->trans(
"UseDurationOnFichinter");
609print
'<td class="center">';
610print
'<input type="checkbox" name="FICHINTER_WITHOUT_DURATION"'.(getDolGlobalString(
"FICHINTER_WITHOUT_DURATION") ?
' checked' :
'').
'>';
612print
'<td class="right">';
613print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
618print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
619print
'<input type="hidden" name="token" value="'.newToken().
'">';
620print
'<input type="hidden" name="action" value="set_FICHINTER_DATE_WITHOUT_HOUR">';
621print
'<tr class="oddeven">';
623print $langs->trans(
"UseDateWithoutHourOnFichinter");
625print
'<td class="center">';
626print
'<input type="checkbox" name="FICHINTER_DATE_WITHOUT_HOUR"'.(getDolGlobalString(
"FICHINTER_DATE_WITHOUT_HOUR") ?
' checked' :
'').
'>';
628print
'<td class="right">';
629print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
634print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
635print
'<input type="hidden" name="token" value="'.newToken().
'">';
636print
'<input type="hidden" name="action" value="set_FICHINTER_ALLOW_ONLINE_SIGN">';
637print
'<tr class="oddeven">';
639print $langs->trans(
"AllowOnlineSign");
641print
'<td class="center">';
642print
'<input type="checkbox" name="FICHINTER_ALLOW_ONLINE_SIGN"'.(getDolGlobalString(
"FICHINTER_ALLOW_ONLINE_SIGN") ?
' checked' :
'').
'>';
644print
'<td class="right">';
645print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
650print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
651print
'<input type="hidden" name="token" value="'.newToken().
'">';
652print
'<input type="hidden" name="action" value="set_FICHINTER_ALLOW_EXTERNAL_DOWNLOAD">';
653print
'<tr class="oddeven">';
655print $langs->trans(
"AllowExternalDownload");
657print
'<td class="center">';
658print
'<input type="checkbox" name="FICHINTER_ALLOW_EXTERNAL_DOWNLOAD"'.(getDolGlobalString(
"FICHINTER_ALLOW_EXTERNAL_DOWNLOAD") ?
' checked' :
'').
'>';
660print
'<td class="right">';
661print
'<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.
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.
Class to manage interventions.
fichinter_admin_prepare_head()
Return array head with list of tabs to view object information.
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)
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
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_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'.
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.
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.
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.