Dolibarrize
This commit is contained in:
parent
93f4d6fdcd
commit
d1fbf2a80e
@ -45,30 +45,12 @@ if (!defined('NOREQUIREHTML')) {
|
|||||||
define("NOLOGIN", 1); // This means this output page does not require to be logged.
|
define("NOLOGIN", 1); // This means this output page does not require to be logged.
|
||||||
define("NOCSRFCHECK", 1); // We accept to go on this page from external web site.
|
define("NOCSRFCHECK", 1); // We accept to go on this page from external web site.
|
||||||
|
|
||||||
// Change this following line to use the correct relative path (../, ../../, etc)
|
require '../../main.inc.php';
|
||||||
$res = 0;
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/class/actions_ticketsup.class.php';
|
||||||
if (!$res && file_exists("../main.inc.php")) {
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/class/html.formticketsup.class.php';
|
||||||
$res = @include "../main.inc.php";
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/lib/ticketsup.lib.php';
|
||||||
}
|
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
|
||||||
if (!$res && file_exists("../../main.inc.php")) {
|
|
||||||
$res = @include "../../main.inc.php";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res && file_exists("../../../main.inc.php")) {
|
|
||||||
$res = @include "../../../main.inc.php";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res) {
|
|
||||||
die("Include of main fails");
|
|
||||||
}
|
|
||||||
|
|
||||||
dol_include_once('/ticketsup/class/ticketsup.class.php');
|
|
||||||
dol_include_once('/ticketsup/class/html.formticketsup.class.php');
|
|
||||||
dol_include_once('/ticketsup/lib/ticketsup.lib.php');
|
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT . '/user/class/user.class.php';
|
|
||||||
|
|
||||||
// Load traductions files requiredby by page
|
// Load traductions files requiredby by page
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|||||||
@ -42,30 +42,11 @@ if (!defined("NOLOGIN")) {
|
|||||||
}
|
}
|
||||||
// If this page is public (can be called outside logged session)
|
// If this page is public (can be called outside logged session)
|
||||||
|
|
||||||
// Change this following line to use the correct relative path (../, ../../, etc)
|
require '../../main.inc.php';
|
||||||
$res = 0;
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/class/actions_ticketsup.class.php';
|
||||||
if (!$res && file_exists("../main.inc.php")) {
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/class/html.formticketsup.class.php';
|
||||||
$res = @include '../main.inc.php';
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/lib/ticketsup.lib.php';
|
||||||
}
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
|
||||||
|
|
||||||
if (!$res && file_exists("../../main.inc.php")) {
|
|
||||||
$res = @include '../../main.inc.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res && file_exists("../../../main.inc.php")) {
|
|
||||||
$res = @include '../../../main.inc.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res) {
|
|
||||||
die("Include of main fails");
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/security.lib.php';
|
|
||||||
|
|
||||||
// Change this following line to use the correct relative path from htdocs
|
|
||||||
dol_include_once('/ticketsup/class/ticketsup.class.php');
|
|
||||||
dol_include_once('/ticketsup/class/html.formticketsup.class.php');
|
|
||||||
dol_include_once('/ticketsup/lib/ticketsup.lib.php');
|
|
||||||
|
|
||||||
// Load traductions files requiredby by page
|
// Load traductions files requiredby by page
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|||||||
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file ticketsup/public/index.php
|
* \file ticketsup/public/index.php
|
||||||
* \ingroup ticketsup
|
* \ingroup ticketsup
|
||||||
* \brief Public file to add and manage ticket
|
* \brief Public file to add and manage ticket
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('NOCSRFCHECK')) {
|
if (!defined('NOCSRFCHECK')) {
|
||||||
@ -34,28 +34,10 @@ if (!defined("NOLOGIN")) {
|
|||||||
}
|
}
|
||||||
// If this page is public (can be called outside logged session)
|
// If this page is public (can be called outside logged session)
|
||||||
|
|
||||||
// Change this following line to use the correct relative path (../, ../../, etc)
|
require '../../main.inc.php';
|
||||||
$res = 0;
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/class/actions_ticketsup.class.php';
|
||||||
if (!$res && file_exists("../main.inc.php")) {
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/class/html.formticketsup.class.php';
|
||||||
$res = @include '../main.inc.php';
|
require_once DOL_DOCUMENT_ROOT.'/ticketsup/lib/ticketsup.lib.php';
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res && file_exists("../../main.inc.php")) {
|
|
||||||
$res = @include '../../main.inc.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res && file_exists("../../../main.inc.php")) {
|
|
||||||
$res = @include '../../../main.inc.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$res) {
|
|
||||||
die("Include of main fails");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Change this following line to use the correct relative path from htdocs
|
|
||||||
dol_include_once('/ticketsup/class/actions_ticketsup.class.php');
|
|
||||||
dol_include_once('/ticketsup/class/html.formticketsup.class.php');
|
|
||||||
dol_include_once('/ticketsup/lib/ticketsup.lib.php');
|
|
||||||
|
|
||||||
// Load traductions files requiredby by page
|
// Load traductions files requiredby by page
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
@ -300,13 +282,13 @@ if ($action == "view_ticket" || $action == "add_message" || $action == "close" |
|
|||||||
print load_fiche_titre($langs->trans('TicketMessagesList'), '', 'messages@ticketsup');
|
print load_fiche_titre($langs->trans('TicketMessagesList'), '', 'messages@ticketsup');
|
||||||
$object->viewTicketMessages(false);
|
$object->viewTicketMessages(false);
|
||||||
|
|
||||||
print '<br />';
|
print '<br>';
|
||||||
|
|
||||||
// Logs list
|
// Logs list
|
||||||
print load_fiche_titre($langs->trans('TicketHistory'), '', 'history@ticketsup');
|
print load_fiche_titre($langs->trans('TicketHistory'), '', 'history@ticketsup');
|
||||||
$object->viewTicketLogs(false);
|
$object->viewTicketLogs(false);
|
||||||
} else {
|
} else {
|
||||||
print '<div class="error">Not Allowed<br /><a href="' . $_SERVER['PHP_SELF'] . '?track_id=' . $object->dao->track_id . '">' . $langs->trans('Back') . '</a></div>';
|
print '<div class="error">Not Allowed<br><a href="' . $_SERVER['PHP_SELF'] . '?track_id=' . $object->dao->track_id . '">' . $langs->trans('Back') . '</a></div>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print '<p style="text-align: center">' . $langs->trans("TicketPublicMsgViewLogIn") . '</p>';
|
print '<p style="text-align: center">' . $langs->trans("TicketPublicMsgViewLogIn") . '</p>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user