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