function getTicketTime() { // global $_SESSION; // < 4.1.0 // fails in 4.3.4 // isset($_SESSION) || $_SESSION = &$GLOBALS['HTTP_SESSION_VARS']; // < 4.1.0 fbTicketAgent::_isInitialized(); $_session_field_name =& fbTicketAgent::_session_field_name(); $ticket = unserialize($_SESSION[$_session_field_name]); return $ticket->_previous_time; }
echo "<pre>"; echo "The current time is: ", strftime('%c'), "\n"; if (!isset($_REQUEST['btnDelete'])) { printf("You have attempted to submit this form %s time(s)", fbTicketAgent::getTicketCount()); echo "<br />"; if (fbTicketAgent::getTicketTime()) { echo "You received or last used this ticket at "; echo strftime("%c", fbTicketAgent::getTicketTime()); echo " from "; echo fbTicketAgent::getTicketIPAddress(); echo "\n"; } echo "The ticket's name is '", fbTicketAgent::getTicketName(), "'\n"; echo "\n"; echo "The raw ticket is="; @print_r(@unserialize(@$_SESSION[fbTicketAgent::_session_field_name()])); echo "\n"; } echo "_REQUEST="; print_r($_REQUEST); echo "\n"; echo "_SESSION="; print_r(@$_SESSION); echo "\n"; echo "HTTP_SESSION_VARS="; print_r(@$HTTP_SESSION_VARS); echo "\n"; echo "_SERVER="; print_r(@$_SERVER); ?>