$value) { ${$key} = $value; } foreach($_GET AS $key => $value) { ${$key} = $value; } //******************************************* //set poll cookie if ($submitpoll=="yes") { if(setcookie ("poll","yes", time()+3600)==TRUE) {} } // ************AUTHENTICATION CODE - Place under Globals Off Workaround*************** $intranetconfig = "content/.system-use/config/intranet.inc"; if (file_exists($intranetconfig)) { include $intranetconfig; $intranetlocation = explode("|", $intranet); if (($page==$intranetlocation[0])&&($subpage==$intranetlocation[1])) { list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':',base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); $password_file = "admin/intranetadmin/intranetpass.txt"; if(!$fh = fopen($password_file, "r")) {die("

Could Not Open Password File

");} $match = 0; $login = $_SERVER['PHP_AUTH_USER']; $password = md5($_SERVER['PHP_AUTH_PW']); while(!feof($fh)) { $line = fgets($fh, 4096); $user_pass = explode(":", $line); if($user_pass[0] == $login) { if(rtrim($user_pass[1]) == $password) { $match = 1; break; } } } if($match) {} else { header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo '

Authorization Required. Access denied

'; exit; } fclose($fh); } } // **************************END AUTHENTICATION CODE *************************** ?> <? echo $pagemetatitle; ?>