function startUpError($msg, $title) {\r
?>\r
<html xmlns="http://www.w3.org/1999/xhtml">\r
- <head><meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" /><title><?php echo htmlspecialchars($title)?></title></head>\r
+ <head><title><?php echo htmlspecialchars($title)?></title></head>\r
<body>\r
<h1><?php echo htmlspecialchars($title)?></h1>\r
<?php echo $msg?>\r
\r
sscanf($archive,'%d-%d-%d',$y,$m,$d);\r
if ($d != 0) {\r
- $archivetype = _ARCHIVETYPE_DAY;\r
+ $archivetype = _ARCHIVETYPE_DAY; // TODO: move to language file\r
$t = mktime(0,0,0,$m,$d,$y);\r
$archiveprev = strftime('%Y-%m-%d',$t - (24*60*60));\r
$archivenext = strftime('%Y-%m-%d',$t + (24*60*60));\r
\r
} else {\r
- $archivetype = _ARCHIVETYPE_MONTH;\r
+ $archivetype = _ARCHIVETYPE_MONTH; // TODO: move to language file\r
$t = mktime(0,0,0,$m,1,$y);\r
$archiveprev = strftime('%Y-%m',$t - (1*24*60*60));\r
$archivenext = strftime('%Y-%m',$t + (32*24*60*60));\r
if(preg_match("/^(\xA1{2}|\xe3\x80{2}|\x20)+$/",$query)){\r
$type = 'index';\r
}\r
- $order = (_CHARSET == 'EUC-JP') ? 'EUC-JP, UTF-8,' : 'UTF-8, EUC-JP,';\r
+ $order = (_CHARSET == 'euc-jp') ? 'EUC-JP, UTF-8,' : 'UTF-8, EUC-JP,';\r
$query = mb_convert_encoding($query, _CHARSET, $order.' JIS, SJIS, ASCII');\r
if (intval($blogid)==0)\r
$blogid = getBlogIDFromName($blogid);\r