Update ticketgen.php