Untitled
By: a guest | Aug 2nd, 2010 | Syntax:
PHP | Size: 0.51 KB | Hits: 189 | Expires: Never
<?php
//action.php
$time = time();
$current = date("Y-m-d H:i:s",$time);
print sprintf("Time is %s<p>",$current);
$event = $_POST['event'];
print "$event<p>";
define('FORUM_ROOT', '/var/www/nginx-default/punbb/');
require FORUM_ROOT.'include/common.php';
print $forum_user['username'] . "<p>";
/*
//cookie -> $_SESSION['username'];
//Does $_SESSION contain 'username'?
//Nothing printed on screen
foreach ($_SESSION as $key => $value){
print sprintf("%s = %s<p>\n",$key,$value);
}
*/
?>