306 // Check if admin password matches userdata 307 function check_admin_pass($password) { 308 309 return Authenticate::validateAuthAdmin($password); 310 311 } 312 313 // Redirect browser using header or script function 314 function redirect($location, $script = false) { 315 if (!$script) { 316 header("Location: ".str_replace("&", "&", $location)); 317 exit; 318 } else { 319 echo "\n"; 320 exit; 321 } 322 } 323 324 // Clean URL Function, prevents entities in server globals 325 function cleanurl($url) {