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

CVS リポジトリの参照

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

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Feb 26 01:28:53 2003 UTC (21 years, 2 months ago) by panda
Branch: MAIN
Changes since 1.1: +6 -2 lines
File MIME type: application/x-httpd-php
separate each (ul/ol/dl)  list margin size.

1 <?php
2 /////////////////////////////////////////////////
3 // PukiWiki - Yet another WikiWikiWeb clone.
4 //
5 // $Id$
6 //
7 // PukiWiki setting file (user agent:DoCoMo)
8
9 /////////////////////////////////////////////////
10 // スキンファイルの場所
11 define('SKIN_FILE','./skin/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 '&amp;(#[0-9]+|#x[0-9a-f]+|[0-9a-zA-Z]+);' => '&$1;',
103 "\r" => "<br>", /* 行末にチルダは改行 */
104 '#related' => '<del>#related</del>',
105 );
106
107 /////////////////////////////////////////////////
108 // max_size (SKINで使用)
109 $max_size = 4; //KByte
110 if ($user_agent['matches'][1] == '1.0') {
111 $max_size = $user_agent['matches'][2];
112 }
113 else if ($user_agent['matches'][1] == '2.0') {
114 $max_size = min($user_agent['matches'][2],30);
115 }
116
117 /////////////////////////////////////////////////
118 // $scriptを短縮
119 if (preg_match('#([^/]+)$#',$script,$matches)) {
120 $script = $matches[1];
121 }
122 ?>

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