setBaseDir('./')->setMode('strict')->apply($output); } catch (Exception $e) { var_dump($e->getMessage()); exit; } } // 入力モード指定の変換を行う $output = KetaiConverter::istyle_imode($output); } elseif ($carrier == 'EZweb') { if ($encoding == 'UTF-8') { // auの絵文字変換処理(UTF-8用)を行う $output = KetaiConverter::emoji_i2ez_utf8($output); } else { // auの絵文字変換処理(SJIS用)を行う $output = KetaiConverter::emoji_i2ez_sjis($output); } } elseif ($carrier == 'SoftBank') { // ソフトバンクの絵文字変換処理を行う $output = KetaiConverter::emoji_i2sb($output); } /*google analytics のため改造*/ /*
' . "\n" . '' . $message . '
' . "\n" . 'の直前にを挿入する*/
$googleAnalyticsImageUrl = googleAnalyticsGetImageUrl();
$google_img_str = '
';
$output = str_replace("", $google_img_str, $output);
return $output;
}
/**
* HTTPステータス出力メソッド
*
* @param int $code ステータスコード
*/
function outputHttpStatus($code)
{
switch ($code) {
case 403:
$header_str = 'HTTP/1.0 403 Forbidden';
$title = '403 Forbidden';
$message = 'You don\'t have permission to access ' . htmlspecialchars($_SERVER['REQUEST_URI']) . ' on this server.';
break;
case 404:
$header_str = 'HTTP/1.0 404 Not Found';
$title = '404 Not Found';
$message = 'The requested URL ' . htmlspecialchars($_SERVER['REQUEST_URI']) . ' was not found on this server.';
break;
default:
exit;
}
header($header_str, true);
$html = '' . "\n" .
'
' . "\n" . '
' . "\n" . '
' . "\n" . '