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');
68 if ($maskconst && preg_match(
'/_MASK$/', $maskconst)) {
69 $res =
dolibarr_set_const($db, $maskconst, $maskvalue,
'chaine', 0,
'', $conf->entity);
81} elseif ($action ==
'specimen') {
82 $modele =
GETPOST(
'module',
'alpha');
85 $inter->initAsSpecimen();
90 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
91 foreach ($dirmodels as $reldir) {
92 $file =
dol_buildpath($reldir.
"core/modules/fichinter/doc/pdf_".$modele.
".modules.php", 0);
93 if (file_exists($file)) {
94 $classname =
"pdf_".$modele;
99 if ($classname !==
'') {
102 $module =
new $classname($db);
103 '@phan-var-force ModelePDFFicheinter $module';
105 if ($module->write_file($inter, $langs) > 0) {
106 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=ficheinter&file=SPECIMEN.pdf");
114 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
116} elseif ($action ==
'set') {
119} elseif ($action ==
'del') {
122 if ($conf->global->FICHEINTER_ADDON_PDF ==
"$value") {
126} elseif ($action ==
'setdoc') {
128 if (
dolibarr_set_const($db,
"FICHEINTER_ADDON_PDF", $value,
'chaine', 0,
'', $conf->entity)) {
131 $conf->global->FICHEINTER_ADDON_PDF = $value;
139} elseif ($action ==
'setmod') {
144} elseif ($action ==
'set_FICHINTER_FREE_TEXT') {
145 $freetext =
GETPOST(
'FICHINTER_FREE_TEXT',
'restricthtml');
146 $res =
dolibarr_set_const($db,
"FICHINTER_FREE_TEXT", $freetext,
'chaine', 0,
'', $conf->entity);
157} elseif ($action ==
'set_FICHINTER_DRAFT_WATERMARK') {
158 $draft =
GETPOST(
'FICHINTER_DRAFT_WATERMARK',
'alpha');
159 $res =
dolibarr_set_const($db,
"FICHINTER_DRAFT_WATERMARK", trim($draft),
'chaine', 0,
'', $conf->entity);
170} elseif ($action ==
'set_FICHINTER_PRINT_PRODUCTS') {
171 $val =
GETPOST(
'FICHINTER_PRINT_PRODUCTS',
'alpha');
172 $res =
dolibarr_set_const($db,
"FICHINTER_PRINT_PRODUCTS", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
183} elseif ($action ==
'set_FICHINTER_USE_SERVICE_DURATION') {
184 $val =
GETPOST(
'FICHINTER_USE_SERVICE_DURATION',
'alpha');
185 $res =
dolibarr_set_const($db,
"FICHINTER_USE_SERVICE_DURATION", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
196} elseif ($action ==
'set_FICHINTER_WITHOUT_DURATION') {
197 $val =
GETPOST(
'FICHINTER_WITHOUT_DURATION',
'alpha');
198 $res =
dolibarr_set_const($db,
"FICHINTER_WITHOUT_DURATION", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
209} elseif ($action ==
'set_FICHINTER_DATE_WITHOUT_HOUR') {
210 $val =
GETPOST(
'FICHINTER_DATE_WITHOUT_HOUR',
'alpha');
211 $res =
dolibarr_set_const($db,
"FICHINTER_DATE_WITHOUT_HOUR", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
222} elseif ($action ==
"set_FICHINTER_ALLOW_ONLINE_SIGN") {
223 $val =
GETPOST(
'FICHINTER_ALLOW_ONLINE_SIGN',
'alpha');
224 $res =
dolibarr_set_const($db,
"FICHINTER_ALLOW_ONLINE_SIGN", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
235} elseif ($action ==
"set_FICHINTER_ALLOW_EXTERNAL_DOWNLOAD") {
236 $val =
GETPOST(
'FICHINTER_ALLOW_EXTERNAL_DOWNLOAD',
'alpha');
237 $res =
dolibarr_set_const($db,
"FICHINTER_ALLOW_EXTERNAL_DOWNLOAD", ($val ==
'on' ? 1 : 0),
'bool', 0,
'', $conf->entity);
256$dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
258llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-fichinter');
260$form =
new Form($db);
262$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
263print
load_fiche_titre($langs->trans(
"InterventionsSetup"), $linkback,
'title_setup');
268print
dol_get_fiche_head($head,
'ficheinter', $langs->trans(
"Interventions"), -1,
'intervention');
274print
'<div class="div-table-responsive-no-min">';
275print
'<table class="noborder centpercent">';
276print
'<tr class="liste_titre">';
277print
'<td width="100">'.$langs->trans(
"Name").
'</td>';
278print
'<td>'.$langs->trans(
"Description").
'</td>';
279print
'<td>'.$langs->trans(
"Example").
'</td>';
280print
'<td align="center" width="60">'.$langs->trans(
"Status").
'</td>';
281print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
286foreach ($dirmodels as $reldir) {
290 $handle = opendir($dir);
291 if (is_resource($handle)) {
292 while (($file = readdir($handle)) !==
false) {
293 if (preg_match(
'/^(mod_.*)\.php$/i', $file, $reg)) {
295 $classname = substr($file, 4);
297 require_once $dir.$file.
'.php';
299 $module =
new $file();
301 '@phan-var-force ModeleNumRefFicheinter $module';
303 if ($module->isEnabled()) {
305 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
308 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
313 print
'<tr class="oddeven"><td>'.$module->getName($langs).
"</td><td>\n";
314 print $module->info($langs);
318 print
'<td class="nowrap">';
319 $tmp = $module->getExample();
320 if (preg_match(
'/^Error/', $tmp)) {
321 $langs->load(
"errors");
322 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
323 } elseif ($tmp ==
'NotConfigured') {
324 print
'<span class="opacitymedium">'.$langs->trans($tmp).
'</span>';
330 print
'<td class="center">';
331 if ($conf->global->FICHEINTER_ADDON == $classname) {
332 print
img_picto($langs->trans(
"Activated"),
'switch_on');
334 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>';
339 $ficheinter->initAsSpecimen();
343 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
344 $nextval = $module->getNextValue($mysoc, $ficheinter);
345 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
346 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
348 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
349 $nextval = $langs->trans($nextval);
351 $htmltooltip .= $nextval.
'<br>';
353 $htmltooltip .= $langs->trans($module->error).
'<br>';
356 print
'<td class="center">';
357 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
385$sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
386$sql .=
" WHERE type = '".$db->escape($type).
"'";
387$sql .=
" AND entity = ".$conf->entity;
388$resql = $db->query($sql);
391 $num_rows = $db->num_rows($resql);
392 while ($i < $num_rows) {
393 $array = $db->fetch_array($resql);
394 if (is_array($array)) {
395 array_push($def, $array[0]);
404print
'<div class="div-table-responsive-no-min">';
405print
'<table class="noborder centpercent">';
406print
'<tr class="liste_titre">';
407print
'<td>'.$langs->trans(
"Name").
'</td>';
408print
'<td>'.$langs->trans(
"Description").
'</td>';
409print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
410print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
411print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
412print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
417foreach ($dirmodels as $reldir) {
418 $realpath = $reldir.
"core/modules/fichinter/doc";
422 $handle = opendir($dir);
423 if (is_resource($handle)) {
425 while (($file = readdir($handle)) !==
false) {
431 foreach ($filelist as $file) {
432 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
433 if (file_exists($dir.
'/'.$file)) {
434 $name = substr($file, 4,
dol_strlen($file) - 16);
435 $classname = substr($file, 0,
dol_strlen($file) - 12);
437 require_once $dir.
'/'.$file;
438 $module =
new $classname($db);
440 '@phan-var-force ModelePDFFicheinter $module';
442 $modulequalified = 1;
443 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
444 $modulequalified = 0;
446 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
447 $modulequalified = 0;
450 if ($modulequalified) {
451 print
'<tr class="oddeven"><td width="100">';
452 print(empty($module->name) ? $name : $module->
name);
454 if (method_exists($module,
'info')) {
455 print $module->info($langs);
457 print $module->description;
462 if (in_array($name, $def)) {
463 print
"<td align=\"center\">\n";
464 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">';
465 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
469 print
"<td align=\"center\">\n";
470 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>';
475 print
"<td align=\"center\">";
476 if ($conf->global->FICHEINTER_ADDON_PDF ==
"$name") {
477 print
img_picto($langs->trans(
"Default"),
'on');
479 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>';
484 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
485 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
486 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
487 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
489 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
490 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
491 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentMode").
': '.
yn($module->option_modereg, 1, 1);
492 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentConditions").
': '.
yn($module->option_condreg, 1, 1);
493 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
494 $htmltooltip .=
'<br>'.$langs->trans(
"WatermarkOnDraftOrders").
': '.
yn($module->option_draft_watermark, 1, 1);
495 print
'<td class="center">';
496 print $form->textwithpicto(
'', $htmltooltip, -1, 0);
500 print
'<td class="center">';
501 if ($module->type ==
'pdf') {
502 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
504 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
527print
'<div class="div-table-responsive-no-min">';
528print
'<table class="noborder centpercent">';
529print
'<tr class="liste_titre">';
530print
'<td>'.$langs->trans(
"Parameter").
'</td>';
531print
'<td align="center" width="60">'.$langs->trans(
"Value").
'</td>';
532print
"<td> </td>\n";
536$substitutionarray[
'__(AnyTranslationKey)__'] = $langs->trans(
"Translation");
537$htmltext =
'<i>'.$langs->trans(
"AvailableVariables").
':<br>';
538foreach ($substitutionarray as $key => $val) {
539 $htmltext .= $key.
'<br>';
543print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
544print
'<input type="hidden" name="token" value="'.newToken().
'">';
545print
'<input type="hidden" name="action" value="set_FICHINTER_FREE_TEXT">';
546print
'<tr class="oddeven"><td colspan="2">';
547print $form->textwithpicto($langs->trans(
"FreeLegalTextOnInterventions"), $langs->trans(
"AddCRIfTooLong").
'<br><br>'.$htmltext, 1,
'help',
'', 0, 2,
'freetexttooltip').
'<br>';
548$variablename =
'FICHINTER_FREE_TEXT';
550 print
'<textarea name="'.$variablename.
'" class="flat" cols="120">'.
getDolGlobalString($variablename).
'</textarea>';
552 include_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
554 print $doleditor->Create();
556print
'</td><td class="right">';
557print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
562print
"<form method=\"post\" action=\"".$_SERVER[
"PHP_SELF"].
"\">";
563print
'<input type="hidden" name="token" value="'.newToken().
'">';
564print
"<input type=\"hidden\" name=\"action\" value=\"set_FICHINTER_DRAFT_WATERMARK\">";
565print
'<tr class="oddeven"><td>';
566print $form->textwithpicto($langs->trans(
"WatermarkOnDraftInterventionCards"), $htmltext, 1,
'help',
'', 0, 2,
'watermarktooltip').
'<br>';
568print
'<input class="flat minwidth200" type="text" name="FICHINTER_DRAFT_WATERMARK" value="'.dol_escape_htmltag(
getDolGlobalString(
'FICHINTER_DRAFT_WATERMARK')).
'">';
569print
'</td><td class="right">';
570print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
574print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
575print
'<input type="hidden" name="token" value="'.newToken().
'">';
576print
'<input type="hidden" name="action" value="set_FICHINTER_PRINT_PRODUCTS">';
577print
'<tr class="oddeven"><td>';
578print $langs->trans(
"PrintProductsOnFichinter").
' ('.$langs->trans(
"PrintProductsOnFichinterDetails").
')</td>';
579print
'<td align="center"><input type="checkbox" name="FICHINTER_PRINT_PRODUCTS" ';
584print
'</td><td class="right">';
585print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
589print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
590print
'<input type="hidden" name="token" value="'.newToken().
'">';
591print
'<input type="hidden" name="action" value="set_FICHINTER_USE_SERVICE_DURATION">';
592print
'<tr class="oddeven">';
594print $langs->trans(
"UseServicesDurationOnFichinter");
596print
'<td class="center">';
597print
'<input type="checkbox" name="FICHINTER_USE_SERVICE_DURATION"'.(getDolGlobalString(
"FICHINTER_USE_SERVICE_DURATION") ?
' checked' :
'').
'>';
599print
'<td class="right">';
600print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
605print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
606print
'<input type="hidden" name="token" value="'.newToken().
'">';
607print
'<input type="hidden" name="action" value="set_FICHINTER_WITHOUT_DURATION">';
608print
'<tr class="oddeven">';
610print $langs->trans(
"UseDurationOnFichinter");
612print
'<td class="center">';
613print
'<input type="checkbox" name="FICHINTER_WITHOUT_DURATION"'.(getDolGlobalString(
"FICHINTER_WITHOUT_DURATION") ?
' checked' :
'').
'>';
615print
'<td class="right">';
616print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
621print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
622print
'<input type="hidden" name="token" value="'.newToken().
'">';
623print
'<input type="hidden" name="action" value="set_FICHINTER_DATE_WITHOUT_HOUR">';
624print
'<tr class="oddeven">';
626print $langs->trans(
"UseDateWithoutHourOnFichinter");
628print
'<td class="center">';
629print
'<input type="checkbox" name="FICHINTER_DATE_WITHOUT_HOUR"'.(getDolGlobalString(
"FICHINTER_DATE_WITHOUT_HOUR") ?
' checked' :
'').
'>';
631print
'<td class="right">';
632print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
637print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
638print
'<input type="hidden" name="token" value="'.newToken().
'">';
639print
'<input type="hidden" name="action" value="set_FICHINTER_ALLOW_ONLINE_SIGN">';
640print
'<tr class="oddeven">';
642print $langs->trans(
"AllowOnlineSign");
644print
'<td class="center">';
645print
'<input type="checkbox" name="FICHINTER_ALLOW_ONLINE_SIGN"'.(getDolGlobalString(
"FICHINTER_ALLOW_ONLINE_SIGN") ?
' checked' :
'').
'>';
647print
'<td class="right">';
648print
'<input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'">';
653print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
654print
'<input type="hidden" name="token" value="'.newToken().
'">';
655print
'<input type="hidden" name="action" value="set_FICHINTER_ALLOW_EXTERNAL_DOWNLOAD">';
656print
'<tr class="oddeven">';
658print $langs->trans(
"AllowExternalDownload");
660print
'<td class="center">';
661print
'<input type="checkbox" name="FICHINTER_ALLOW_EXTERNAL_DOWNLOAD"'.(getDolGlobalString(
"FICHINTER_ALLOW_EXTERNAL_DOWNLOAD") ?
' checked' :
'').
'>';
663print
'<td class="right">';
664print
'<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.
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)
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_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...
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.