I have tried a couple of things
I started to look at using this code in the view.php file.
$email=trim($_GET);
$ticketID=trim($_GET:)
if(!$errors && is_numeric($ticketID) && Validator:($email) && ($tid=Ticket:($ticketID))) {
//At this point we know the ticket is valid.
$ticket= new Ticket($tid);
//TODO: 1) Check how old the ticket is...3 months max?? 2) Must be the latest 5 tickets??
//Check the email given.
if($ticket->getId() && strcasecmp($ticket->getEMail(),$email)==0){
//valid match...create session goodies for the client.
$user = new ClientSession($email,$ticket->getId());
$_SESSION=array(); //clear.
$_SESSION =$ticket->getEmail(); //Email
$_SESSION =$ticket->getExtId(); //Ticket ID --acts as password when used with email. See above.
$_SESSION =$user->getSessionToken();
$_SESSION=$cfg->getTZoffset();
$_SESSION=$cfg->observeDaylightSaving();
//Log login info...
$msg=sprintf("%s/%s logged in ",$ticket->getEmail(),$ticket->getExtId(),$_SERVER);
Sys:(LOG_DEBUG,'User login',$msg);
//Redirect tickets.php
session_write_close();
session_regenerate_id();
<USERMENTION username="header">@header</USERMENTION>("Location: tickets.php");
require_once('tickets.php'); //Just incase. of header already sent error.
exit;
}
I thought I had something but when i tried it on another computer it didn't work. Maybe I have something left in the temporary files.
Can someone who knows PHP look at this? If I could step through the lines with a debugger I might be able to figure this out.
Thanks
ZeroEffect