dolibarr 21.0.0-beta
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 MDW <mdeweerd@users.noreply.github.com>
12 * Copyright (C) 2024 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", "deliveries", "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
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 if ($action == 'activate_sending')
79 {
80 dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1",'chaine',0,'',$conf->entity);
81 header("Location: confexped.php");
82 exit;
83 }
84 if ($action == 'disable_sending')
85 {
86 dolibarr_del_const($db, "MAIN_SUBMODULE_EXPEDITION",$conf->entity);
87 header("Location: confexped.php");
88 exit;
89 }
90 */
91
92// Delivery note
93if ($action == 'activate_delivery') {
94 dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1", 'chaine', 0, '', $conf->entity); // We must also enable this
95 dolibarr_set_const($db, "MAIN_SUBMODULE_DELIVERY", "1", 'chaine', 0, '', $conf->entity);
96 header("Location: delivery.php");
97 exit;
98} elseif ($action == 'disable_delivery') {
99 dolibarr_del_const($db, "MAIN_SUBMODULE_DELIVERY", $conf->entity);
100 header("Location: delivery.php");
101 exit;
102}
103
104if ($action == 'updateMask') {
105 $maskconstdelivery = GETPOST('maskconstdelivery', 'aZ09');
106 $maskdelivery = GETPOST('maskdelivery', 'alpha');
107
108 $res = 0;
109
110 if ($maskconstdelivery && preg_match('/_MASK$/', $maskconstdelivery)) {
111 $res = dolibarr_set_const($db, $maskconstdelivery, $maskdelivery, 'chaine', 0, '', $conf->entity);
112 }
113
114 if (!($res > 0)) {
115 $error++;
116 }
117
118 if (!$error) {
119 setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
120 } else {
121 setEventMessages($langs->trans("Error"), null, 'errors');
122 }
123}
124
125if ($action == 'set_DELIVERY_FREE_TEXT') {
126 $free = GETPOST('DELIVERY_FREE_TEXT', 'restricthtml'); // No alpha here, we want exact string
127 $res = dolibarr_set_const($db, "DELIVERY_FREE_TEXT", $free, 'chaine', 0, '', $conf->entity);
128
129 if (!($res > 0)) {
130 $error++;
131 }
132
133 if (!$error) {
134 setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
135 } else {
136 setEventMessages($langs->trans("Error"), null, 'errors');
137 }
138}
139
140if ($action == 'specimen') {
141 $modele = GETPOST('module', 'alpha');
142
143 $sending = new Delivery($db);
144 $sending->initAsSpecimen();
145
146 // Search template files
147 $file = '';
148 $classname = '';
149 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
150 foreach ($dirmodels as $reldir) {
151 $file = dol_buildpath($reldir."core/modules/delivery/doc/pdf_".$modele.".modules.php", 0);
152 if (file_exists($file)) {
153 $classname = "pdf_".$modele;
154 break;
155 }
156 }
157
158 if ($classname !== '') {
159 require_once $file;
160
161 $module = new $classname($db);
162 '@phan-var-force ModelePDFDeliveryOrder $module';
163
164 if ($module->write_file($sending, $langs) > 0) {
165 header("Location: ".DOL_URL_ROOT."/document.php?modulepart=delivery&file=SPECIMEN.pdf");
166 return;
167 } else {
168 setEventMessages($module->error, $module->errors, 'errors');
169 dol_syslog($module->error, LOG_ERR);
170 }
171 } else {
172 setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
173 dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
174 }
175}
176
177if ($action == 'set') {
178 $ret = addDocumentModel($value, $type, $label, $scandir);
179}
180
181if ($action == 'del') {
182 $ret = delDocumentModel($value, $type);
183 if ($ret > 0) {
184 if (getDolGlobalString('DELIVERY_ADDON_PDF') == $value) {
185 dolibarr_del_const($db, 'DELIVERY_ADDON_PDF', $conf->entity);
186 }
187 }
188}
189
190if ($action == 'setdoc') {
191 if (dolibarr_set_const($db, "DELIVERY_ADDON_PDF", $value, 'chaine', 0, '', $conf->entity)) {
192 // La constante qui a ete lue en avant du nouveau set
193 // on passe donc par une variable pour avoir un affichage coherent
194 $conf->global->DELIVERY_ADDON_PDF = $value;
195 }
196
197 // On active le modele
198 $ret = delDocumentModel($value, $type);
199 if ($ret > 0) {
200 $ret = addDocumentModel($value, $type, $label, $scandir);
201 }
202}
203
204if ($action == 'setmod') {
205 // TODO Verify if the chosen numbering module can be activated
206 // by calling method canBeActivated
207
208 dolibarr_set_const($db, "DELIVERY_ADDON_NUMBER", $value, 'chaine', 0, '', $conf->entity);
209}
210
211
212
213/*
214 * View
215 */
216
217$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
218
219llxHeader('', '', '', '', 0, 0, '', '', '', 'mod-admin page-delivery');
220
221$form = new Form($db);
222
223$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
224print load_fiche_titre($langs->trans("SendingsSetup"), $linkback, 'title_setup');
225print '<br>';
227
228print dol_get_fiche_head($head, 'receivings', $langs->trans("Receivings"), -1, 'shipment');
229
230
231print '<br>';
232print '<div class="inline-block valignmiddle">'.$langs->trans("DeliveriesOrderAbility").'</div>';
233if (!getDolGlobalString('MAIN_SUBMODULE_DELIVERY')) {
234 print ' <a class="inline-block valignmiddle" href="'.$_SERVER["PHP_SELF"].'?action=activate_delivery&token='.newToken().'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
235} else {
236 print ' <a class="inline-block valignmiddle" href="'.$_SERVER["PHP_SELF"].'?action=disable_delivery&token='.newToken().'">'.img_picto($langs->trans("Enabled"), 'switch_on').'</a>';
237}
238
239print '<br><br><span class="opacitymedium">'.info_admin($langs->trans("NoNeedForDeliveryReceipts"), 0, 1).'</span>';
240print '<br><br>';
241print '<br>';
242
243
244
245if (getDolGlobalString('MAIN_SUBMODULE_DELIVERY')) {
246 // Delivery numbering model
247
248 print load_fiche_titre($langs->trans("DeliveryOrderNumberingModules"), '', '');
249
250 print '<table class="noborder centpercent">';
251 print '<tr class="liste_titre">';
252 print '<td width="100">'.$langs->trans("Name").'</td>';
253 print '<td>'.$langs->trans("Description").'</td>';
254 print '<td class="nowrap">'.$langs->trans("Example").'</td>';
255 print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
256 print '<td align="center" width="16">'.$langs->trans("ShortInfo").'</td>';
257 print '</tr>'."\n";
258
259 clearstatcache();
260
261 foreach ($dirmodels as $reldir) {
262 $dir = dol_buildpath($reldir."core/modules/delivery/");
263
264 if (is_dir($dir)) {
265 $handle = opendir($dir);
266 if (is_resource($handle)) {
267 while (($file = readdir($handle)) !== false) {
268 if (preg_match('/^mod_delivery_([a-z0-9_]*)\.php$/', $file)) {
269 $file = substr($file, 0, dol_strlen($file) - 4);
270
271 require_once $dir.$file.'.php';
272
273 $module = new $file();
274
275 '@phan-var-force ModeleNumRefDeliveryOrder $module';
276
277 if ($module->isEnabled()) {
278 // Show modules according to features level
279 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
280 continue;
281 }
282 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
283 continue;
284 }
285
286 print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
287 print $module->info($langs);
288 print '</td>';
289
290 // Show example of numbering module
291 print '<td class="nowrap">';
292 $tmp = $module->getExample();
293 if (preg_match('/^Error/', $tmp)) {
294 $langs->load("errors");
295 print '<div class="error">'.$langs->trans($tmp).'</div>';
296 } elseif ($tmp == 'NotConfigured') {
297 print '<span class="opacitymedium">'.$langs->trans($tmp).'</span>';
298 } else {
299 print $tmp;
300 }
301 print '</td>'."\n";
302
303 print '<td class="center">';
304 if ($conf->global->DELIVERY_ADDON_NUMBER == "$file") {
305 print img_picto($langs->trans("Activated"), 'switch_on');
306 } else {
307 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>';
308 }
309 print '</td>';
310
311 $delivery = new Delivery($db);
312 $delivery->initAsSpecimen();
313
314 // Info
315 $htmltooltip = '';
316 $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
317 $nextval = $module->getNextValue($mysoc, $delivery);
318 if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
319 $htmltooltip .= ''.$langs->trans("NextValue").': ';
320 if ($nextval) {
321 if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
322 $nextval = $langs->trans($nextval);
323 }
324 $htmltooltip .= $nextval.'<br>';
325 } else {
326 $htmltooltip .= $langs->trans($module->error).'<br>';
327 }
328 }
329
330 print '<td class="center">';
331 print $form->textwithpicto('', $htmltooltip, 1, 0);
332 print '</td>';
333
334 print '</tr>';
335 }
336 }
337 }
338 closedir($handle);
339 }
340 }
341 }
342
343 print '</table>';
344
345
346 /*
347 * Documents Models for delivery
348 */
349 print '<br>';
350 print load_fiche_titre($langs->trans("DeliveryOrderModel"), '', '');
351
352 // Defini tableau def de modele
353 $type = "delivery";
354 $def = array();
355
356 $sql = "SELECT nom";
357 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
358 $sql .= " WHERE type = '".$db->escape($type)."'";
359 $sql .= " AND entity = ".$conf->entity;
360
361 $resql = $db->query($sql);
362 if ($resql) {
363 $i = 0;
364 $num_rows = $db->num_rows($resql);
365 while ($i < $num_rows) {
366 $array = $db->fetch_array($resql);
367 if (is_array($array)) {
368 array_push($def, $array[0]);
369 }
370 $i++;
371 }
372 } else {
373 dol_print_error($db);
374 }
375
376 print '<table class="noborder centpercent">';
377 print '<tr class="liste_titre">';
378 print '<td width="140">'.$langs->trans("Name").'</td>';
379 print '<td>'.$langs->trans("Description").'</td>';
380 print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
381 print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
382 print '<td align="center" width="32">'.$langs->trans("ShortInfo").'</td>';
383 print '<td align="center" width="32">'.$langs->trans("Preview").'</td>';
384 print "</tr>\n";
385
386 clearstatcache();
387
388 foreach ($dirmodels as $reldir) {
389 $dir = dol_buildpath($reldir."core/modules/delivery/doc/");
390
391 if (is_dir($dir)) {
392 $handle = opendir($dir);
393 if (is_resource($handle)) {
394 $filelist = array();
395 while (($file = readdir($handle)) !== false) {
396 $filelist[] = $file;
397 }
398 closedir($handle);
399 arsort($filelist);
400
401 foreach ($filelist as $file) {
402 if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
403 if (file_exists($dir.'/'.$file)) {
404 $name = substr($file, 4, dol_strlen($file) - 16);
405 $classname = substr($file, 0, dol_strlen($file) - 12);
406
407 require_once $dir.'/'.$file;
408 $module = new $classname($db);
409
410 '@phan-var-force ModelePDFDeliveryOrder $module';
411
412 $modulequalified = 1;
413 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
414 $modulequalified = 0;
415 }
416 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
417 $modulequalified = 0;
418 }
419
420 if ($modulequalified) {
421 print '<tr class="oddeven"><td width="100">';
422 print(empty($module->name) ? $name : $module->name);
423 print "</td><td>\n";
424 if (method_exists($module, 'info')) {
425 print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
426 } else {
427 print $module->description;
428 }
429 print '</td>';
430
431 // Active
432 if (in_array($name, $def)) {
433 print "<td align=\"center\">\n";
434 print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'">';
435 print img_picto($langs->trans("Enabled"), 'switch_on');
436 print '</a>';
437 print "</td>";
438 } else {
439 print "<td align=\"center\">\n";
440 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>';
441 print "</td>";
442 }
443
444 // Default
445 print "<td align=\"center\">";
446 if (getDolGlobalString('DELIVERY_ADDON_PDF') == "$name") {
447 print img_picto($langs->trans("Default"), 'on');
448 } else {
449 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>';
450 }
451 print '</td>';
452
453 // Info
454 $htmltooltip = ''.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
455 $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
456 $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").'</u>:';
457 $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
458 print '<td class="center">';
459 print $form->textwithpicto('', $htmltooltip, 1, 0);
460 print '</td>';
461
462 // Preview
463 print '<td class="center">';
464 if ($module->type == 'pdf') {
465 print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
466 } else {
467 print img_object($langs->trans("PreviewNotAvailable"), 'generic');
468 }
469 print '</td>';
470
471 print '</tr>';
472 }
473 }
474 }
475 }
476 }
477 }
478 }
479
480 print '</table>';
481
482 // Other Options
483 print "<br>";
484 print load_fiche_titre($langs->trans("OtherOptions"), '', '');
485
486 print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
487 print '<input type="hidden" name="token" value="'.newToken().'">';
488 print '<input type="hidden" name="action" value="set_DELIVERY_FREE_TEXT">';
489
490 print '<table class="noborder centpercent">';
491 print '<tr class="liste_titre">';
492 print '<td>'.$langs->trans("Parameter").'</td>';
493 print '<td align="center" width="60">'.$langs->trans("Value").'</td>';
494 print '<td width="80">&nbsp;</td>';
495 print "</tr>\n";
496
497 $substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
498 $substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
499 $htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
500 foreach ($substitutionarray as $key => $val) {
501 $htmltext .= $key.'<br>';
502 }
503 $htmltext .= '</i>';
504
505 print '<tr class="oddeven"><td colspan="2">';
506 print $form->textwithpicto($langs->trans("FreeLegalTextOnDeliveryReceipts"), $langs->trans("AddCRIfTooLong").'<br><br>'.$htmltext, 1, 'help', '', 0, 2, 'freetexttooltip').'<br>';
507 $variablename = 'DELIVERY_FREE_TEXT';
508 if (!getDolGlobalString('PDF_ALLOW_HTML_FOR_FREE_TEXT')) {
509 print '<textarea name="'.$variablename.'" class="flat" cols="120">'.getDolGlobalString($variablename).'</textarea>';
510 } else {
511 include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
512 $doleditor = new DolEditor($variablename, getDolGlobalString($variablename), '', 80, 'dolibarr_notes');
513 print $doleditor->Create();
514 }
515 print '</td><td class="right">';
516 print "</td></tr>\n";
517
518 print '</table>';
519
520 print '<div class="center">';
521 print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
522 print '</div>';
523
524 print '</form>';
525}
526
527// End of page
528llxFooter();
529$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.
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:71
Class to manage receptions.
Class to manage a WYSIWYG editor.
Class to manage generation of HTML components Only common components must be here.
llxFooter()
Footer empty.
Definition document.php:107
expedition_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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
Definition member.php:79
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:765
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:152
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.