" . $_SESSION['msg'] . "

"; $_SESSION['msg'] = null; $_SESSION['msgtype'] = null; } } function loginForm(){ ?>
Log in
Email *
Password *

",$qqq['units'])?>

$_SESSION['p']){ header("Location: index.php?l=404&e=2"); die(); } } }else{ if($level>0){ //Disallow access header("Location: index.php?l=404&e=3"); die(); } } $_SESSION['lastAccessTime'] = time(); //Updates the user freshness } function nav($curPageName){ if($_SESSION['auth']){ $q = "SELECT * FROM linkGroups WHERE active = 'y' AND priv < 4 ORDER BY orderBy"; }else{ $q = "SELECT * FROM linkGroups WHERE active = 'y' AND priv < 2 ORDER BY orderBy"; } connectDB(); $qq = mysqli_query($_SESSION['db'],$q); closeDB(); $temp = ''; $_SESSION['mobileNav'] = $temp; } function footer($dtg){ ?>

CDU Logo© Charles Darwin University | Last updated

]*?>.*?@si', // Strip out javascript '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags '@]*?>.*?@siU', // Strip style tags properly '@@' // Strip multi-line comments ); $output = preg_replace($search, '', $input); return $output; } function sanitize($input) { connectDB(); if (is_array($input)) { foreach($input as $var=>$val) { $output[$var] = sanitize($val); } } else { if (get_magic_quotes_gpc()) { $input = stripslashes($input); } $input = cleanInput($input); $output = mysqli_real_escape_string ( $_SESSION['db'] , $input ); //$output = mysql_real_escape_string($input); } closeDB(); return $output; } ?>