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 のため改造*/ /* の直前にを挿入する*/ $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" . '' . $title . '' . "\n" . '' . "\n" . '

' . $title . '

' . "\n" . '

' . $message . '

' . "\n" . '' . "\n" . ''; print $html; exit; } /** * キャリア判定 * * @param string $agent ユーザエージェント * * @return string キャリア */ function getCarrier($agent) { if (preg_match('/^J-PHONE/', $agent) or preg_match('/^Vodafone/', $agent) or preg_match('/^SoftBank/', $agent) or preg_match('/^MOT-/', $agent)) { // J-PHONE, Vodafone, SoftBankの場合 return 'SoftBank'; } elseif (preg_match('/^DoCoMo/', $agent)) { // DoCoMoの場合 return 'DoCoMo'; } elseif (preg_match('/^KDDI/', $agent)) { // auの場合 return 'EZweb'; } else { // その他(PC等) return 'NonMobile'; } } /** * 入力モード指定変換(iモード用) * * iモード用の入力モードの変換を行う * * @param string $input 変換対象の文字列 * * @return string 変換後の文字列 */ function istyle_imode($input) { $rep_arr = array( 'istyle="1"' => 'istyle="1" style="-wap-input-format:"*<ja:h>";"', 'istyle="2"' => 'istyle="2" style="-wap-input-format:"*<ja:hk>";"', 'istyle="3"' => 'istyle="3" style="-wap-input-format:"*<ja:en>";"', 'istyle="4"' => 'istyle="4" style="-wap-input-format:"*<ja:n>";"' ); $output = $input; preg_match_all('//i', $input, $arr); // inputタグを検索し、配列に格納 for ($i = 0; $i < count($arr[0]); $i++) { // 必要な変数を取得 $target = $arr[0][$i]; // 置換対象 $istyle = $arr[1][$i]; // istyle属性 $quote = $arr[2][$i]; // クォート $replacement = strtr($target, $rep_arr); $output = str_replace($target, $replacement, $output); } return $output; } /** * 絵文字変換(iモード→EZweb SJIS) * * iモード用からEZweb用に絵文字を変換する。(SJIS用) * * @param string $input 変換対象の文字列 * * @return string 変換後の文字列 */ function emoji_i2ez_sjis($input) { $emoji_i2ez = array( '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => 'i', '' => 'i', '' => '', '' => 'D', '' => 'D', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => 'F', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => ' ', '' => '', '' => '', '' => '', '' => '', '' => '', '' => 'α', '' => 'α', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => ' ', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => ' ', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '禁', '' => '', '' => '合', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '', '' => '' ); // 変換処理 $output = strtr($input, $emoji_i2ez); return $output; } /** * 絵文字変換(iモード→EZweb UTF-8) * * iモード用からEZweb用に絵文字を変換する。(UTF-8用) * * @param string $input 変換対象の文字列 * * @return string 変換後の文字列 */ function emoji_i2ez_utf8($input) { $emoji_i2ez = array( '' => sprintf("\xEE\xBD\xA0"), '' => sprintf("\xEE\xBD\xA5"), '' => sprintf("\xEE\xBD\xA4"), '' => sprintf("\xEE\xBD\x9D"), '' => sprintf("\xEE\xBD\x9F"), '' => sprintf("\xEE\xBD\x81"), '' => sprintf("\xEF\x82\xB5"), '' => sprintf("\xEE\xB2\xBC"), '' => sprintf("\xEE\xBD\xA7"), '' => sprintf("\xEE\xBD\xA8"), '' => sprintf("\xEE\xBD\xA9"), '' => sprintf("\xEE\xBD\xAA"), '' => sprintf("\xEE\xBD\xAB"), '' => sprintf("\xEE\xBD\xAC"), '' => sprintf("\xEE\xBD\xAD"), '' => sprintf("\xEE\xBD\xAE"), '' => sprintf("\xEE\xBD\xAF"), '' => sprintf("\xEE\xBD\xB0"), '' => sprintf("\xEE\xBD\xB1"), '' => sprintf("\xEE\xBD\xB2"), '' => sprintf("\xEE\xBD\x83"), '' => sprintf("\xEE\xBE\x93"), '' => sprintf("\xEF\x82\xB6"), '' => sprintf("\xEE\xBE\x90"), '' => sprintf("\xEE\xBE\x8F"), '' => sprintf("\xEE\xB2\x80"), '' => sprintf("\xEF\x82\xB7"), '' => sprintf("\xEE\xBE\x92"), '' => sprintf("\xEF\x82\xB8"), '' => sprintf("\xEE\xBE\x8E"), '' => sprintf("\xEF\x83\xAC"), '' => sprintf("\xEE\xBE\x89"), '' => sprintf("\xEE\xBE\x8A"), '' => sprintf("\xEE\xBE\x8A"), '' => sprintf("\xEE\xBE\x88"), '' => sprintf("\xEE\xB1\x95"), '' => sprintf("\xEE\xBE\x8C"), '' => sprintf("\xEE\xBE\x84"), '' => sprintf("\xEE\xBE\x86"), '' => sprintf("\xEE\xB1\x91"), '' => sprintf("\xEE\xB1\x92"), '' => sprintf("\xEE\xBE\x83"), '' => sprintf("\xEE\xBD\xBB"), '' => sprintf("\xEE\xB1\x94"), '' => sprintf("\xEE\xBD\xBC"), '' => sprintf("\xEF\x82\x8E"), '' => sprintf("\xEE\xBD\xBE"), '' => sprintf("\xEE\xBD\x82"), '' => sprintf("\xEE\xBD\xBD"), '' => sprintf("\xEE\xBE\x85"), '' => sprintf("\xEF\x82\xB4"), '' => sprintf("\xEE\xBE\x9B"), '' => sprintf("\xEE\xBE\x9C"), '' => sprintf("\xEE\xBE\xAF"), '' => sprintf("\xEE\xBF\xB3"), '' => sprintf("\xEE\xBF\xAF"), '' => sprintf("\xEE\xBF\x9C"), '' => sprintf("\xEE\xBF\xB0"), '' => sprintf("\xEF\x81\xB1"), '' => sprintf("\xEE\xBD\x85"), '' => sprintf("\xEE\xBF\xA1"), '' => sprintf("\xEF\x82\xB9"), '' => sprintf("\xEF\x82\xBA"), '' => sprintf("\xEF\x82\xBB"), '' => sprintf("\xEE\xBD\xB6"), '' => sprintf("\xEE\xBD\x95"), '' => sprintf("\xEE\xBD\x96"), '' => sprintf("\xEE\xBF\xAE"), '' => sprintf("\xEE\xBD\xB4"), '' => sprintf("\xEE\xBD\xB7"), '' => sprintf("\xEF\x82\xBC"), '' => sprintf("\xEE\xBE\xA8"), '' => sprintf("\xEF\x82\xBD"), '' => sprintf("\xEF\x82\xB3"), '' => sprintf("\xEF\x82\xA5"), '' => sprintf("\xEF\x81\xBD"), '' => sprintf("\xEE\xBF\x9B"), '' => sprintf("\xEE\xBE\x9F"), '' => sprintf("\xEE\xBF\xA5"), '' => sprintf("\xEE\xB1\xB8"), '' => sprintf("\xEF\x82\xBE"), '' => sprintf("\xEF\x82\xBF"), '' => sprintf("\xEF\x83\x80"), '' => sprintf("\xEF\x83\x81"), '' => sprintf("\xEF\x83\x82"), '' => sprintf("\xEE\xB6\x88"), '' => sprintf("\xEF\x83\x83"), '' => sprintf("\xEF\x83\x84"), '' => sprintf("\xEF\x81\xA9"), '' => sprintf("\xEF\x81\xA8"), '' => sprintf("\xEE\xB3\xAB"), '' => sprintf("\xEE\xB3\xAC"), '' => sprintf("\xEE\xBF\x97"), '' => sprintf("\xEE\xBD\x97"), '' => sprintf("\xEF\x83\x85"), '' => sprintf("\xEF\x83\x86"), '' => sprintf("\xEF\x83\x87"), '' => sprintf("\xEE\xBD\x9E"), '' => sprintf("\xEE\xBD\xA1"), '' => sprintf("\xEE\xBE\xBA"), '' => sprintf("\xEE\xBE\xB4"), '' => sprintf("\xEE\xBE\x8D"), '' => sprintf("\xEE\xBE\xA2"), '' => sprintf("\xEF\x81\xB2"), '' => sprintf("\xEF\x83\x9F"), '' => sprintf("\xEE\xB5\xA6"), '' => sprintf("\xEE\xBF\xB9"), '' => 'i', '' => 'i', '' => sprintf("\xEE\xBF\xBA"), '' => 'D', '' => 'D', '' => sprintf("\xEF\x82\x9A"), '' => sprintf("\xEF\x82\x95"), '' => sprintf("\xEE\xB1\x9B"), '' => sprintf("\xEE\xBF\xB2"), '' => sprintf("\xEF\x81\xB9"), '' => sprintf("\xEF\x83\x88"), '' => sprintf("\xEE\xBF\xB1"), '' => sprintf("\xEF\x83\xA5"), '' => sprintf("\xEE\xB3\xAD"), '' => 'F', '' => sprintf("\xEE\xB6\x89"), '' => sprintf("\xEF\x81\x88"), '' => sprintf("\xEE\xBF\xBB"), '' => sprintf("\xEE\xBF\xBC"), '' => sprintf("\xEF\x81\x80"), '' => sprintf("\xEF\x81\x81"), '' => sprintf("\xEF\x81\x82"), '' => sprintf("\xEF\x81\x83"), '' => sprintf("\xEF\x81\x84"), '' => sprintf("\xEF\x81\x85"), '' => sprintf("\xEF\x81\x86"), '' => sprintf("\xEF\x83\x89"), '' => sprintf("\xEF\x83\x8A"), '' => sprintf("\xEF\x82\xB2"), '' => sprintf("\xEE\xB5\xB9"), '' => sprintf("\xEE\xBD\x8F"), '' => sprintf("\xEE\xBD\x90"), '' => sprintf("\xEE\xBD\x89"), '' => sprintf("\xEE\xBD\x8A"), '' => sprintf("\xEE\xBD\x8C"), '' => sprintf("\xEE\xBD\x8B"), '' => sprintf("\xEF\x83\x8B"), '' => sprintf("\xEE\xB3\xAE"), '' => sprintf("\xEF\x83\xAE"), '' => sprintf("\xEE\xBE\x95"), '' => sprintf("\xEF\x81\x92"), '' => sprintf("\xEE\xBF\x84"), '' => sprintf("\xEE\xB1\xBE"), '' => sprintf("\xEE\xBD\x8E"), '' => sprintf("\xEE\xBE\xBE"), '' => sprintf("\xEE\xBF\x8C"), '' => sprintf("\xEE\xBD\x92"), '' => sprintf("\xEE\xBF\x9E"), '' => sprintf("\xEE\xB3\xAF"), '' => sprintf("\xEE\xBD\x8D"), '' => sprintf("\xEE\xBD\x9A"), '' => sprintf("\xEE\xB3\xB0"), '' => sprintf("\xEE\xB3\xB1"), '' => sprintf("\xEF\x83\x8D"), '' => sprintf("\xEF\x83\x8E"), '' => sprintf("\xEE\xBE\xBF"), '' => sprintf("\xEE\xBF\x8D"), '' => sprintf("\xEE\xB6\x81"), '' => sprintf("\xEE\xB3\xB2"), '' => sprintf("\xEE\xBE\x97"), '' => sprintf("\xEE\xBE\xA0"), '' => sprintf("\xEF\x83\x9A"), '' => sprintf("\xEE\xBF\x95"), '' => ' ', '' => sprintf("\xEE\xB3\x85"), '' => sprintf("\xEF\x81\xAE"), '' => sprintf("\xEE\xB5\xBE"), '' => sprintf("\xEF\x81\xAF"), '' => sprintf("\xEF\x82\xB1"), '' => 'α', '' => 'α', '' => sprintf("\xEF\x83\xA6"), '' => sprintf("\xEE\xBF\x9D"), '' => sprintf("\xEE\xBF\xA2"), '' => sprintf("\xEE\xB5\xBB"), '' => sprintf("\xEE\xBE\x91"), '' => sprintf("\xEE\xBF\xAB"), '' => ' ', '' => sprintf("\xEE\xBE\xA0"), '' => sprintf("\xEF\x83\xA8"), '' => sprintf("\xEE\xB5\xBC"), '' => sprintf("\xEF\x82\xA4"), '' => sprintf("\xEE\xBD\xB9"), '' => sprintf("\xEF\x83\xB9"), '' => sprintf("\xEE\xBF\xAD"), '' => sprintf("\xEE\xBD\x94"), '' => sprintf("\xEE\xBE\x87"), '' => sprintf("\xEE\xB2\x82"), '' => sprintf("\xEF\x82\x97"), '' => sprintf("\xEE\xB2\x96"), '' => sprintf("\xEE\xB2\xA1"), '' => sprintf("\xEF\x83\xB6"), '' => sprintf("\xEF\x83\xB6"), '' => sprintf("\xEE\xB5\xA1"), '' => sprintf("\xEE\xB5\xAB"), '' => sprintf("\xEF\x83\xB4"), '' => sprintf("\xEE\xBF\x92"), '' => sprintf("\xEE\xBF\x80"), '' => sprintf("\xEF\x83\xB3"), '' => sprintf("\xEE\xBD\x89"), '' => sprintf("\xEE\xBD\x8C"), '' => sprintf("\xEE\xB5\xA5"), '' => sprintf("\xEE\xBD\x8B"), '' => sprintf("\xEE\xB5\xAD"), '' => ' ', '' => sprintf("\xEE\xBD\xB8"), '' => sprintf("\xEF\x81\xB4"), '' => sprintf("\xEF\x81\xAA"), '' => sprintf("\xEE\xBD\x83"), '' => sprintf("\xEE\xBF\x8A"), '' => sprintf("\xEE\xB5\xBD"), '' => sprintf("\xEF\x81\xB5"), '' => sprintf("\xEE\xBD\x99"), '' => '禁', '' => sprintf("\xEE\xB1\x9D"), '' => '合', '' => sprintf("\xEE\xB1\x9C"), '' => sprintf("\xEE\xB5\xBE"), '' => sprintf("\xEE\xB6\x80"), '' => sprintf("\xEE\xB1\x93"), '' => sprintf("\xEE\xB6\x81"), '' => sprintf("\xEF\x83\xAD"), '' => sprintf("\xEE\xBF\xAC"), '' => sprintf("\xEE\xBE\xAB"), '' => sprintf("\xEE\xBE\xBD"), '' => sprintf("\xEE\xB3\xB6"), '' => sprintf("\xEE\xB2\x8D"), '' => sprintf("\xEE\xB6\x82"), '' => sprintf("\xEE\xBE\xA7"), '' => sprintf("\xEE\xBE\xA3"), '' => sprintf("\xEE\xBE\xAE"), '' => sprintf("\xEE\xBE\xA9"), '' => sprintf("\xEE\xB1\xAA"), '' => sprintf("\xEE\xB2\x88"), '' => sprintf("\xEE\xB2\x83"), '' => sprintf("\xEE\xB6\x83"), '' => sprintf("\xEE\xBE\xB9"), '' => sprintf("\xEE\xBE\xB5"), '' => sprintf("\xEE\xBD\xB2"), '' => sprintf("\xEE\xB2\xA1"), '' => sprintf("\xEE\xB6\x85"), '' => sprintf("\xEE\xBE\xB1"), '' => sprintf("\xEE\xB5\x8C"), '' => sprintf("\xEE\xBE\x9A"), '' => sprintf("\xEF\x83\xB5") ); // 変換処理 $output = strtr($input, $emoji_i2ez); return $output; } /** * 絵文字変換(iモード→ソフトバンク) * * iモード用からソフトバンク用に絵文字を変換する * * @param string $input 変換対象の文字列 * * @return string 変換後の文字列 */ function emoji_i2sb($input) { $emoji_i2sb = array( ''=>'$Gj', ''=>'$Gi', ''=>'$Gk', ''=>'$Gh', ''=>'$E]', ''=>'$Pc', ''=>'$Pc', ''=>'$P\', ''=>'$F_', ''=>'$F`', ''=>'$Fa', ''=>'$Fb', ''=>'$Fc', ''=>'$Fd', ''=>'$Fe', ''=>'$Ff', ''=>'$Fg', ''=>'$Fh', ''=>'$Fi', ''=>'$Fj', ''=>'$El', ''=>'$PK', ''=>'$G4', ''=>'$G5', ''=>'$G8', ''=>'$G3', ''=>'$PJ', ''=>'$ER', ''=>'$G*', ''=>'$G>', ''=>'$PT', ''=>'$PU', ''=>'$PN', ''=>'$Ez', ''=>'$Ey', ''=>'$F"', ''=>'$G=', ''=>'$GV', ''=>'$GX', ''=>'$Es', ''=>'$Eu', ''=>'$Em', ''=>'$Et', ''=>'$Ex', ''=>'$Ev', ''=>'$GZ', ''=>'$Eo', ''=>'$En', ''=>'$PH', ''=>'$Gc', ''=>'$Ge', ''=>'$Gd', ''=>'$Gg', ''=>'$E@', ''=>'$E^', ''=>'$O3', ''=>'$G\', ''=>'$G]', ''=>'$FV', ''=>'$ED', ''=>'$O*', ''=>'$Q"', ''=>'$Q#', ''=>'$PI', ''=>'$EE', ''=>'$O.', ''=>'$F(', ''=>'$G(', ''=>'$OC', ''=>'$Eh', ''=>'$O4', ''=>'$E2', ''=>'$Ok', ''=>'$G)', ''=>'$G*', ''=>'$O!', ''=>'$EJ', ''=>'$EK', ''=>'$EF', ''=>'$F,', ''=>'$F.', ''=>'$F-', ''=>'$F/', ''=>'$P9', ''=>'$P;', ''=>'$G0', ''=>'$G1', ''=>'$G2', ''=>'$FX', ''=>'$FW', ''=>'$QV', ''=>'$G\'', ''=>'$Q9', ''=>'$F*', ''=>'$Gl', ''=>'$Gl', ''=>'$Gl', ''=>'$Gl', ''=>'$Gl', ''=>'$Gr', ''=>'$Go', ''=>'$G<', ''=>'$GS', ''=>'$FY', ''=>'$OD', ''=>'$F9', ''=>'$O!', ''=>'$F!', ''=>'$E?', ''=>'$Pk', ''=>'$FQ', ''=>'$FO', ''=>'$FN', ''=>'$GF', ''=>'$E$', ''=>'$E"', ''=>'$G+', ''=>'$QX', ''=>'$QY', ''=>'$E#', ''=>'$Ft', ''=>'$Fs', ''=>'$EO', ''=>'$F6', ''=>'$FI', ''=>'$G_', ''=>'$FZ', ''=>'$FK', ''=>'$E4', ''=>'$F2', ''=>'$Ec', ''=>'$F1', ''=>'$F0', ''=>'$G@', ''=>'$F<', ''=>'$F=', ''=>'$F>', ''=>'$F?', ''=>'$F@', ''=>'$FA', ''=>'$FB', ''=>'$FC', ''=>'$FD', ''=>'$FE', ''=>'$OG', ''=>'$OH', ''=>'$GC', ''=>'$OJ', ''=>'$P5', ''=>'$P6', ''=>'$P#', ''=>'$P\'', ''=>'$P&', ''=>'$FV', ''=>'$G^', ''=>'$EC', ''=>'$F$', ''=>'$P<', ''=>'$ON', ''=>'$E/', ''=>'$OT', ''=>'$G-', ''=>'$O1', ''=>'$OF', ''=>'$FX', ''=>'$E\', ''=>'$GA', ''=>'$OV', ''=>'$OW', ''=>'$OP', ''=>'$OQ', ''=>'$E(', ''=>'$OP', ''=>'$EL', ''=>'$QM', ''=>'$Fm', ''=>'$Fu', ''=>'$Fu', ''=>'$G&', ''=>'$Ei', ''=>'$O<', ''=>'$O9', ''=>'$G3', ''=>'$OE', ''=>'$Q$', ''=>'$EO', ''=>'$G,', ''=>'$E!', ''=>'$E6', ''=>'$O!', ''=>'$E.', ''=>'$GT', ''=>'$GL', ''=>'$EV', ''=>'$OX', ''=>'$GM', ''=>'$P.', ''=>'$P*', ''=>'$P2', ''=>'$P!', ''=>'$P6', ''=>'$P*', ''=>'$P7', ''=>'$G.', ''=>'$P)', ''=>'$P%', ''=>'$P-', ''=>'$P&', ''=>'$Gp', ''=>'$P1', ''=>'$P3', ''=>'$OS', ''=>'$Ed', ''=>'$Fn', ''=>'$QW', ''=>'$E5', ''=>'$O5', ''=>'$OR', ''=>'$Fo', ''=>'$Fr', ''=>'$OS', ''=>'$FK', ''=>'$O-', ''=>'$FJ', ''=>'$FT', ''=>'$FR', ''=>'$Ew', ''=>'$P^', ''=>'$G[', ''=>'$E0', ''=>'$Og', ''=>'$O$', ''=>'$Of', ''=>'$Oe', ''=>'$O\'', ''=>'$E8', ''=>'$GP', ''=>'$Ob', ''=>'$Gf', ''=>'$O+', ''=>'$O`', ''=>'$OY', ''=>'$QB', ''=>'$QC', ''=>'$Gu', ''=>'$G9', ''=>'$Gv', ''=>'$P$', ''=>'$G:', ''=>'$E+', ''=>'$Gd', ''=>'$P+' ); // 変換処理 $output = strtr($input, $emoji_i2sb); return $output; } } // Copyright 2009 Google Inc. All Rights Reserved. function googleAnalyticsGetImageUrl() { //自サイトのために改造 //global $GA_ACCOUNT, $GA_PIXEL; $GA_ACCOUNT = "MO-5466026-14"; $GA_PIXEL = "ga.php"; //$url = ""; $url = "/m/"; $url .= $GA_PIXEL . "?"; $url .= "utmac=" . $GA_ACCOUNT; $url .= "&utmn=" . rand(0, 0x7fffffff); $referer = $_SERVER["HTTP_REFERER"]; $query = $_SERVER["QUERY_STRING"]; $path = $_SERVER["REQUEST_URI"]; if (empty($referer)) { $referer = "-"; } $url .= "&utmr=" . urlencode($referer); if (!empty($path)) { $url .= "&utmp=" . urlencode($path); } $url .= "&guid=ON"; return str_replace("&", "&", $url); } ?>