dolibarr 23.0.3
delivery.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
4 * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
5 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
6 * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
7 * Copyright (C) 2005-2014 Regis Houssin <regis.houssin@inodbox.com>
8 * Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es>
9 * Copyright (C) 2011-2018 Philippe Grand <philippe.grand@atoo-net.com>
10 * Copyright (C) 2015 Claudio Aschieri <c.aschieri@19.coop>
11 * Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
12 * Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program. If not, see <https://www.gnu.org/licenses/>.
26 */
27
33require '../main.inc.php';
34require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
35require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
36require_once DOL_DOCUMENT_ROOT.'/core/lib/expedition.lib.php';
37require_once DOL_DOCUMENT_ROOT.'/delivery/class/delivery.class.php';
38
48// Load translation files required by the page
49$langs->loadLangs(array("admin", "sendings", "other"));
50
51if (!$user->admin) {
53}
54
55$action = GETPOST('action', 'alpha');
56$value = GETPOST('value', 'alpha');
57$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
58
59$label = GETPOST('label', 'alpha');
60$scandir = GETPOST('scan_dir', 'alpha');
61$type = 'delivery';
62
63
64/*
65 * Actions
66 */
67$error = 0;
68
69include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
70
71
72// Shipment note. We force MAIN_SUBMODULE_EXPEDITION to on because this var is still used. TODO We should remove it, only MAIN_SUBMODULE_DELIVERY must be used.
73if (isModEnabled('shipping') && !getDolGlobalString('MAIN_SUBMODULE_EXPEDITION')) {
74 // This option should always be set to on when module is on.
75 dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1", 'chaine', 0, '', $conf->entity);
76}
77
78// Delivery note
79if ($action == 'activate_delivery') {
80 dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1", 'chaine', 0, '', $conf->entity); // We must also enable this
81 dolibarr_set_const($db, "MAIN_SUBMODULE_DELIVERY", "1", 'chaine', 0, '', $conf->entity);
82 header("Location: delivery.php");
83 exit;
84} elseif ($action == 'disable_delivery') {
85 dolibarr_del_const($db, "MAIN_SUBMODULE_DELIVERY", $conf->entity);
86 header("Location: delivery.php");
87 exit;
88}
89
90if ($action == 'updateMask') {
91 $maskconstdelivery = GETPOST('maskconstdelivery', 'aZ09');
92 $maskdelivery = GETPOST('maskdelivery', 'alpha');
93
94 $res = 0;
95
96 if ($maskconstdelivery && preg_match('/_MASK$/', $maskconstdelivery)) {
97 $res = dolibarr_set_const($db, $maskconstdelivery, $maskdelivery, 'chaine', 0, '', $conf->entity);
98 }
99
100 if (!($res > 0)) {
101 $error++;
102 }
103
104 if (!$error) {
105 setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
106 } else {
107 setEventMessages($langs->trans("Error"), null, 'errors');
108 }
109}
110
111if ($action == 'set_DELIVERY_FREE_TEXT') {
112 $free = GETPOST('DELIVERY_FREE_TEXT', 'restricthtml'); // No alpha here, we want exact string
113 $res = dolibarr_set_const($db, "DELIVERY_FREE_TEXT", $free, 'chaine', 0, '', $conf->entity);
114
115 if (!($res > 0)) {
116 $error++;
117 }
118
119 if (!$error) {
120 setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
121 } else {
122 setEventMessages($langs->trans("Error"), null, 'errors');
123 }
124}
125
126if ($action == 'specimen') {
127 $modele = GETPOST('module', 'alpha');
128
129 $sending = new Delivery($db);
130 $sending->initAsSpecimen();
131
132 // Search template files
133 $file = '';
134 $classname = '';
135 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
136 foreach ($dirmodels as $reldir) {
137 $file = dol_buildpath($reldir."core/modules/delivery/doc/pdf_".$modele.".modules.php", 0);
138 if (file_exists($file)) {
139 $classname = "pdf_".$modele;
140 break;
141 }
142 }
143
144 if ($classname !== '') {
145 require_once $file;
146
147 $module = new $classname($db);
148 '@phan-var-force ModelePDFDeliveryOrder $module';
149
150 if ($module->write_file($sending, $langs) > 0) {
151 header("Location: ".DOL_URL_ROOT."/document.php?modulepart=delivery&file=SPECIMEN.pdf");
152 return;
153 } else {
154 setEventMessages($module->error, $module->errors, 'errors');
155 dol_syslog($module->error, LOG_ERR);
156 }
157 } else {
158 setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
159 dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
160 }
161}
162
163if ($action == 'set') {
164 $ret = addDocumentModel($value, $type, $label, $scandir);
165}
166
167if ($action == 'del') {
168 $ret = delDocumentModel($value, $type);
169 if ($ret > 0) {
170 if (getDolGlobalString('DELIVERY_ADDON_PDF') == $value) {
171 dolibarr_del_const($db, 'DELIVERY_ADDON_PDF', $conf->entity);
172 }
173 }
174}
175
176if ($action == 'setdoc') {
177 if (dolibarr_set_const($db, "DELIVERY_ADDON_PDF", $value, 'chaine', 0, '', $conf->entity)) {
178 // La constante qui a ete lue en avant du nouveau set
179 // on passe donc par une variable pour avoir un affichage coherent
180 $conf->global->DELIVERY_ADDON_PDF = $value;
181 }
182
183 // On active le modele
184 $ret = delDocumentModel($value, $type);
185 if ($ret > 0) {
186 $ret = addDocumentModel($value, $type, $label, $scandir);
187 }
188}
189
190if ($action == 'setmod') {
191 // TODO Verify if the chosen numbering module can be activated
192 // by calling method canBeActivated
193
194 dolibarr_set_const($db, "DELIVERY_ADDON_NUMBER", $value, 'chaine', 0, '', $conf->entity);
195}
196
197
198
199/*
200 * View
201 */
202
203$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
204
205llxHeader('', '', '', '', 0, 0, '', '', '', 'mod-admin page-delivery');
206
207$form = new Form($db);
208
209$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>';
210
211print load_fiche_titre($langs->trans("SendingsSetup"), $linkback, 'title_setup');
212print '<br>';
214
215print dol_get_fiche_head($head, 'receivings', $langs->trans("Receivings"), -1, 'shipment');
216
217
218print '<br>';
219print '<div class="inline-block valignmiddle">'.$langs->trans("DeliveriesOrderAbility").'</div>';
220if (!getDolGlobalString('MAIN_SUBMODULE_DELIVERY')) {
221 print ' <a class="inline-block valignmiddle" href="'.$_SERVER["PHP_SELF"].'?action=activate_delivery&token='.newToken().'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
222} else {
223 print ' <a class="inline-block valignmiddle" href="'.$_SERVER["PHP_SELF"].'?action=disable_delivery&token='.newToken().'">'.img_picto($langs->trans("Enabled"), 'switch_on').'</a>';
224}
225
226print '<br><br><span class="opacitymedium">'.info_admin($langs->trans("NoNeedForDeliveryReceipts"), 0, 1).'</span>';
227print '<br><br>';
228print '<br>';
229
230
231
232if (getDolGlobalString('MAIN_SUBMODULE_DELIVERY')) {
233 // Delivery numbering model
234
235 print load_fiche_titre($langs->trans("DeliveryOrderNumberingModules"), '', '');
236
237 print '<table class="noborder centpercent">';
238 print '<tr class="liste_titre">';
239 print '<td width="100">'.$langs->trans("Name").'</td>';
240 print '<td>'.$langs->trans("Description").'</td>';
241 print '<td class="nowrap">'.$langs->trans("Example").'</td>';
242 print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
243 print '<td align="center" width="16">'.$langs->trans("ShortInfo").'</td>';
244 print '</tr>'."\n";
245
246 clearstatcache();
247
248 foreach ($dirmodels as $reldir) {
249 $dir = dol_buildpath($reldir."core/modules/delivery/");
250
251 if (is_dir($dir)) {
252 $handle = opendir($dir);
253 if (is_resource($handle)) {
254 while (($file = readdir($handle)) !== false) {
255 if (preg_match('/^mod_delivery_([a-z0-9_]*)\.php$/', $file)) {
256 $file = substr($file, 0, dol_strlen($file) - 4);
257
258 require_once $dir.$file.'.php';
259
260 $module = new $file();
261
262 '@phan-var-force ModeleNumRefDeliveryOrder $module';
263
264 if ($module->isEnabled()) {
265 // Show modules according to features level
266 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
267 continue;
268 }
269 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
270 continue;
271 }
272
273 print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
274 print $module->info($langs);
275 print '</td>';
276
277 // Show example of numbering module
278 print '<td class="nowrap">';
279 $tmp = $module->getExample();
280 if (preg_match('/^Error/', $tmp)) {
281 $langs->load("errors");
282 print '<div class="error">'.$langs->trans($tmp).'</div>';
283 } elseif ($tmp == 'NotConfigured') {
284 print '<span class="opacitymedium">'.$langs->trans($tmp).'</span>';
285 } else {
286 print $tmp;
287 }
288 print '</td>'."\n";
289
290 print '<td class="center">';
291 if (getDolGlobalString('DELIVERY_ADDON_NUMBER') == "$file") {
292 print img_picto($langs->trans("Activated"), 'switch_on');
293 } else {
294 print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&value='.urlencode($file).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
295 }
296 print '</td>';
297
298 $delivery = new Delivery($db);
299 $delivery->initAsSpecimen();
300
301 // Info
302 $htmltooltip = '';
303 $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
304 $nextval = $module->getNextValue($mysoc, $delivery);
305 if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
306 $htmltooltip .= ''.$langs->trans("NextValue").': ';
307 if ($nextval) {
308 if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
309 $nextval = $langs->trans($nextval);
310 }
311 $htmltooltip .= $nextval.'<br>';
312 } else {
313 $htmltooltip .= $langs->trans($module->error).'<br>';
314 }
315 }
316
317 print '<td class="center">';
318 print $form->textwithpicto('', $htmltooltip, 1, 'info');
319 print '</td>';
320
321 print '</tr>';
322 }
323 }
324 }
325 closedir($handle);
326 }
327 }
328 }
329
330 print '</table>';
331
332
333 /*
334 * Documents Models for delivery
335 */
336 print '<br>';
337 print load_fiche_titre($langs->trans("DeliveryOrderModel"), '', '');
338
339 // Defini tableau def de modele
340 $type = "delivery";
341 $def = array();
342
343 $sql = "SELECT nom";
344 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
345 $sql .= " WHERE type = '".$db->escape($type)."'";
346 $sql .= " AND entity = ".((int) $conf->entity);
347
348 $resql = $db->query($sql);
349 if ($resql) {
350 $i = 0;
351 $num_rows = $db->num_rows($resql);
352 while ($i < $num_rows) {
353 $array = $db->fetch_array($resql);
354 if (is_array($array)) {
355 array_push($def, $array[0]);
356 }
357 $i++;
358 }
359 } else {
360 dol_print_error($db);
361 }
362
363 print '<table class="noborder centpercent">';
364 print '<tr class="liste_titre">';
365 print '<td width="140">'.$langs->trans("Name").'</td>';
366 print '<td>'.$langs->trans("Description").'</td>';
367 print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
368 print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
369 print '<td align="center" width="32">'.$langs->trans("ShortInfo").'</td>';
370 print '<td align="center" width="32">'.$langs->trans("Preview").'</td>';
371 print "</tr>\n";
372
373 clearstatcache();
374
375 foreach ($dirmodels as $reldir) {
376 $dir = dol_buildpath($reldir."core/modules/delivery/doc/");
377
378 if (is_dir($dir)) {
379 $handle = opendir($dir);
380 if (is_resource($handle)) {
381 $filelist = array();
382 while (($file = readdir($handle)) !== false) {
383 $filelist[] = $file;
384 }
385 closedir($handle);
386 arsort($filelist);
387
388 foreach ($filelist as $file) {
389 if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
390 if (file_exists($dir.'/'.$file)) {
391 $name = substr($file, 4, dol_strlen($file) - 16);
392 $classname = substr($file, 0, dol_strlen($file) - 12);
393
394 require_once $dir.'/'.$file;
395 $module = new $classname($db);
396
397 '@phan-var-force ModelePDFDeliveryOrder $module';
398
399 $modulequalified = 1;
400 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
401 $modulequalified = 0;
402 }
403 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
404 $modulequalified = 0;
405 }
406
407 if ($modulequalified) {
408 print '<tr class="oddeven"><td width="100">';
409 print(empty($module->name) ? $name : $module->name);
410 print "</td><td>\n";
411 if (method_exists($module, 'info')) {
412 print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
413 } else {
414 print $module->description;
415 }
416 print '</td>';
417
418 // Active
419 if (in_array($name, $def)) {
420 print "<td align=\"center\">\n";
421 print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'">';
422 print img_picto($langs->trans("Enabled"), 'switch_on');
423 print '</a>';
424 print "</td>";
425 } else {
426 print "<td align=\"center\">\n";
427 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>';
428 print "</td>";
429 }
430
431 // Default
432 print "<td align=\"center\">";
433 if (getDolGlobalString('DELIVERY_ADDON_PDF') == "$name") {
434 print img_picto($langs->trans("Default"), 'on');
435 } else {
436 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>';
437 }
438 print '</td>';
439
440 // Info
441 $htmltooltip = ''.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
442 $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
443 $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").'</u>:';
444 $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
445 print '<td class="center">';
446 print $form->textwithpicto('', $htmltooltip, 1, 'info');
447 print '</td>';
448
449 // Preview
450 print '<td class="center">';
451 if ($module->type == 'pdf') {
452 print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
453 } else {
454 print img_object($langs->transnoentitiesnoconv("PreviewNotAvailable"), 'generic');
455 }
456 print '</td>';
457
458 print '</tr>';
459 }
460 }
461 }
462 }
463 }
464 }
465 }
466
467 print '</table>';
468
469 // Other Options
470 print "<br>";
471 print load_fiche_titre($langs->trans("OtherOptions"), '', '');
472
473 print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
474 print '<input type="hidden" name="token" value="'.newToken().'">';
475 print '<input type="hidden" name="action" value="set_DELIVERY_FREE_TEXT">';
476
477 print '<table class="noborder centpercent">';
478 print '<tr class="liste_titre">';
479 print '<td>'.$langs->trans("Parameter").'</td>';
480 print '<td align="center" width="60"></td>';
481 print '<td width="80">&nbsp;</td>';
482 print "</tr>\n";
483
484 $substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
485 $substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
486 $htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
487 foreach ($substitutionarray as $key => $val) {
488 $htmltext .= $key.'<br>';
489 }
490 $htmltext .= '</i>';
491
492 print '<tr class="oddeven"><td colspan="2">';
493 print $form->textwithpicto($langs->trans("FreeLegalTextOnDeliveryReceipts"), $langs->trans("AddCRIfTooLong").'<br><br>'.$htmltext, 1, 'help', '', 0, 2, 'freetexttooltip').'<br>';
494 $variablename = 'DELIVERY_FREE_TEXT';
495 if (!getDolGlobalString('PDF_ALLOW_HTML_FOR_FREE_TEXT')) {
496 print '<textarea name="'.$variablename.'" class="flat" cols="120">'.getDolGlobalString($variablename).'</textarea>';
497 } else {
498 include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
499 $doleditor = new DolEditor($variablename, getDolGlobalString($variablename), '', 80, 'dolibarr_notes');
500 print $doleditor->Create();
501 }
502 print '</td><td class="right">';
503 print "</td></tr>\n";
504
505 print '</table>';
506
507 print '<div class="center">';
508 print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
509 print '</div>';
510
511 print '</form>';
512}
513
514// End of page
515llxFooter();
516$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.
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
Definition wrapper.php:91
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:73
Class to manage receptions.
Class to manage a WYSIWYG editor.
Class to manage generation of HTML components Only common components must be here.
global $mysoc
expedition_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.
isModEnabled($module)
Is Dolibarr module enabled.
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).
Definition pdf.lib.php:824
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:128
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.