/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: auth.php,v 1.4 2004/12/02 11:42:37 henoheno Exp $
+// $Id: auth.php,v 1.5 2004/12/25 00:11:27 henoheno Exp $
//
// ÊÔ½¸ÉÔ²Äǽ¤Ê¥Ú¡¼¥¸¤òÊÔ½¸¤·¤è¤¦¤È¤·¤¿¤È¤
|| ! isset($_SERVER['PHP_AUTH_USER'], $auth_users)
|| $auth_users[$_SERVER['PHP_AUTH_USER']] != $_SERVER['PHP_AUTH_PW'])
{
+ pkwk_common_headers();
if ($auth_flag) {
- pkwk_headers_sent();
header('WWW-Authenticate: Basic realm="'.$_msg_auth.'"');
header('HTTP/1.0 401 Unauthorized');
}
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: func.php,v 1.19 2004/12/16 13:09:48 henoheno Exp $
+// $Id: func.php,v 1.20 2004/12/25 00:14:52 henoheno Exp $
//
// ʸ»úÎó¤¬InterWikiName¤«¤É¤¦¤«
function die_message($msg)
{
$title = $page = 'Runtime error';
-
$body = <<<EOD
<h3>Runtime error</h3>
<strong>Error message : $msg</strong>
EOD;
+ pkwk_common_headers();
if(defined('SKIN_FILE') && file_exists(SKIN_FILE) && is_readable(SKIN_FILE)) {
catbody($title, $page, $body);
} else {
- pkwk_headers_sent();
header('Content-Type: text/html; charset=euc-jp');
print <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
</html>
EOD;
}
- die();
+ exit;
}
// ¸½ºß»þ¹ï¤ò¥Þ¥¤¥¯¥íÉäǼèÆÀ