/
home
/
tuki100
/
yanaq.com
/
public_html
/
Upload File
New Folder
New File
HOME
<?php // PukiWiki - Yet another WikiWikiWeb clone. // $Id: keitai.ini.php,v 1.24 2005/07/05 13:19:36 henoheno Exp $ // Copyright (C) // 2002-2005 PukiWiki Developers Team // 2001-2002 Originally written by yu-ji // License: GPL v2 or (at your option) any later version // // PukiWiki setting file (Cell phones, PDAs and other thin clients) ///////////////////////////////////////////////// // 携帯・PDA専用のページを初期ページとして指定する // $defaultpage = 'm'; ///////////////////////////////////////////////// // スキンファイルの場所 define('SKIN_FILE', DATA_HOME . SKIN_DIR . 'keitai.skin.php'); ///////////////////////////////////////////////// // 雛形とするページの読み込みを可能にする $load_template_func = 0; ///////////////////////////////////////////////// // 検索文字列を色分けする $search_word_color = 0; ///////////////////////////////////////////////// // 一覧ページに頭文字インデックスをつける $list_index = 0; ///////////////////////////////////////////////// // リスト構造の左マージン $_ul_left_margin = 0; // リストと画面左端との間隔(px) $_ul_margin = 16; // リストの階層間の間隔(px) $_ol_left_margin = 0; // リストと画面左端との間隔(px) $_ol_margin = 16; // リストの階層間の間隔(px) $_dl_left_margin = 0; // リストと画面左端との間隔(px) $_dl_margin = 16; // リストの階層間の間隔(px) $_list_pad_str = ''; ///////////////////////////////////////////////// // 大・小見出しから目次へ戻るリンクの文字 $top = ''; ///////////////////////////////////////////////// // 添付ファイルの一覧を常に表示する (負担がかかります) // ※keitaiスキンにはこの一覧を表示する機能がありません $attach_link = 0; ///////////////////////////////////////////////// // 関連するページのリンク一覧を常に表示する(負担がかかります) // ※keitaiスキンにはこの一覧を表示する機能がありません $related_link = 0; // リンク一覧の区切り文字 // ※上同 $related_str = "\n "; // (#relatedプラグインが表示する) リンク一覧の区切り文字 $rule_related_str = "</li>\n<li>"; ///////////////////////////////////////////////// // 水平線のタグ $hr = '<hr>'; ///////////////////////////////////////////////// // 脚注機能関連 // 脚注のアンカーを相対パスで表示する (0 = 絶対パス) // * 相対パスの場合、以前のバージョンのOperaで問題になることがあります // * 絶対パスの場合、calendar_viewerなどで問題になることがあります // (詳しくは: BugTrack/698) define('PKWK_ALLOW_RELATIVE_FOOTNOTE_ANCHOR', 1); // 文末の注釈の直前に表示するタグ $note_hr = '<hr>'; ///////////////////////////////////////////////// // WikiName,BracketNameに経過時間を付加する $show_passage = 0; ///////////////////////////////////////////////// // リンク表示をコンパクトにする // * ページに対するハイパーリンクからタイトルを外す // * Dangling linkのCSSを外す $link_compact = 1; ///////////////////////////////////////////////// // フェイスマークを絵文字に変換する (※i-mode, Vodafone, EzWebなど携帯電話限定) $usefacemark = 1; ///////////////////////////////////////////////// // accesskey (SKINで使用) $accesskey = 'accesskey'; ///////////////////////////////////////////////// // $scriptを短縮 if (preg_match('#([^/]+)$#', $script, $matches)) { $script = $matches[1]; } ///////////////////////////////////////////////// // ブラウザ調整前のデフォルト値 // max_size (SKINで使用) $max_size = 5; // SKINで使用, KByte // cols: テキストエリアのカラム数 rows: 行数 $cols = 22; $rows = 5; // i_mode ///////////////////////////////////////////////// // ブラウザに合わせた調整 $ua_name = $user_agent['name']; $ua_vers = $user_agent['vers']; $ua_agent = $user_agent['agent']; $matches = array(); // Browser-name only switch ($ua_name) { // NetFront / Compact NetFront // DoCoMo Net For MOBILE: iモード対応HTMLの考え方: ユーザエージェント // http://www.nttdocomo.co.jp/mc-user/i/tag/imodetag.html // DDI POCKET: 機種ラインナップ: AirH"PHONE用ホームページの作成方法 // http://www.ddipocket.co.jp/p_s/products/airh_phone/homepage.html case 'NetFront': case 'CNF': case 'DoCoMo': case 'Opera': // Performing CNF compatible if (preg_match('#\b[cC]([0-9]+)\b#', $ua_agent, $matches)) { $max_size = $matches[1]; // Cache max size } $cols = 22; $rows = 5; // i_mode break; // Vodafone (ex. J-PHONE) // ボーダフォンライブ!向けウェブコンテンツ開発ガイド [概要編] (Version 1.2.0 P13) // http://www.dp.j-phone.com/dp/tool_dl/download.php?docid=110 // 技術資料: ユーザーエージェントについて // http://www.dp.j-phone.com/dp/tool_dl/web/useragent.php // http://developers.softbankmobile.co.jp/dp/tech_svc/info/useragent.php case 'J-PHONE': case 'Vodafone': case 'SoftBank': case 'MOT-V980': case 'MOT-C980': $matches = array(""); preg_match('/^([0-9]+)\./', $user_agent['vers'], $matches); switch($matches[1]){ case '1': $max_size = 200; break; // 3GC type: lt 200Kbytes case '3': $max_size = 6; break; // C type: lt 6000bytes case '4': $max_size = 12; break; // P type: lt 12Kbytes case '5': $max_size = 200; break; // W type: lt 200Kbytes } $cols = 24; $rows = 20; break; // UP.Browser case 'UP.Browser': // UP.Browser for KDDI cell phones // http://www.au.kddi.com/ezfactory/tec/spec/xhtml.html ('About 9KB max') // http://www.au.kddi.com/ezfactory/tec/spec/4_4.html (User-agent strings) if (preg_match('#^KDDI#', $ua_agent)) $max_size = 9; break; } // Browser-name + version switch ("$ua_name/$ua_vers") { // Restriction For imode: // http://www.nttdocomo.co.jp/mc-user/i/tag/s2.html case 'DoCoMo/2.0': $max_size = min($max_size, 30); break; } ///////////////////////////////////////////////// // ユーザ定義ルール // // 正規表現で記述してください。?(){}-*./+\$^|など // は \? のようにクォートしてください。 // 前後に必ず / を含めてください。行頭指定は ^ を頭に。 // 行末指定は $ を後ろに。 // ユーザ定義ルール(コンバート時に置換) $line_rules = array( 'COLOR\(([^\(\)]*)\){([^}]*)}' => '<font color="$1">$2</font>', 'SIZE\(([^\(\)]*)\){([^}]*)}' => '$2', // Disabled 'COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)' => '<font color="$1">$2</font>', 'SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)' => '$2', // Disabled '%%%(?!%)((?:(?!%%%).)*)%%%' => '<ins>$1</ins>', '%%(?!%)((?:(?!%%).)*)%%' => '<del>$1</del>', "'''(?!')((?:(?!''').)*)'''" => '<marquee>$1</marquee>', "''(?!')((?:(?!'').)*)''" => '<b>$1</b>', "##(?!')((?:(?!'').)*)##" => '<u>$1</u>', ); ///////////////////////////////////////////////// // 携帯電話にあわせたフェイスマーク // $usefacemark = 1ならフェイスマークが置換されます // 文章内に' XD'などがあった場合にfacemarkに置換されてしまうため、 // 必要のない方は $usefacemarkを0にしてください。 // Browser-name only $facemark_rules = array(); switch ($ua_name) { // Graphic icons for imode HTML 4.0, with Shift-JIS text output // http://www.nttdocomo.co.jp/mc-user/i/tag/emoji/e1.html // http://www.nttdocomo.co.jp/mc-user/i/tag/emoji/list.html case 'DoCoMo': $facemark_rules = array( // Face marks '\s(\:\))' => '秊', // smile '\s(\:D)' => '秊', // bigsmile '\s(\:p)' => '', // huh '\s(\:d)' => '', // huh '\s(XD)' => '聯', // oh '\s(X\()' => '聯', // oh '\s(;\))' => '', // wink '\s(;\()' => '練', // sad '\s(\:\()' => '練', // sad '&(smile);' => '秊', '&(bigsmile);'=> '秊', '&(huh);' => '', '&(oh);' => '聯', '&(wink);' => '', '&(sad);' => '練', '&(heart);' => '撚', '&(worried);'=> '', // Face marks, Japanese style '\s(\(\^\^\))' => '秊', // smile '\s(\(\^-\^)' => '秊', // smile '\s(\(\.\.;)' => '聯', // oh '\s(\(\^_-\))' => '', // wink '\s(\(--;)' => '練', // sad '\s(\(\^\^;\))' => '', // worried '\s(\(\^\^;)' => '', // worried // Push buttons, 0-9 and sharp '&(pb1);' => '驪', '&(pb2);' => '麗', '&(pb3);' => '黎', '&(pb4);' => '力', '&(pb5);' => '曆', '&(pb6);' => '歷', '&(pb7);' => '轢', '&(pb8);' => '年', '&(pb9);' => '憐', '&(pb0);' => '戀', '&(pb#);' => '礪', // Others '&(zzz);' => '簾', '&(man);' => '凌', '&(clock);' => '丹', '&(mail);' => '亮', '&(phone);' => '', '&(fax);' => '若', ); break; // Graphic icons for Vodafone (ex. J-PHONE) cell phones // http://www.dp.j-phone.com/dp/tool_dl/web/picword_top.php case 'J-PHONE': case 'Vodafone': case 'SoftBank': case 'MOT-V980': case 'MOT-C980': $facemark_rules = array( // Face marks '\s(\:\))' => chr(27).'$Gv'.chr(15), // '', // smile '\s(\:D)' => chr(27).'$Gv'.chr(15), // '', // bigsmile => smile '\s(\:p)' => chr(27).'$E%'.chr(15), // '', // huh '\s(\:d)' => chr(27).'$E%'.chr(15), // '', // huh '\s(XD)' => chr(27).'$Gx'.chr(15), // '', // oh '\s(X\()' => chr(27).'$Gx'.chr(15), // '', // oh '\s(;\))' => chr(27).'$E&'.chr(15), // '', // winkじゃないけどね(^^; (※目がハート) '\s(;\()' => chr(27).'$E&'.chr(15), // '', // sad '\s(\:\()' => chr(27).'$Gy'.chr(15), // '', // sad '&(smile);' => chr(27).'$Gv'.chr(15), // '', '&(bigsmile);'=> chr(27).'$Gw'.chr(15), // '', '&(huh);' => chr(27).'$E%'.chr(15), // '', '&(oh);' => chr(27).'$Gx'.chr(15), // '', '&(wink);' => chr(27).'$E&'.chr(15), // '', // winkじゃないけどね(^^; (※目がハート) '&(sad);' => chr(27).'$Gy'.chr(15), // '', '&(heart);' => chr(27).'$GB'.chr(15), // '', '&(worried);'=> chr(27).'$E('.chr(15), // '', // Face marks, Japanese style '\s(\(\^\^\))' => chr(27).'$Gv'.chr(15), // smile '\s(\(\^-\^)' => chr(27).'$Gv'.chr(15), // smile '\s(\(\.\.;)' => chr(27).'$Gx'.chr(15), // oh '\s(\(\^_-\))' => chr(27).'$E&'.chr(15), // winkじゃないけどね(^^; (※目がハート) '\s(\(--;)' => chr(27).'$E&'.chr(15), // sad '\s(\(\^\^;\))' => chr(27).'$E('.chr(15), // worried '\s(\(\^\^;)' => chr(27).'$E('.chr(15), // worried // Push buttons, 0-9 and sharp '&(pb1);' => chr(27).'$F<'.chr(15), // '', '&(pb2);' => chr(27).'$F='.chr(15), // '', '&(pb3);' => chr(27).'$F>'.chr(15), // '', '&(pb4);' => chr(27).'$F?'.chr(15), // '', '&(pb5);' => chr(27).'$F@'.chr(15), // '', '&(pb6);' => chr(27).'$FA'.chr(15), // '', '&(pb7);' => chr(27).'$FB'.chr(15), // '', '&(pb8);' => chr(27).'$FC'.chr(15), // '', '&(pb9);' => chr(27).'$FD'.chr(15), // '', '&(pb0);' => chr(27).'$FE'.chr(15), // '', '&(pb#);' => chr(27).'$F0'.chr(15), // '礪', // Others '&(zzz);' => chr(27).'$E\\'.chr(15), '&(man);' => chr(27).'$G!'.chr(15), '&(clock);' => chr(27).'$GF'.chr(15), // '', '&(mail);' => chr(27).'$Fv'.chr(15), '&(phone);' => chr(27).'$G)'.chr(15), '&(fax);' => chr(27).'$G+'.chr(15), ); break; case 'UP.Browser': // UP.Browser for KDDI cell phones' built-in icons // http://www.au.kddi.com/ezfactory/tec/spec/3.html if (preg_match('#^KDDI#', $ua_agent)) { $facemark_rules = array( // Face marks '\s(\:\))' => '<img localsrc="68">', // smile '\s(\:D)' => '<img localsrc="257">', // bigsmile '\s(\:p)' => '<img localsrc="264">', // huh '\s(\:d)' => '<img localsrc="264">', // huh '\s(XD)' => '<img localsrc="260">', // oh '\s(X\()' => '<img localsrc="260">', // oh '\s(;\))' => '<img localsrc="348">', // wink '\s(;\()' => '<img localsrc="259">', // sad '\s(\:\()' => '<img localsrc="259">', // sad '&(smile);' => '<img localsrc="68">', '&(bigsmile);'=> '<img localsrc="257">', '&(huh);' => '<img localsrc="264">', '&(oh);' => '<img localsrc="260">', '&(wink);' => '<img localsrc="348">', '&(sad);' => '<img localsrc="259">', '&(heart);' => '<img localsrc="415">', '&(worried);'=> '<img localsrc="351">', // Face marks, Japanese style '\s(\(\^\^\))' => '<img localsrc="68">', // smile '\s(\(\^-\^)' => '<img localsrc="68">', // smile '\s(\(\.\.;)' => '<img localsrc="260">', // oh '\s(\(\^_-\))' => '<img localsrc="348">', // wink '\s(\(--;)' => '<img localsrc="259">', // sad '\s(\(\^\^;\))' => '<img localsrc="351">', // worried '\s(\(\^\^;)' => '<img localsrc="351">', // worried // Push buttons, 0-9 and sharp '&(pb1);' => '<img localsrc="180">', '&(pb2);' => '<img localsrc="181">', '&(pb3);' => '<img localsrc="182">', '&(pb4);' => '<img localsrc="183">', '&(pb5);' => '<img localsrc="184">', '&(pb6);' => '<img localsrc="185">', '&(pb7);' => '<img localsrc="186">', '&(pb8);' => '<img localsrc="187">', '&(pb9);' => '<img localsrc="188">', '&(pb0);' => '<img localsrc="325">', '&(pb#);' => '<img localsrc="818">', // Others '&(zzz);' => '<img localsrc="261">', '&(man);' => '<img localsrc="80">', // Face of male '&(clock);' => '<img localsrc="46">', '&(mail);' => '<img localsrc="108">', '&(phone);' => '<img localsrc="85">', '&(fax);' => '<img localsrc="166">', // A FAX ); } break; } //unset($matches, $ua_name, $ua_vers, $ua_agent, $special_rules); unset($matches, $ua_vers, $ua_agent, $special_rules); ?>