function authenticate() {
header('WWW-Authenticate: Basic realm="¸â¹ö½± ÀÎÁõ ½Ã½ºÅÛ"');
header('HTTP/1.0 401 Unauthorized');
exit("ÀÌ ÀÚ¿ø¿¡ Á¢±ÙÇϱâ À§Çؼ´Â À¯È¿ÇÑ ·Î±×ÀÎ ID¿Í ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.\n
<br />This server could not verify that you are authorized to access the URL \"$_SERVER[REQUEST_URI]\".\n
<br />You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.\n
<br />In case you are allowed to request the document, please check your user-id and password and try again.<hr>\n");
}
if ((!isset($_SERVER['PHP_AUTH_USER'])) || (!isset($_SERVER['PHP_AUTH_PW']))) {
authenticate();
}
elseif ((isset($_SERVER['PHP_AUTH_USER'])) && (isset($_SERVER['PHP_AUTH_PW']))) {
foreach($auth_Member as $Acc_user) {
if ($Acc_user == $_SERVER['PHP_AUTH_USER'] . "," . $_SERVER['PHP_AUTH_PW']) {
$authIn = "TRUE";
}
}