15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
| // 各機能のメインスイッチ (On = 1, Off = 0)
$this->use_set_query_words = 0; // 検索ワードを定数にセット
$this->use_words_highlight = 0; // 検索ワードをハイライト表示
$this->use_proxy_check = 0; // POST時プロキシチェックする
$this->use_dependence_filter = 0; // 機種依存文字フィルター
$this->use_post_spam_filter = 0; // POST SPAM フィルター
$this->post_spam_trap_set = 0; // 無効フィールドのBot罠を自動で仕掛ける
$this->use_k_tai_render = 0; // 携帯対応レンダーを有効にする
$this->use_smart_redirect = 0; // スマートリダイレクトを有効にする
// 各種設定
$this->configEncoding = 'EUC-JP'; // このファイルの文字コード
$this->encodehint_word = 'ぷ'; // POSTエンコーディング判定用文字
$this->encodehint_name = 'HypEncHint'; // POSTエンコーディング判定用 Filed name
$this->detect_order = 'ASCII, JIS, UTF-8, eucJP-win, EUC-JP, SJIS-win, SJIS';
$this->msg_words_highlight = 'これらのキーワードがハイライトされています';
$this->no_proxy_check = '/^(127\.0\.0\.1|192\.168\.1\.)/'; // 除外IP
$this->msg_proxy_check = 'Can not post from public proxy.';
// POST SPAM
$this->use_mail_notify = 1; // POST SPAM メール通知 0:なし, 1:SPAM判定のみ, 2:すべて
$this->send_mail_interval = 60; // まとめ送りのインターバル(分) (0 で随時送信)
$this->post_spam_a = 1; // <a> タグ 1個あたりのポイント
$this->post_spam_bb = 1; // BBリンク 1個あたりのポイント
$this->post_spam_url = 1; // URL 1個あたりのポイント
$this->post_spam_host = 31; // Spam HOST の加算ポイント
$this->post_spam_word = 10; // Spam Word の加算ポイント
$this->post_spam_filed = 51; // Spam 無効フィールドの加算ポイント
$this->post_spam_trap = '___url';// Spam 罠用無効フィールド名
$this->post_spam_user = 50; // POST SPAM 閾値: ログインユーザー
$this->post_spam_guest = 15; // POST SPAM 閾値: ゲスト
$this->post_spam_badip = 100; // アクセス拒否リストへ登録する閾値
// POST SPAM のポイント加算設定
$this->post_spam_rules = array(
// 同じURLが1行に3回 11pt
"/((?:ht|f)tps?:\/\/[!~*'();\/?:\@&=+\$,%#\w.-]+).+?\\1.+?\\1/i" => 11,
// 65文字以上の英数文字のみで構成されている 15pt
// '/^[\x00-\x7f\s]{65,}$/' => 15,
// 無効な文字コードがある 31pt
'/[\x00-\x08\x11-\x12\x14-\x1f\x7f]+/' => 31
);
// 無効なフィールド定義
$this->ignore_fileds = array(
// 'url' => array('newbb/post.php', 'comment_post.php'),
);
// 検索ワード定数名
$this->q_word = 'XOOPS_QUERY_WORD'; // 検索ワード
$this->q_word2 = 'XOOPS_QUERY_WORD2'; // 検索ワード分かち書き
$this->se_name = 'XOOPS_SEARCH_ENGINE_NAME'; // 検索元名
// KAKASI での分かち書き結果のキャッシュ先
$this->kakasi_cache_dir = XOOPS_ROOT_PATH.'/cache2/kakasi/';
// スマートリダイレクトのポップアップ最短秒数
$this->smart_redirect_min_sec = 5;
/////////////////////////
// 携帯対応レンダー設定
// 携帯端末判定用 UA 正規表現
$this->k_tai_conf['ua_regex'] = '#(?:SoftBank|Vodafone|J-PHONE|DoCoMo|UP\.Browser|DDIPOCKET|WILLCOM)#';
// HTML再構築用タグ設定
$this->k_tai_conf['rebuilds'] = array(
'headerlogo' => array( 'above' => '<center>',
'below' => '</center>'),
'headerbar' => array( 'above' => '<hr>',
'below' => ''),
'breadcrumbs' => array( 'above' => '',
'below' => ''),
'leftcolumn' => array( 'above' => '<hr>',
'below' => ''),
'centerCcolumn' => array( 'above' => '<hr>',
'below' => ''),
'centerLcolumn' => array( 'above' => '',
'below' => ''),
'centerRcolumn' => array( 'above' => '',
'below' => ''),
'content' => array( 'above' => '<hr>',
'below' => ''),
'rightcolumn' => array( 'above' => '<hr>',
'below' => ''),
'footerbar' => array( 'above' => '',
'below' => ''),
'easylogin' => array( 'above' => '<div style="text-align:center;background-color:#DBBCA6;font-size:small">[ ',
'below' => ' ]</div>'),
'redirectMessage'=> array( 'above' => '<marquee loop="3">',
'below' => '</marquee>'),
'blockMenu' => array( 'above' => '<div style="background-color:#E0EEEE;font-size:small">',
'below' => '</div>'),
'blockContent' => array( 'above' => '',
'below' => ''),
'toMain' => array( 'above' => '<hr /><div style="text-align:center">',
'below' => '</div>'),
'subMenu' => array( 'above' => '<div id="submenu" style="background-color:#ccccff"><h2 style="text-align:center">サブメニュー</h2></div>',
'below' => ''),
);
// 携帯用XOOPSテーマセット
$this->k_tai_conf['themeSet'] = 'ktai_default';
// 携帯用XOOPSテンプレートセット
$this->k_tai_conf['templateSet'] = '';
// 使用テンプレート
$this->k_tai_conf['template'] = 'default';
// <body> attributes
$this->k_tai_conf['bodyAttribute'] = '';
// 無効にするブロックの bid (Block Id) (無指定:フィルタリングしない)
$this->k_tai_conf['disabledBlockIds'] = array();
// 有効にするブロックの bid (Block Id) (無指定:フィルタリングしない)
$this->k_tai_conf['limitedBlockIds'] = array();
// 常に表示するブロックの bid (Block Id) (メインメニューなど)
$this->k_tai_conf['showBlockIds'] = array();
// インラインイメージのリサイズ最大ピクセル
$this->k_tai_conf['pictSizeMax'] = '200';
// インラインイメージを表示するホスト名(後方一致)
$this->k_tai_conf['showImgHosts'] = array('amazon.com', 'yimg.jp', 'yimg.com', 'ad.jp.ap.valuecommerce.com', 'ad.jp.ap.valuecommerce.com', 'ba.afl.rakuten.co.jp', 'assoc-amazon.jp', 'ad.linksynergy.com', 'google.com');
// 直接画像を表示するホスト名(後方一致)
$this->k_tai_conf['directImgHosts'] = array('google-analytics.com');
// リダイレクトスクリプトを経由しないホスト名(後方一致)
$this->k_tai_conf['directLinkHosts'] = array('amazon.co.jp', 'ck.jp.ap.valuecommerce.com', 'afl.rakuten.co.jp', 'maps.google.com');
// 外部リンク用リダイレクトスクリプト
$this->k_tai_conf['redirect'] = XOOPS_URL . '/class/hyp_common/gate.php?way=redirect&_d=0&_u=0&_x=0&l=';
// Easy login を有効にする
$this->k_tai_conf['easyLogin'] = 1;
// Easy login で IP アドレス帯域をチェックしない
$this->k_tai_conf['noCheckIpRange'] = 0;
// リンクメッセージ
$this->k_tai_conf['msg']['easylogin'] = '簡単ログイン';
$this->k_tai_conf['msg']['logout'] = 'ログアウト';
$this->k_tai_conf['msg']['easyloginSet'] = '簡単ログイン:設定';
$this->k_tai_conf['msg']['easyloginUnset'] = '簡単ログイン:解除';
$this->k_tai_conf['msg']['toMain'] = '本文を表示';
$this->k_tai_conf['msg']['mainMenu'] = 'メインメニュー';
$this->k_tai_conf['msg']['subMenu'] = 'サブメニュー';
// アイコン
$this->k_tai_conf['icon']['first'] = ' ';
$this->k_tai_conf['icon']['prev'] = ' ';
$this->k_tai_conf['icon']['next'] = ' ';
$this->k_tai_conf['icon']['last'] = ' ';
$this->k_tai_conf['icon']['extLink'] = ' ';
$this->k_tai_conf['icon']['hTag'] = ' ';
$this->k_tai_conf['icon']['RSS'] = ' ';
$this->k_tai_conf['icon']['toMain'] = ' ';
// style
$this->k_tai_conf['style']['highlight'] = 'background-color:#ffc0cb';
// Easy login: 設定 or 解除リンクを表示するURI(XOOPS_URL以降)とuidのGETキーと挿入位置
$this->k_tai_conf['easyLoginConfPath'] = '/userinfo.php';
$this->k_tai_conf['easyLoginConfuid'] = 'uid';
$this->k_tai_conf['easyLoginConfInsert'] = 'content';
// GET query keys
$this->k_tai_conf['getKeys']['page'] = '_p_';
$this->k_tai_conf['getKeys']['hash'] = '_h_';
$this->k_tai_conf['getKeys']['block'] = '_b_';
//// Google Adsense 設定
// config ファイルのパス
$this->k_tai_conf['googleAdsense']['config'] = '';
// 挿入場所 ('header', 'body', 'footer') の下、無指定時はページ最上部
$this->k_tai_conf['googleAdsense']['below'] = '';
// Google Analytics 設定
$this->k_tai_conf['googleAnalyticsId'] = '';
// 携帯対応レンダー設定 以上
/////////////////////////////
|