オープンソース・ソフトウェアの開発とダウンロード

CVS リポジトリの参照

Contents of /pukiwiki/pukiwiki/i_mode.ini.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download) (as text)
Mon Jul 5 12:13:21 2004 UTC (19 years, 10 months ago) by henoheno
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
File MIME type: application/x-httpd-php
FILE REMOVED
i_mode.ini.php + jphone.ini.php + future phones and PDAs = keitai.ini.php

1 <?php
2 /////////////////////////////////////////////////
3 // PukiWiki - Yet another WikiWikiWeb clone.
4 //
5 // $Id: i_mode.ini.php,v 1.6 2004/07/04 11:37:33 henoheno Exp $
6 //
7 // PukiWiki setting file (user agent:DoCoMo)
8
9 /////////////////////////////////////////////////
10 // スキンファイルの場所
11 define('SKIN_FILE',SKIN_DIR.'keitai.skin.'.LANG.'.php');
12
13 /////////////////////////////////////////////////
14 // 雛形とするページの読み込みを表示させる
15 $load_template_func = 0;
16
17 /////////////////////////////////////////////////
18 // 検索文字列を色分けする
19 $search_word_color = 0;
20
21 /////////////////////////////////////////////////
22 // 一覧ページに頭文字インデックスをつける
23 $list_index = 0;
24
25 /////////////////////////////////////////////////
26 // リスト構造の左マージン
27 $_ul_left_margin = 0; // リストと画面左端との間隔(px)
28 $_ul_margin = 16; // リストの階層間の間隔(px)
29 $_ol_left_margin = 0; // リストと画面左端との間隔(px)
30 $_ol_margin = 16; // リストの階層間の間隔(px)
31 $_dl_left_margin = 0; // リストと画面左端との間隔(px)
32 $_dl_margin = 16; // リストの階層間の間隔(px)
33 $_list_pad_str = '';
34
35 /////////////////////////////////////////////////
36 // テキストエリアのカラム数
37 $cols = 22;
38
39 /////////////////////////////////////////////////
40 // テキストエリアの行数
41 $rows = 5;
42
43 /////////////////////////////////////////////////
44 // 大・小見出しから目次へ戻るリンクの文字
45 $top = '';
46
47 /////////////////////////////////////////////////
48 // 関連ページ表示のページ名の区切り文字
49 $related_str = "\n ";
50
51 /////////////////////////////////////////////////
52 // 整形ルールでの関連ページ表示のページ名の区切り文字
53 $rule_related_str = "</li>\n<li>";
54
55 /////////////////////////////////////////////////
56 // 水平線のタグ
57 $hr = '<hr>';
58
59 /////////////////////////////////////////////////
60 // 文末の注釈の直前に表示するタグ
61 $note_hr = '<hr>';
62
63 /////////////////////////////////////////////////
64 // 関連するリンクを常に表示する(負担がかかります)
65 $related_link = 0;
66
67 /////////////////////////////////////////////////
68 // WikiName,BracketNameに経過時間を付加する
69 $show_passage = 0;
70
71 /////////////////////////////////////////////////
72 // リンク表示をコンパクトにする
73 $link_compact = 1;
74
75 /////////////////////////////////////////////////
76 // フェイスマークを使用する
77 $usefacemark = 0;
78
79 /////////////////////////////////////////////////
80 // accesskey (SKINで使用)
81 $accesskey = 'accesskey';
82
83 /////////////////////////////////////////////////
84 // ユーザ定義ルール
85 //
86 // 正規表現で記述してください。?(){}-*./+\$^|など
87 // は \? のようにクォートしてください。
88 // 前後に必ず / を含めてください。行頭指定は ^ を頭に。
89 // 行末指定は $ を後ろに。
90 ///////////////////////////////////////////////////
91 // ユーザ定義ルール(コンバート時に置換)
92 $line_rules = array(
93 "COLOR\(([^\(\)]*)\){([^}]*)}" => '<font color="$1">$2</font>',
94 "SIZE\(([^\(\)]*)\){([^}]*)}" => '$2',
95 "COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)" => '<font color="$1">$2</font>',
96 "SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)" => '$2',
97 "%%%(?!%)((?:(?!%%%).)*)%%%" => '<ins>$1</ins>',
98 "%%(?!%)((?:(?!%%).)*)%%" => '<del>$1</del>',
99 "'''(?!')((?:(?!''').)*)'''" => '<em>$1</em>',
100 "''(?!')((?:(?!'').)*)''" => '<strong>$1</strong>',
101 '&amp;br;' => '<br>',
102 );
103
104 /////////////////////////////////////////////////
105 // max_size (SKINで使用)
106
107 $max_size = 5; //KByte (default)
108
109 $matches = array();
110 if (preg_match('#[/\(]c([0-9]+)[/\);]#', $user_agent['agent'], $matches)) {
111 $max_size = $matches[1];
112 }
113 switch ($user_agent['name'] . '/' . $user_agent['vers']) {
114 case 'DoCoMo/2.0': $max_size = min($max_size, 30); break;
115 }
116 unset($matches);
117
118 /////////////////////////////////////////////////
119 // $scriptを短縮
120 if (preg_match('#([^/]+)$#',$script,$matches)) {
121 $script = $matches[1];
122 }
123 ?>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26