dolibarr 25.0.0-alpha
agenda_other.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2008-2016 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2011 Regis Houssin <regis.houssin@inodbox.com>
4 * Copyright (C) 2011-2017 Juanjo Menent <jmenent@2byte.es>
5 * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
6 * Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
7 * Copyright (C) 2017 Open-DSI <support@open-dsi.fr>
8 * Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
9 * Copyright (C) 2024-2026 Frédéric France <frederic.france@free.fr>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 */
24
31// Load Dolibarr environment
32require '../main.inc.php';
40require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
41require_once DOL_DOCUMENT_ROOT.'/core/lib/agenda.lib.php';
42require_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php';
43require_once DOL_DOCUMENT_ROOT.'/core/class/defaultvalues.class.php';
44require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
45
46if (!$user->admin) {
48}
49
50// Load translation files required by the page
51$langs->loadLangs(array('admin', 'other', 'agenda', 'users'));
52
53$action = GETPOST('action', 'aZ09');
54$value = GETPOST('value', 'alpha');
55$label = GETPOST('label', 'alpha');
56$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
57
58$param = GETPOST('param', 'alpha');
59$cancel = GETPOST('cancel', 'alpha');
60$scandir = GETPOST('scan_dir', 'alpha');
61$type = 'action';
62
63
64/*
65 * Actions
66 */
67
68$error = 0;
69$errors = array();
70
71include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
72
73$reg = array();
74if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) {
75 $code = $reg[1];
76 $value = (GETPOST($code, 'alpha') ? GETPOST($code, 'alpha') : 1);
77 if (dolibarr_set_const($db, $code, $value, 'chaine', 0, '', $conf->entity) > 0) {
78 header("Location: ".$_SERVER["PHP_SELF"]);
79 exit;
80 } else {
81 dol_print_error($db);
82 }
83}
84
85if (preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) {
86 $code = $reg[1];
87 if (dolibarr_del_const($db, $code, $conf->entity) > 0) {
88 header("Location: ".$_SERVER["PHP_SELF"]);
89 exit;
90 } else {
91 dol_print_error($db);
92 }
93}
94if ($action == 'set') {
95 $getDefaultFilter = GETPOST('AGENDA_DEFAULT_FILTER_TYPE');
96 $defaultfilter = (is_array($getDefaultFilter)) ? implode(',', $getDefaultFilter) : $getDefaultFilter;
97 dolibarr_set_const($db, 'AGENDA_USE_EVENT_TYPE_DEFAULT', GETPOST('AGENDA_USE_EVENT_TYPE_DEFAULT'), 'chaine', 0, '', $conf->entity);
98 dolibarr_set_const($db, 'AGENDA_DEFAULT_FILTER_TYPE', $defaultfilter, 'chaine', 0, '', $conf->entity);
99 dolibarr_set_const($db, 'AGENDA_DEFAULT_FILTER_STATUS', GETPOST('AGENDA_DEFAULT_FILTER_STATUS'), 'chaine', 0, '', $conf->entity);
100 dolibarr_set_const($db, 'AGENDA_DEFAULT_VIEW', GETPOST('AGENDA_DEFAULT_VIEW'), 'chaine', 0, '', $conf->entity);
101
102 $defaultValues = new DefaultValues($db);
103 $result = $defaultValues->fetchAll('', '', 0, 0, "(t.page:=:'comm/action/card.php') AND (t.param:=:'complete') AND (t.user_id:=:0) AND (t.type:=:'createform') AND (t.entity:=:".((int) $conf->entity).")");
104 if (!is_array($result) && $result < 0) {
105 setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
106 } elseif (count($result) > 0) {
107 foreach ($result as $defval) {
108 $defaultValues->id = $defval->id;
109 $resultDel = $defaultValues->delete($user);
110 if ($resultDel < 0) {
111 setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
112 }
113 }
114 }
115 $defaultValues->type = 'createform';
116 $defaultValues->entity = $conf->entity;
117 $defaultValues->user_id = 0;
118 $defaultValues->page = 'comm/action/card.php';
119 $defaultValues->param = 'complete';
120 $defaultValues->value = GETPOST('AGENDA_EVENT_DEFAULT_STATUS');
121 $resultCreat = $defaultValues->create($user);
122 if ($resultCreat < 0) {
123 setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
124 } else {
125 setEventMessages($langs->trans("RecordSaved"), null, 'mesgs');
126 }
127} elseif ($action == 'specimen') { // For actioncomm
128 $modele = GETPOST('module', 'alpha');
129
130 $action = new ActionComm($db);
131 $action->initAsSpecimen();
132 $specimenthirdparty = new Societe($db);
133 $specimenthirdparty->initAsSpecimen();
134 $action->thirdparty = $specimenthirdparty;
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/action/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, $action);
152 '@phan-var-force pdf_standard_actions $module';
153
154 if ($module->write_file($action, $langs) > 0) {
155 header("Location: ".DOL_URL_ROOT."/document.php?modulepart=action&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} elseif ($action == 'setmodel') {
166 // Activate a model
167 //print "sssd".$value;
168 $ret = addDocumentModel($value, $type, $label, $scandir);
169} elseif ($action == 'del') {
170 $ret = delDocumentModel($value, $type);
171 if ($ret > 0) {
172 if (getDolGlobalString('ACTION_EVENT_ADDON_PDF') == "$value") {
173 dolibarr_del_const($db, 'ACTION_EVENT_ADDON_PDF', $conf->entity);
174 }
175 }
176} elseif ($action == 'setdoc') {
177 // Set default model
178 dolibarr_set_const($db, "ACTION_EVENT_ADDON_PDF", $value, 'chaine', 0, '', $conf->entity);
179
180 // On active le modele
181 $ret = delDocumentModel($value, $type);
182 if ($ret > 0) {
183 $ret = addDocumentModel($value, $type, $label, $scandir);
184 }
185}
186
187
192$form = new Form($db);
193$formactions = new FormActions($db);
194
195$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
196
197$wikihelp = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:Módulo_Agenda|DE:Modul_Terminplanung';
198llxHeader('', $langs->trans("AgendaSetup"), $wikihelp, '', 0, 0, '', '', '', 'mod-admin page-agenda_other');
199
200$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>';
201
202print load_fiche_titre($langs->trans("AgendaSetup"), $linkback, 'title_setup');
203
204
205
206$head = agenda_prepare_head();
207
208print dol_get_fiche_head($head, 'other', $langs->trans("Agenda"), -1, 'action');
209
210print "<br>\n";
211
212/*
213 * Miscellaneous
214 */
215
216// Define an array def of models
217$def = array();
218
219$sql = "SELECT nom";
220$sql .= " FROM ".MAIN_DB_PREFIX."document_model";
221$sql .= " WHERE type = 'action'";
222$sql .= " AND entity = ".((int) $conf->entity);
223
224$resql = $db->query($sql);
225if ($resql) {
226 $i = 0;
227 $num_rows = $db->num_rows($resql);
228 while ($i < $num_rows) {
229 $array = $db->fetch_array($resql);
230 if (is_array($array)) {
231 array_push($def, $array[0]);
232 }
233 $i++;
234 }
235} else {
236 dol_print_error($db);
237}
238
239if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) {
240 print load_fiche_titre($langs->trans("AgendaModelModule"), '', '');
241
242 print '<div class="div-table-responsive-no-min">';
243 print '<table class="noborder centpercent">'."\n";
244 print '<tr class="liste_titre">'."\n";
245 print '<td width="100">'.$langs->trans("Name").'</td>'."\n";
246 print '<td>'.$langs->trans("Description").'</td>'."\n";
247 print '<td class="center" width="60">'.$langs->trans("Status").'</td>'."\n";
248 print '<td class="center" width="60">'.$langs->trans("Default").'</td>'."\n";
249 print '<td class="center" width="40">'.$langs->trans("ShortInfo").'</td>';
250 print '<td class="center" width="40">'.$langs->trans("Preview").'</td>';
251 print '</tr>'."\n";
252
253 clearstatcache();
254
255 $specimenthirdparty = new Societe($db);
256 $specimenthirdparty->initAsSpecimen();
257
258 foreach ($dirmodels as $reldir) {
259 $dir = dol_buildpath($reldir."core/modules/action/doc");
260
261 if (is_dir($dir)) {
262 $handle = opendir($dir);
263 if (is_resource($handle)) {
264 while (($file = readdir($handle)) !== false) {
265 if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
266 $name = dol_substr($file, 4, dol_strlen($file) - 16);
267 $classname = dol_substr($file, 0, dol_strlen($file) - 12);
268 require_once $dir.'/'.$file;
269 $module = new $classname($db, new ActionComm($db));
270
271 '@phan-var-force ModeleAction $module';
272
273 print '<tr class="oddeven">'."\n";
274 print "<td>";
275 print(empty($module->name) ? $name : $module->name);
276 print "</td>\n";
277 print "<td>\n";
278 require_once $dir.'/'.$file;
279 $module = new $classname($db, $specimenthirdparty);
280 '@phan-var-force ModeleAction $module';
281 if (method_exists($module, 'info')) {
282 print $module->info($langs); // @phan-suppress-current-line PhanUndeclaredMethod
283 } else {
284 print $module->description;
285 }
286 print "</td>\n";
287
288 // Active
289 if (in_array($name, $def)) {
290 print '<td class="center">'."\n";
291 if (getDolGlobalString('ACTION_EVENT_ADDON_PDF') != "$name") {
292 print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.$name.'&scan_dir='.$module->scandir.'&label='.urlencode($module->name).'&type=action">';
293 print img_picto($langs->trans("Enabled"), 'switch_on');
294 print '</a>';
295 } else {
296 print img_picto($langs->trans("Enabled"), 'switch_on');
297 }
298 print "</td>";
299 } else {
300 print '<td class="center">'."\n";
301 print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmodel&token='.newToken().'&value='.$name.'&scan_dir='.$module->scandir.'&label='.urlencode($module->name).'&type=action">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
302 print "</td>";
303 }
304
305 // Default
306 print '<td class="center">';
307 if (getDolGlobalString('ACTION_EVENT_ADDON_PDF') == "$name") {
308 print img_picto($langs->trans("Default"), 'on');
309 } else {
310 print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'&amp;type=action"" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
311 }
312 print '</td>';
313
314 // Info
315 $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
316 $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
317 $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
318 $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
319 $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
320 print '<td class="center">';
321 print $form->textwithpicto('', $htmltooltip, 1, 'info');
322 print '</td>';
323 print '<td class="center">';
324 print '<a href="'.dolBuildUrl($_SERVER["PHP_SELF"], ['action' => 'specimen', 'module' => $name], true).'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
325 print '</td>';
326
327 print "</tr>\n";
328 }
329 }
330 closedir($handle);
331 }
332 }
333 }
334 print '</table>';
335 print '</div>';
336 print '<br>';
337
338 print load_fiche_titre($langs->trans('MiscellaneousOptions'), '', '');
339}
340
341
342print '<form action="'.$_SERVER["PHP_SELF"].'" name="agenda" spellcheck="false">';
343print '<input type="hidden" name="token" value="'.newToken().'">';
344print '<input type="hidden" name="action" value="set">';
345
346print '<div class="div-table-responsive-no-min">';
347print '<table class="noborder allwidth">'."\n";
348print '<tr class="liste_titre">'."\n";
349print '<td>'.$langs->trans("Parameters").'</td>'."\n";
350print '<td class="center">&nbsp;</td>'."\n";
351print '<td class="right"></td>'."\n";
352print '</tr>'."\n";
353
354// AGENDA_DEFAULT_VIEW
355print '<tr class="oddeven">'."\n";
356$htmltext = $langs->trans("ThisValueCanOverwrittenOnUserLevel", $langs->transnoentitiesnoconv("UserGUISetup"));
357print '<td class="minwidth200onall">'.$form->textwithpicto($langs->trans("AGENDA_DEFAULT_VIEW"), $htmltext).'</td>'."\n";
358print '<td class="center">&nbsp;</td>'."\n";
359print '<td class="right parentonrightofpage">'."\n";
360$tmplist = array('' => '&nbsp;', 'show_list' => $langs->trans("ViewList"), 'show_month' => $langs->trans("ViewCal"), 'show_week' => $langs->trans("ViewWeek"), 'show_day' => $langs->trans("ViewDay"), 'show_peruser' => $langs->trans("ViewPerUser"));
361print $form->selectarray('AGENDA_DEFAULT_VIEW', $tmplist, getDolGlobalString('AGENDA_DEFAULT_VIEW', 'show_month'), 0, 0, 0, '', 0, 0, 0, '', 'right onrightofpage width150');
362print '</td></tr>'."\n";
363
364// Manual or automatic
365
366print '<tr class="oddeven">'."\n";
367print '<td>'.$langs->trans("AGENDA_USE_EVENT_TYPE").'</td>'."\n";
368print '<td class="center">&nbsp;</td>'."\n";
369print '<td class="right">'."\n";
370//print ajax_constantonoff('AGENDA_USE_EVENT_TYPE'); Do not use ajax here, we need to reload page to change other combo list
371if (!getDolGlobalString('AGENDA_USE_EVENT_TYPE')) {
372 print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_AGENDA_USE_EVENT_TYPE&token='.newToken().'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
373} else {
374 print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_AGENDA_USE_EVENT_TYPE&token='.newToken().'">'.img_picto($langs->trans("Enabled"), 'switch_on').'</a>';
375}
376print '</td></tr>'."\n";
377
378if (getDolGlobalString('AGENDA_USE_EVENT_TYPE')) {
379 print '<!-- AGENDA_USE_EVENT_TYPE_DEFAULT -->';
380 print '<tr class="oddeven">'."\n";
381 print '<td>'.$langs->trans("AGENDA_USE_EVENT_TYPE_DEFAULT").'</td>'."\n";
382 print '<td class="center">&nbsp;</td>'."\n";
383 print '<td class="right parentonrightofpage">'."\n";
384 print $formactions->select_type_actions(getDolGlobalString('AGENDA_USE_EVENT_TYPE_DEFAULT'), "AGENDA_USE_EVENT_TYPE_DEFAULT", 'systemauto', 0, 1, 0, 1, 'minwidth300 right onrightofpage', 1);
385 print '</td></tr>'."\n";
386}
387
388// AGENDA_EVENT_DEFAULT_STATUS
389print '<tr class="oddeven">'."\n";
390print '<td>'.$langs->trans("AGENDA_EVENT_DEFAULT_STATUS").'</td>'."\n";
391print '<td class="center">&nbsp;</td>'."\n";
392print '<td class="right parentonrightofpage">'."\n";
393$defval = 'na';
394$defaultValues = new DefaultValues($db);
395$result = $defaultValues->fetchAll('', '', 0, 0, "(t.page:=:'comm/action/card.php') AND (t.param:=:'complete') AND (t.user_id:=:0) AND (t.type:=:'createform') AND (t.entity:=:".((int) $conf->entity).")");
396if (!is_array($result) && $result < 0) {
397 setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
398} elseif (count($result) > 0) {
399 $defval = reset($result)->value;
400}
401$formactions->form_select_status_action('agenda', $defval, 1, "AGENDA_EVENT_DEFAULT_STATUS", 0, 1, 'right width200 onrightofpage');
402print '</td></tr>'."\n";
403
404// AGENDA_DEFAULT_FILTER_TYPE
405print '<tr class="oddeven">'."\n";
406print '<td>'.$langs->trans("AGENDA_DEFAULT_FILTER_TYPE").'</td>'."\n";
407print '<td class="center">&nbsp;</td>'."\n";
408print '<td class="right nowrap">'."\n";
409$multiselect = 0;
410if (getDolGlobalString('MAIN_ENABLE_MULTISELECT_TYPE')) {
411 // We use an option here because it adds bugs when used on agenda page "peruser" and "list"
412 $multiselect = (getDolGlobalString('AGENDA_USE_EVENT_TYPE'));
413}
414print $formactions->select_type_actions(getDolGlobalString('AGENDA_DEFAULT_FILTER_TYPE'), "AGENDA_DEFAULT_FILTER_TYPE", '', (getDolGlobalString('AGENDA_USE_EVENT_TYPE') ? -1 : 1), 1, $multiselect, 1, 'minwidth300', 1);
415print '</td></tr>'."\n";
416
417// AGENDA_DEFAULT_FILTER_STATUS
418// TODO Remove to use the default generic feature
419print '<tr class="oddeven">'."\n";
420print '<td>'.$langs->trans("AGENDA_DEFAULT_FILTER_STATUS").'</td>'."\n";
421print '<td class="center">&nbsp;</td>'."\n";
422print '<td class="right">'."\n";
423$formactions->form_select_status_action('agenda', getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS'), 1, 'AGENDA_DEFAULT_FILTER_STATUS', 1, 2, 'minwidth100');
424print '</td></tr>'."\n";
425
426print '</table>';
427print '</div>';
428
429print $form->buttonsSaveCancel("Save", '');
430
431print '</form>';
432
433
434print dol_get_fiche_end();
435
436// End of page
437llxFooter();
438$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.
agenda_prepare_head()
Prepare array with list of tabs.
if(preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) if(preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) if($action=='set') elseif( $action=='specimen') elseif($action=='setmodel') elseif( $action=='del') elseif($action=='setdoc') $form
View.
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
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
Class to manage agenda events (actions)
Class for MyObject.
Class to manage building of HTML components.
Class to manage generation of HTML components Only common components must be here.
Class to manage third parties objects (customers, suppliers, prospects...)
if(! $sortfield) if(! $sortorder) $module
Definition list.php:193
dol_strlen($string, $stringencoding='UTF-8', $binarycount=0)
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, $nodefault=0)
Return value of a param into GET or POST supervariable.
dol_substr($string, $start, $length=null, $stringencoding='', $trunconbytes=0)
Make a substring.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
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.
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.
Definition html.lib.php:542
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition html.lib.php:740
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:165
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.