8: 2008-06-24 (火) 00:14:30 nao-pon |
9: 2008-07-17 (木) 10:48:01 nao-pon |
| -設定箇所は以下の部分です。 | | -設定箇所は以下の部分です。 |
| #code(php,15-){{ | | #code(php,15-){{ |
- | // 各機能のメインスイッチ (On = 1, Off = 0) | + | // 各機能のメインスイッチ (On = 1, Off = 0) |
- | $this->use_set_query_words = 0; // 検索ワードを定数にセット | + | $this->use_set_query_words = 0; // 検索ワードを定数にセット |
- | $this->use_words_highlight = 0; // 検索ワードをハイライト表示 | + | $this->use_words_highlight = 0; // 検索ワードをハイライト表示 |
- | $this->use_proxy_check = 0; // POST時プロキシチェックする | + | $this->use_proxy_check = 0; // POST時プロキシチェックする |
- | $this->use_dependence_filter = 0; // 機種依存文字フィルター | + | $this->use_dependence_filter = 0; // 機種依存文字フィルター |
- | $this->use_post_spam_filter = 0; // POST SPAM フィルター | + | $this->use_post_spam_filter = 0; // POST SPAM フィルター |
- | $this->post_spam_trap_set = 0; // 無効フィールドのBot罠を自動で仕掛ける | + | $this->post_spam_trap_set = 0; // 無効フィールドのBot罠を自動で仕掛ける |
| + | $this->use_k_tai_render = 0; // 携帯対応レンダーを有効にする |
| + | $this->use_smart_redirect = 0; // スマートリダイレクトを有効にする |
| | | |
- | // 各種設定 | + | // 各種設定 |
- | $this->configEncoding = 'EUC-JP'; // このファイルの文字コード | + | $this->configEncoding = 'EUC-JP'; // このファイルの文字コード |
| | | |
- | $this->encodehint_word = 'ぷ'; // POSTエンコーディング判定用文字 | + | $this->encodehint_word = 'ぷ'; // POSTエンコーディング判定用文字 |
- | $this->encodehint_name = 'HypEncHint'; // POSTエンコーディング判定用 Filed name | + | $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->msg_words_highlight = 'これらのキーワードがハイライトされています'; |
| | | |
- | $this->no_proxy_check = '/^(127\.0\.0\.1|192\.168\.1\.)/'; // 除外IP | + | $this->no_proxy_check = '/^(127\.0\.0\.1|192\.168\.1\.)/'; // 除外IP |
- | $this->msg_proxy_check = 'Can not post from public proxy.'; | + | $this->msg_proxy_check = 'Can not post from public proxy.'; |
| | | |
- | // POST SPAM | + | // POST SPAM |
- | $this->use_mail_notify = 1; // POST SPAM メール通知 0:なし, 1:SPAM判定のみ, 2:すべて | + | $this->use_mail_notify = 1; // POST SPAM メール通知 0:なし, 1:SPAM判定のみ, 2:すべて |
- | $this->post_spam_a = 1; // <a> タグ 1個あたりのポイント | + | $this->send_mail_interval = 60; // まとめ送りのインターバル(分) (0 で随時送信) |
- | $this->post_spam_bb = 1; // BBリンク 1個あたりのポイント | + | $this->post_spam_a = 1; // <a> タグ 1個あたりのポイント |
- | $this->post_spam_url = 1; // URL 1個あたりのポイント | + | $this->post_spam_bb = 1; // BBリンク 1個あたりのポイント |
- | $this->post_spam_host = 31; // Spam HOST の加算ポイント | + | $this->post_spam_url = 1; // URL 1個あたりのポイント |
- | $this->post_spam_word = 10; // Spam Word の加算ポイント | + | $this->post_spam_host = 31; // Spam HOST の加算ポイント |
- | $this->post_spam_filed = 51; // Spam 無効フィールドの加算ポイント | + | $this->post_spam_word = 10; // Spam Word の加算ポイント |
- | $this->post_spam_trap = '___url';// Spam 罠用無効フィールド名 | + | $this->post_spam_filed = 51; // Spam 無効フィールドの加算ポイント |
| + | $this->post_spam_trap = '___url';// Spam 罠用無効フィールド名 |
| | | |
- | $this->post_spam_user = 30; // POST SPAM 閾値: ログインユーザー | + | $this->post_spam_user = 50; // POST SPAM 閾値: ログインユーザー |
- | $this->post_spam_guest = 15; // POST SPAM 閾値: ゲスト | + | $this->post_spam_guest = 15; // POST SPAM 閾値: ゲスト |
- | $this->post_spam_badip = 50; // アクセス拒否リストへ登録する閾値 | + | $this->post_spam_badip = 100; // アクセス拒否リストへ登録する閾値 |
| | | |
- | // POST SPAM のポイント加算設定 | + | // POST SPAM のポイント加算設定 |
- | $this->post_spam_rules = array( | + | $this->post_spam_rules = array( |
- | // 同じURLが1行に3回 11pt | + | // 同じURLが1行に3回 11pt |
- | "/((?:ht|f)tps?:\/\/[!~*'();\/?:\@&=+\$,%#\w.-]+).+?\\1.+?\\1/i" => 11, | + | "/((?:ht|f)tps?:\/\/[!~*'();\/?:\@&=+\$,%#\w.-]+).+?\\1.+?\\1/i" => 11, |
| | | |
- | // 65文字以上の英数文字のみで構成されている 15pt | + | // 65文字以上の英数文字のみで構成されている 15pt |
- | // '/^[\x00-\x7f\s]{65,}$/' => 15, | + | // '/^[\x00-\x7f\s]{65,}$/' => 15, |
| | | |
- | // 無効な文字コードがある 31pt | + | // 無効な文字コードがある 31pt |
- | '/[\x00-\x08\x11-\x12\x14-\x1f\x7f\xff]+/' => 31 | + | '/[\x00-\x08\x11-\x12\x14-\x1f\x7f]+/' => 31 |
- | ); | + | ); |
| | | |
- | // 無効なフィールド定義 | + | // 無効なフィールド定義 |
- | $this->ignore_fileds = array( | + | $this->ignore_fileds = array( |
- | // 'url' => array('newbb/post.php', 'comment_post.php'), | + | // 'url' => array('newbb/post.php', 'comment_post.php'), |
- | ); | + | ); |
| | | |
- | // 検索ワード定数名 | + | // 検索ワード定数名 |
- | $this->q_word = 'XOOPS_QUERY_WORD'; // 検索ワード | + | $this->q_word = 'XOOPS_QUERY_WORD'; // 検索ワード |
- | $this->q_word2 = 'XOOPS_QUERY_WORD2'; // 検索ワード分かち書き | + | $this->q_word2 = 'XOOPS_QUERY_WORD2'; // 検索ワード分かち書き |
- | $this->se_name = 'XOOPS_SEARCH_ENGINE_NAME'; // 検索元名 | + | $this->se_name = 'XOOPS_SEARCH_ENGINE_NAME'; // 検索元名 |
| | | |
- | // KAKASI での分かち書き結果のキャッシュ先 | + | // KAKASI での分かち書き結果のキャッシュ先 |
- | $this->kakasi_cache_dir = XOOPS_ROOT_PATH.'/cache2/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'] = ''; |
| + | |
| + | // 携帯対応レンダー設定 以上 |
| + | ///////////////////////////// |
| }} | | }} |
| | | |
| 携帯電話用に出力を再構成する「携帯対応レンダー」機能を有効にします。 | | 携帯電話用に出力を再構成する「携帯対応レンダー」機能を有効にします。 |
| | | |
- | 設定等詳しくは、[[./HYP_K_TAI_RENDER]] をご覧ください。 | + | 設定等詳しくは、[[./KtaiRender]] をご覧ください。 |
| | | |
| [[nao-pon/blog/2008-06-17 [プリロードで携帯対応する [ 携帯対応レンダー ] ] - UsersWiki:http://xoops.hypweb.net/modules/UsersWiki/person/nao-pon/blog/2008-06-17]] に開発時の日記もあります。 | | [[nao-pon/blog/2008-06-17 [プリロードで携帯対応する [ 携帯対応レンダー ] ] - UsersWiki:http://xoops.hypweb.net/modules/UsersWiki/person/nao-pon/blog/2008-06-17]] に開発時の日記もあります。 |