Added function to ticket.php to generate a qr code.
Fixed qr path.