if ( ( !isset( $_SERVER['PHP_AUTH_USER'])) || (!isset($_SERVER['PHP_AUTH_PW'])) || ( $_SERVER['PHP_AUTH_USER'] != "ccsu") || ( $_SERVER['PHP_AUTH_PW'] != "ccsu" ) ) { header( 'WWW-Authenticate: Basic realm="Administrator"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } ?>
Graduated School, Silpakorn University 2007. All Right Reserved |