dolibarr 24.0.0-beta
view.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2013-2016 Jean-François FERRY <hello@librethic.io>
3 * Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
4 * Copyright (C) 2023 Benjamin Falière <benjamin.faliere@altairis.fr>
5 * Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
6 * Copyright (C) 2026 Jon Bendtsen <jon.bendtsen.github@jonb.dk>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
28if (!defined('NOREQUIREMENU')) {
29 define('NOREQUIREMENU', '1');
30}
31// If there is no need to load and show top and left menu
32if (!defined("NOLOGIN")) {
33 define("NOLOGIN", '1');
34}
35if (!defined('NOIPCHECK')) {
36 define('NOIPCHECK', '1'); // Do not check IP defined into conf $dolibarr_main_restrict_ip
37}
38if (!defined('NOBROWSERNOTIF')) {
39 define('NOBROWSERNOTIF', '1');
40}
41// If this page is public (can be called outside logged session)
42
43// For MultiCompany module.
44// Do not use GETPOST here, function is not defined and define must be done before including main.inc.php
45// Because 2 entities can have the same ref.
46$entity = (!empty($_GET['entity']) ? (int) $_GET['entity'] : (!empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
47if (is_numeric($entity)) {
48 define("DOLENTITY", $entity);
49}
50
51// Load Dolibarr environment
52require '../../main.inc.php';
53require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
54require_once DOL_DOCUMENT_ROOT.'/core/class/html.formticket.class.php';
55require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
56require_once DOL_DOCUMENT_ROOT.'/core/lib/ticket.lib.php';
57require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
58require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
59require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
60
69// Load translation files required by the page
70$langs->loadLangs(array("companies", "other", "ticket"));
71
72// Get parameters
73$action = GETPOST('action', 'aZ09');
74$cancel = GETPOST('cancel');
75
76$track_id = GETPOST('track_id', 'alpha');
77$email = GETPOST('email', 'email');
78$suffix = "";
79
80if (GETPOST('btn_view_ticket')) {
81 unset($_SESSION['email_customer']);
82}
83if (isset($_SESSION['email_customer'])) {
84 $email = $_SESSION['email_customer'];
85}
86
88
89if (!isModEnabled('ticket')) {
90 httponly_accessforbidden('Module Ticket not enabled');
91}
92
93
94/*
95 * Actions
96 */
97
98if ($cancel) {
99 $backtopage = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', DOL_URL_ROOT.'/public/ticket/');
100
101 if (!empty($backtopage)) {
102 header("Location: ".$backtopage);
103 exit;
104 }
105 $action = 'view_ticket';
106}
107
108$display_ticket = false;
109if (in_array($action, array("view_ticket", "presend", "close", "confirm_public_close", "add_message", "add_contact"))) { // Test on permission not required here. Done later by using the $track_id + check email in session
110 $error = 0;
111 if (!strlen($track_id)) {
112 $error++;
113 array_push($object->errors, $langs->trans("ErrorFieldRequired", $langs->transnoentities("TicketTrackId")));
114 $action = '';
115 }
116 if (!strlen($email)) {
117 $error++;
118 array_push($object->errors, $langs->trans("ErrorFieldRequired", $langs->transnoentities("Email")));
119 $action = '';
120 } else {
121 if (!isValidEmail($email)) {
122 $error++;
123 array_push($object->errors, $langs->trans("ErrorEmailInvalid"));
124 $action = '';
125 }
126 }
127
128 if (!$error) {
129 $ret = $object->fetch(0, '', $track_id);
130 if ($ret && $object->dao->id > 0) {
131 // Check if emails provided is the one of author
132 $emailofticket = CMailFile::getValidAddress($object->dao->origin_email, 2);
133 if (strtolower($emailofticket) == strtolower($email)) {
134 $display_ticket = true;
135 $_SESSION['email_customer'] = $email;
136 } else {
137 // Check if emails provided is inside list of contacts
138 $contacts = $object->dao->liste_contact(-1, 'external');
139 foreach ($contacts as $contact) {
140 if (strtolower($contact['email']) == strtolower($email)) {
141 $display_ticket = true;
142 $_SESSION['email_customer'] = $email;
143 break;
144 } else {
145 $display_ticket = false;
146 }
147 }
148 }
149 // Check email of thirdparty of ticket
150 if ($object->dao->fk_soc > 0 || $object->dao->socid > 0) {
151 $object->dao->fetch_thirdparty();
152 if ($email == $object->dao->thirdparty->email) {
153 $display_ticket = true;
154 $_SESSION['email_customer'] = $email;
155 }
156 }
157 // Check if email is email of creator
158 if ($object->dao->fk_user_create > 0) {
159 $tmpuser = new User($db);
160 $tmpuser->fetch($object->dao->fk_user_create);
161 if (strtolower($email) == strtolower($tmpuser->email)) {
162 $display_ticket = true;
163 $_SESSION['email_customer'] = $email;
164 }
165 }
166 // Check if email is email of creator
167 if ($object->dao->fk_user_assign > 0 && $object->dao->fk_user_assign != $object->dao->fk_user_create) {
168 $tmpuser = new User($db);
169 $tmpuser->fetch($object->dao->fk_user_assign);
170 if (strtolower($email) == strtolower($tmpuser->email)) {
171 $display_ticket = true;
172 $_SESSION['email_customer'] = $email;
173 }
174 }
175 } else {
176 $error++;
177 array_push($object->errors, $langs->trans("ErrorTicketNotFound", $track_id));
178 $action = '';
179 }
180 }
181
182 if (!$error && $action == 'confirm_public_close' && $display_ticket) { // Test on permission already done
183 if ($object->dao->close($user)) {
184 setEventMessages($langs->trans('TicketMarkedAsClosed'), null, 'mesgs');
185
186 $url = 'view.php?action=view_ticket&track_id='.GETPOST('track_id', 'alpha').(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : '').'&token='.newToken();
187 header("Location: ".$url);
188 exit;
189 } else {
190 $action = '';
191 setEventMessages($object->error, $object->errors, 'errors');
192 }
193 }
194
195 if (!$error && $action == "add_message" && $display_ticket && GETPOSTISSET('btn_add_message')) { // Test on permission already done
196 $ret = $object->dao->newMessage($user, $action, 0, 1);
197
198 if (!$error) {
199 $action = 'view_ticket';
200 }
201 }
202
203 // Add a new external contributor to a ticket
204 if (!$error && $action == "add_contact" && $display_ticket && GETPOSTISSET('btn_add_contact')) { // Test on permission already done
205 $ret = $object->dao->add_contact(GETPOSTINT('contactid'), 'CONTRIBUTOR');
206
207 if (!$error) {
208 $action = 'view_ticket';
209 }
210 }
211
212 if ($error || !empty($object->errors)) {
213 setEventMessages($object->error, $object->errors, 'errors');
214 if ($action == "add_message") { // Test on permission not required here
215 $action = 'presend';
216 } else {
217 $action = '';
218 }
219 }
220}
221
222
223// Actions to send emails (for ticket, we need to manage the addfile and removefile only)
224$triggersendname = 'TICKET_SENTBYMAIL';
225$paramname = 'id';
226$autocopy = 'MAIN_MAIL_AUTOCOPY_TICKET_TO'; // used to know the automatic BCC to add
227if (!empty($object->dao->id)) {
228 $trackid = 'tic'.$object->dao->id;
229}
230include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
231
232
233
234/*
235 * View
236 */
237
238$form = new Form($db);
239$formticket = new FormTicket($db);
240
241// Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context
242$hookmanager->initHooks(array('ticketpublicview', 'globalcard'));
243
244if (!getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE')) {
245 print '<div class="error">'.$langs->trans('TicketPublicInterfaceForbidden').'</div>';
246 $db->close();
247 exit();
248}
249
250$arrayofjs = array();
251$arrayofcss = array(getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', '/public/ticket/').'css/styles.css.php');
252
253llxHeaderTicket($langs->trans("Tickets"), "", 0, 0, $arrayofjs, $arrayofcss);
254
255
256if ($action == "view_ticket" || $action == "presend" || $action == "close" || $action == "confirm_public_close") {
257 if ($display_ticket) {
258 print '<!-- public view ticket if if -->';
259 print '<div class="ticketpublicarea ticketlargemargin">';
260
261 // Confirmation close
262 if ($action == 'close') {
263 print $form->formconfirm($_SERVER["PHP_SELF"]."?track_id=".$track_id.(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : ''), $langs->trans("CloseATicket"), $langs->trans("ConfirmCloseAticket"), "confirm_public_close", '', '', 1);
264 }
265
266 print '<div id="form_view_ticket" class="margintoponly">';
267
268 print '<table class="ticketpublictable centpercent tableforfield">';
269
270 // Ref - Tracking ID
271 print '<tr><td class="titlefield">'.$langs->trans("Ref").' / '.$langs->trans("TicketTrackId").'</td><td>';
272 print img_picto('', 'ticket', 'class="pictofixedwidth"');
273 print dolPrintHTML($object->dao->ref);
274 print '<span class="opacitylow"> &nbsp; / &nbsp; '.dolPrintHTML($object->dao->track_id).'</span>';
275 print '</td></tr>';
276
277 // Subject
278 print '<tr><td>'.$langs->trans("Subject").'</td><td>';
279 print '<span class="bold large">';
280 print dol_escape_htmltag($object->dao->subject);
281 print '</span>';
282 print '</td></tr>';
283
284 // Statut
285 print '<tr><td>'.$langs->trans("Status").'</td><td>';
286 print $object->dao->getLibStatut(2);
287 print '</td></tr>';
288
289 // Type
290 print '<tr><td>'.$langs->trans("Type").'</td><td>';
291 print dol_escape_htmltag($object->dao->type_label);
292 print '</td></tr>';
293
294 // Category
295 print '<tr><td>'.$langs->trans("Category").'</td><td>';
296 if ($object->dao->category_label) {
297 print img_picto('', 'category', 'class="pictofixedwidth"');
298 print dol_escape_htmltag($object->dao->category_label);
299 }
300 print '</td></tr>';
301
302 // Severity
303 print '<tr><td>'.$langs->trans("Severity").'</td><td>';
304 print dol_escape_htmltag($object->dao->severity_label);
305 print '</td></tr>';
306
307 // Creation date
308 print '<tr><td>'.$langs->trans("DateCreation").'</td><td>';
309 print img_picto('', 'calendar', 'class="pictofixedwidth"');
310 print dol_print_date($object->dao->datec, 'dayhour');
311 print '</td></tr>';
312
313 // Author
314 print '<tr><td>'.$langs->trans("Author").'</td><td>';
315 if ($object->dao->fk_user_create > 0) {
316 $langs->load("users");
317 $fuser = new User($db);
318 $fuser->fetch($object->dao->fk_user_create);
319 print img_picto('', 'user', 'class="pictofixedwidth"');
320 print $fuser->getFullName($langs);
321 } else {
322 print img_picto('', 'email', 'class="pictofixedwidth"');
323 print dol_escape_htmltag($object->dao->origin_email);
324 }
325
326 print '</td></tr>';
327
328 // Read date
329 if (!empty($object->dao->date_read)) {
330 print '<tr><td>'.$langs->trans("TicketReadOn").'</td><td>';
331 print dol_print_date($object->dao->date_read, 'dayhour');
332 print '</td></tr>';
333 }
334
335 // Close date
336 if (!empty($object->dao->date_close)) {
337 print '<tr><td>'.$langs->trans("TicketCloseOn").'</td><td>';
338 print dol_print_date($object->dao->date_close, 'dayhour');
339 print '</td></tr>';
340 }
341
342 // User assigned
343 if ($object->dao->fk_user_assign > 0) {
344 print '<tr><td>'.$langs->trans("AssignedTo").'aaaa</td><td>';
345 $fuser = new User($db);
346 $fuser->fetch($object->dao->fk_user_assign);
347 print img_picto('', 'user', 'class="pictofixedwidth"');
348 print $fuser->getFullName($langs, 0);
349 print '</td></tr>';
350 }
351
352 // External contributors
353 if (getDolGlobalInt('TICKET_PUBLIC_DISPLAY_EXTERNAL_CONTRIBUTORS')) {
354 print '<tr><td>'.$langs->trans("ExternalContributors").'</td><td>';
355 if ($object->dao->id > 0) {
356 $contactlist = $object->dao->liste_contact(-1, 'external');
357 foreach ($contactlist as $externalContributor) {
358 print img_picto('', 'contact', 'class="pictofixedwidth"');
359 print $externalContributor["lastname"]." ".$externalContributor["firstname"]."<br>";
360 }
361 }
362 print '</td></tr>';
363 }
364
365 // Add new external contributor
366 if (getDolGlobalInt('TICKET_PUBLIC_SELECT_EXTERNAL_CONTRIBUTORS') && !empty($object->dao->fk_soc)) {
367 print '<form method="post" id="form_view_add_contact" name="form_view_add_contact" action="'.$_SERVER['PHP_SELF'].'?track_id='.$object->dao->track_id.'">';
368 print '<input type="hidden" name="token" value="'.newToken().'">';
369 print '<input type="hidden" name="action" value="add_contact">';
370 print '<input type="hidden" name="email" value="'.$_SESSION['email_customer'].'">';
371 print '<tr><td>'.$langs->trans("AddContributor").'</td><td>';
372 //print $form->selectcontacts($object->dao->fk_soc, '', 'contactid', 3, '', '', 1, 'minwidth100imp widthcentpercentminusxx maxwidth400');
373 print $form->select_contact($object->dao->fk_soc, '', 'contactid', 3, '', '', 1, 'minwidth100imp widthcentpercentminusxx maxwidth400', true);
374 print '<input type="submit" class="button smallpaddingimp reposition" name="btn_add_contact" value="'.$langs->trans('Add').'" />';
375 print '</td></tr></form>';
376 }
377
378 // Progression
379 if (getDolGlobalString('TICKET_SHOW_PROGRESSION')) {
380 print '<tr><td>'.$langs->trans("Progression").'</td><td>';
381 print($object->dao->progress > 0 ? dol_escape_htmltag((string) $object->dao->progress) : '0').'%';
382 print '</td></tr>';
383 }
384
385 // Other attributes
386 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
387
388 print '</table>';
389
390 print '</div>';
391
392 print '<div style="clear: both; margin-top: 1.5em;"></div>';
393
394 if ($action == 'presend') {
395 print '<br>';
396 print load_fiche_titre($langs->trans('TicketAddMessage'), '', 'conversation');
397
398 $formticket = new FormTicket($db);
399
400 $formticket->action = "add_message";
401 $formticket->track_id = $object->dao->track_id;
402 $formticket->trackid = 'tic'.$object->dao->id;
403
404 $baseurl = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', DOL_URL_ROOT.'/public/ticket/');
405
406 $formticket->param = array('track_id' => $object->dao->track_id, 'fk_user_create' => '-1',
407 'returnurl' => $baseurl.'view.php'.(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : ''));
408
409 $formticket->withfile = 2;
410 $formticket->withcancel = 1;
411 $formticket->withtitletopic = 1;
412
413 $formticket->showMessageForm('100%', 1);
414 }
415
416 if ($action != 'presend') {
417 $baseurl = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', DOL_URL_ROOT.'/public/ticket/');
418
419 print '<form method="POST" id="form_view_ticket_list" name="form_view_ticket_list" action="'.$baseurl.'list.php'.(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : '').'">';
420 print '<input type="hidden" name="token" value="'.newToken().'">';
421 print '<input type="hidden" name="action" value="view_ticketlist">';
422 print '<input type="hidden" name="track_id" value="'.$object->dao->track_id.'">';
423 print '<input type="hidden" name="email" value="'.$_SESSION['email_customer'].'">';
424 //print '<input type="hidden" name="search_fk_status" value="non_closed">';
425 print "</form>\n";
426
427 print '<div class="tabsAction">';
428
429 // List ticket
430 print '<div class="inline-block divButAction"><a class="left" style="padding-right: 50px" href="javascript:$(\'#form_view_ticket_list\').submit();">'.$langs->trans('ViewMyTicketList').'</a></div>';
431
432 if ($object->dao->status < Ticket::STATUS_CLOSED) {
433 // New message
434 print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?action=presend&mode=init&track_id='.$object->dao->track_id.(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : '').'&token='.newToken().'">'.$langs->trans('TicketAddMessage').'</a></div>';
435
436 // Close ticket
437 if ($object->dao->status >= Ticket::STATUS_NOT_READ && $object->dao->status < Ticket::STATUS_CLOSED) {
438 print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?action=close&track_id='.$object->dao->track_id.(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : '').'&token='.newToken().'">'.$langs->trans('CloseTicket').'</a></div>';
439 }
440 }
441
442 print '</div>';
443 }
444
445 print '</div>';
446
447 // Message list
448 print '<div class="ticketpublicarea ticketlargemargin">';
449 print '<h3>';
450 print load_fiche_titre($langs->trans('TicketMessagesList'), '', 'conversation');
451 print '</h3>';
452 print '</div>';
453
454 $object->viewTicketMessages(false, true, $object->dao);
455
456 print '<br>';
457 } else {
458 print '<!-- public view ticket if else -->';
459 print '<div class="ticketpublicarea ticketlargemargin">';
460
461 print '<div class="error">Not Allowed<br><a href="'.$_SERVER['PHP_SELF'].'?track_id='.$object->dao->track_id.(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : '').'" rel="nofollow noopener">'.$langs->trans("GoBack").'</a></div>';
462
463 print '</div>';
464 }
465} else {
466 print '<!-- public view ticket else -->';
467 print '<div class="ticketpublicarea ticketlargemargin">';
468
469 print '<div class="center opacitymedium margintoponly marginbottomonly ticketlargemargin">'.$langs->trans("TicketPublicMsgViewLogIn").'</div>';
470
471 print '<div id="form_view_ticket">';
472 print '<form method="POST" class="maxwidth1000 center" name="form_view_ticket" action="'.$_SERVER['PHP_SELF'].(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : '').'">';
473
474 print '<input type="hidden" name="token" value="'.newToken().'">';
475 print '<input type="hidden" name="action" value="view_ticket">';
476
477 print '<p><label for="track_id" style="display: inline-block;" class="titlefieldcreate left"><span class="fieldrequired">';
478 print img_picto($langs->trans("TicketTrackId"), 'generic', 'class="pictofixedwidth"');
479 print $langs->trans("TicketTrackId").'</span></label>';
480 print '<br class="showonsmartphone hidden">';
481 print '<input class="minwidth100" id="track_id" name="track_id" value="'.(GETPOST('track_id', 'alpha') ? GETPOST('track_id', 'alpha') : '').'" />';
482 print '</p>';
483
484 print '<p><label for="email" style="display: inline-block;" class="titlefieldcreate left"><span class="fieldrequired">';
485 print img_picto($langs->trans("Email"), 'email', 'class="pictofixedwidth"');
486 print $langs->trans('Email').'</span></label>';
487 print '<br class="showonsmartphone hidden">';
488 print '<input class="minwidth100" id="email" name="email" value="'.(GETPOST('email', 'alpha') ? GETPOST('email', 'alpha') : (!empty($_SESSION['customer_email']) ? $_SESSION['customer_email'] : "")).'" />';
489 print '</p>';
490
491 print '<p style="text-align: center; margin-top: 1.5em;">';
492 print '<input type="submit" class="button" name="btn_view_ticket" value="'.$langs->trans('ViewTicket').'" />';
493 print ' &nbsp; ';
494 print '<input type="submit" class="button button-cancel" name="cancel" value="'.$langs->trans("Cancel").'">';
495 print "</p>\n";
496
497 print "</form>\n";
498 print "</div>\n";
499
500 print '</div>';
501}
502
503if (getDolGlobalInt('TICKET_SHOW_COMPANY_FOOTER')) {
504 // End of page
505 htmlPrintOnlineFooter($mysoc, $langs, 0, $suffix, $object);
506}
507
508llxFooter('', 'public');
509
510$db->close();
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
Definition wrapper.php:91
Class Actions of the module ticket.
static getValidAddress($address, $format, $encode=0, $maxnumberofemail=0)
Return a formatted address string for SMTP protocol.
Class to manage generation of HTML components Only common components must be here.
Class to manage Dolibarr users.
htmlPrintOnlineFooter($fromcompany, $langs, $addformmessage=0, $suffix='', $object=null)
Show footer of company in HTML public pages.
global $mysoc
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $db
API class for accounts.
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)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dolPrintHTML($s, $allowiframe=0, $moreallowedtags=array())
Return a string (that can be on several lines) ready to be output on a HTML page.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
isValidEmail($address, $acceptsupervisorkey=0, $acceptuserkey=0)
Return true if email syntax is ok.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.
llxHeaderTicket($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs=[], $arrayofcss=[])
Show http header, open body tag and show HTML header banner for public pages for tickets.