*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,7 +19,7 @@
/**
* \file htdocs/public/ticket/index.php
* \ingroup ticket
- * \brief Public file to add and manage ticket
+ * \brief Public page to add and manage ticket
*/
if (!defined('NOCSRFCHECK')) define('NOCSRFCHECK', '1');
@@ -56,21 +57,24 @@ $formticket = new FormTicket($db);
$arrayofjs = array();
$arrayofcss = array('/ticket/css/styles.css.php');
+
+if (empty($conf->global->TICKET_ENABLE_PUBLIC_INTERFACE))
+{
+ print $langs->trans('TicketPublicInterfaceForbidden');
+ exit;
+}
+
llxHeaderTicket($langs->trans("Tickets"), "", 0, 0, $arrayofjs, $arrayofcss);
-if (!$conf->global->TICKET_ENABLE_PUBLIC_INTERFACE) {
- print '' . $langs->trans('TicketPublicInterfaceForbidden') . '
';
-} else {
- print '';
- print '
' . ($conf->global->TICKET_PUBLIC_TEXT_HOME ? $conf->global->TICKET_PUBLIC_TEXT_HOME : $langs->trans("TicketPublicDesc")) . '
';
- print '
';
- print '
';
-}
+print '';
+print '
' . ($conf->global->TICKET_PUBLIC_TEXT_HOME ? $conf->global->TICKET_PUBLIC_TEXT_HOME : $langs->trans("TicketPublicDesc")) . '
';
+print '
';
+print '
';
// End of page
htmlPrintOnlinePaymentFooter($mysoc, $langs, 1, $suffix, $object);