= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) { $HTTP_POST_VARS = $_POST; $HTTP_GET_VARS = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; // _SESSION is the only superglobal which is conditionally set if (isset($_SESSION)) { $HTTP_SESSION_VARS = $_SESSION; } } // Protect against GLOBALS tricks if (isset($HTTP_POST_VARS['GLOBALS']) || isset($HTTP_POST_FILES['GLOBALS']) || isset($HTTP_GET_VARS['GLOBALS']) || isset($HTTP_COOKIE_VARS['GLOBALS'])) { die("Possibility of hacking attempt ! IP registered"); } if (isset($_POST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_GET['GLOBALS']) || isset($_COOKIE['GLOBALS']) || isset($_REQUEST['GLOBALS'] )) { die("Possibility of hacking attempt !"); } if (isset($_SESSION) && !is_array($_SESSION)) { die("Possibility of hacking attempt !"); } if (isset($_GET['eventdate'])) { $eventdate = htmlspecialchars($_GET['eventdate']); // change dateformat if ( $dateformat == 1) { list($yyyy, $mm, $dd) = explode('-',$eventdate); } else { list($dd, $mm, $yyyy ) = explode('-',$eventdate); } $monthno = $mm; $year = $yyyy; $displaydate = date('d M Y', mktime(0,0,0,$mm,$dd,$yyyy)); $eventdate = $yyyy."-".$mm."-".$dd; $imageno = $dd ; } else { $today = gmtdate('Y-m-d', time(), $timezone ); $eventdate = $today; // list($yyyy, $mm, $dd) = explode('-',$eventdate); $monthno = gmtdate('n', time(), $timezone ); $year = gmtdate('Y', time(), $timezone ); $displaydate = gmtdate('d M Y', time(), $timezone ); $imageno = gmtdate('d', time(), $timezone ); } if (isset($_GET['monthno']) ) { $monthno = intval(htmlspecialchars($_GET['monthno'])); } elseif (!isset($monthno) ) { $monthno= gmtdate('n', time(), $timezone ); } if (isset($_GET['year']) or isset($_GET['year'])) { $year = intval(htmlspecialchars($_GET['year'])); } elseif (!isset($year) ) { $year = gmtdate('Y', time(), $timezone ); } if (isset($_GET['view'])) { $view = htmlspecialchars($_GET['view']); } else { $view = 0; } $monthfulltext = date("F", mktime(0, 0, 0, $monthno, 1, $year)); $monthshorttext = date("M", mktime(0, 0, 0, $monthno, 1, $year)); $day_in_mth = date("t", mktime(0, 0, 0, $monthno, 1, $year)) ; $day_text = date("D", mktime(0, 0, 0, $monthno, 1, $year)); $today = gmtdate('Y-m-d', time(), $timezone ); $sql = "SELECT * FROM event WHERE date = '$eventdate'" ; $results = mysql_query($sql) or die("Cannot query the database.
" . mysql_error()); $event = mysql_num_rows($results); ?> myEvent <? echo $version ?>
Event(s)Coming Up
Date :