require_once('elements/session.php'); if ( $_POST['ticket_id'] ) { $ticket_id = $_POST['ticket_id']; } else { $ticket_id = $_SERVER['QUERY_STRING']; } if ( ! preg_match( '/^\d+$/', $ticket_id ) ) { header('Location:index.php?error=No+ticket+ID'); die(); } $ticket_info = $freeside->get_ticket( array( 'session_id' => $_COOKIE['session_id'], 'ticket_id' => $ticket_id, 'subject' => $_POST['subject'], 'reply' => $_POST['reply'], ) ); if ( isset($ticket_info['error']) && $ticket_info['error'] ) { $error = $ticket_info['error']; header('Location:index.php?error='. urlencode($error)); die(); } extract($ticket_info); ?> $title = "View ticket #$ticket_id"; include('elements/header.php'); ?> $current_menu = 'tickets.php'; include('elements/menu.php'); ?>
echo $transaction['created'] ?>
echo $transaction['description'] ?>
echo $transaction['content'] ?> |