hi!
basically, what i need is the session variable that handles the current user (user logged in).
i want to save the user that closes a ticket, as it is quite a valuable information to me.
i have no complicated mods to do... as far as i can see, all i need to change is this piece of code in class.ticket.php:
$sql= 'UPDATE '.TICKET_TABLE.' SET status='.db_input('closed').', closed_by='. $_SESSION .', isoverdue=0,duedate=NULL,updated=NOW(),closed=NOW() WHERE ticket_id='.db_input($this->getId());
obviously, $_SESSION is not the one, as it stores the email address... quite useless information to carry across a session (my opinion).
so, how do i get the ID of the staff/user that is currently logged on.
PS: I double posted because I think it might prove important to other people too, so a new thread would be more visible. I'm sorry for the trouble.