Update print
This commit is contained in:
parent
451c3dfbf5
commit
1e894e904e
19
print.php
19
print.php
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Title: Help Desk Software HESK
|
* Title: Help Desk Software HESK
|
||||||
* Version: 2.6.5 from 28th August 2015
|
* Version: 2.6.7 from 18th April 2016
|
||||||
* Author: Klemen Stirn
|
* Author: Klemen Stirn
|
||||||
* Website: http://www.hesk.com
|
* Website: http://www.hesk.com
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
@ -38,9 +38,19 @@ hesk_load_database_functions();
|
|||||||
|
|
||||||
hesk_session_start();
|
hesk_session_start();
|
||||||
|
|
||||||
|
// Do we have parameters in query string? If yes, store them in session and redirect
|
||||||
|
if ( isset($_GET['track']) || isset($_GET['e']) )
|
||||||
|
{
|
||||||
|
$_SESSION['p_track'] = hesk_GET('track');
|
||||||
|
$_SESSION['p_email'] = hesk_GET('e');
|
||||||
|
|
||||||
|
header('Location: print.php');
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Get the tracking ID */
|
/* Get the tracking ID */
|
||||||
$trackingID = hesk_cleanID() or die("$hesklang[int_error]: $hesklang[no_trackID]");
|
$trackingID = hesk_cleanID('p_track') or die("$hesklang[int_error]: $hesklang[no_trackID]");
|
||||||
|
|
||||||
/* Connect to database */
|
/* Connect to database */
|
||||||
hesk_dbConnect();
|
hesk_dbConnect();
|
||||||
@ -52,8 +62,13 @@ if (empty($_SESSION['id'])) {
|
|||||||
|
|
||||||
// Verify email address match
|
// Verify email address match
|
||||||
hesk_verifyEmailMatch($trackingID);
|
hesk_verifyEmailMatch($trackingID);
|
||||||
|
$my_email = hesk_getCustomerEmail(0, 'p_email');
|
||||||
|
hesk_verifyEmailMatch($trackingID, $my_email);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Clean ticket parameters from the session data, we don't need them anymore */
|
||||||
|
hesk_cleanSessionVars( array('p_track', 'p_email') );
|
||||||
|
|
||||||
/* Get ticket info */
|
/* Get ticket info */
|
||||||
$res = hesk_dbQuery("SELECT `t1`.* , `ticketStatus`.`IsClosed` AS `isClosed`, `ticketStatus`.`Key` AS `statusKey`, `t2`.name AS `repliername`
|
$res = hesk_dbQuery("SELECT `t1`.* , `ticketStatus`.`IsClosed` AS `isClosed`, `ticketStatus`.`Key` AS `statusKey`, `t2`.name AS `repliername`
|
||||||
FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "tickets` AS `t1` LEFT JOIN `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` AS `t2` ON `t1`.`replierid` = `t2`.`id`
|
FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "tickets` AS `t1` LEFT JOIN `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` AS `t2` ON `t1`.`replierid` = `t2`.`id`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user