2: 2007-06-22 (金) 08:20:30 nao-pon |
3: 2007-11-25 (日) 11:37:49 nao-pon |
| -設定を変えるには XOOPS_TRUST_PATH/class/hyp_common/preload/hyp_preload.conf.php.rename を hyp_preload.conf.php にリネームしてその内容を編集します。~ | | -設定を変えるには XOOPS_TRUST_PATH/class/hyp_common/preload/hyp_preload.conf.php.rename を hyp_preload.conf.php にリネームしてその内容を編集します。~ |
| また、このファイルは html側の XOOPS_ROOT_PATH/class/hyp_common ディレクトリに置くこともできます。その場合は html側 が優先されますので、サイトごとに設定を変えることも可能です。~ | | また、このファイルは html側の XOOPS_ROOT_PATH/class/hyp_common ディレクトリに置くこともできます。その場合は html側 が優先されますので、サイトごとに設定を変えることも可能です。~ |
- | 設定箇所は以下の部分です。 | + | -文字エンコーディングを EUC-JP 以外にして XOOPS を運用している場合(UTF-8など)は、html側のXOOPS_ROOT_PATH/class/hyp_common/hyp_preload.conf.php をその文字エンコーディングで保存してください。 |
| + | -設定箇所は以下の部分です。 |
| #code(php){{ | | #code(php){{ |
| // 各種設定 | | // 各種設定 |
| + | $this->encodehint_word = 'ぷ'; // POSTエンコーディング判定用文字 |
| + | $this->encodehint_name = 'HypEncHint'; // POSTエンコーディング判定用 Filed name |
| + | |
| $this->use_set_query_words = 1; // 検索ワードを定数にセット | | $this->use_set_query_words = 1; // 検索ワードを定数にセット |
| $this->use_words_highlight = 1; // 検索ワードをハイライト表示 | | $this->use_words_highlight = 1; // 検索ワードをハイライト表示 |
| | | |
| $this->use_proxy_check = 1; // POST時プロキシチェックする | | $this->use_proxy_check = 1; // POST時プロキシチェックする |
- | $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 = '公開プロキシ経由での投稿はできません。'; | | $this->msg_proxy_check = '公開プロキシ経由での投稿はできません。'; |
| | | |
| $this->post_spam_host = 31; // Spam HOST の加算ポイント | | $this->post_spam_host = 31; // Spam HOST の加算ポイント |
| $this->post_spam_word = 10; // Spam Word の加算ポイント | | $this->post_spam_word = 10; // Spam Word の加算ポイント |
- | $this->post_spam_filed = 31; // Spam 無効フィールドの加算ポイント | + | $this->post_spam_filed = 51; // Spam 無効フィールドの加算ポイント |
| $this->post_spam_trap = '___url';// Spam 罠用無効フィールド名 | | $this->post_spam_trap = '___url';// Spam 罠用無効フィールド名 |
| $this->post_spam_trap_set = 1; // 無効フィールドの罠を自動で仕掛ける | | $this->post_spam_trap_set = 1; // 無効フィールドの罠を自動で仕掛ける |
| $this->post_spam_user = 30; // POST SPAM 閾値: ログインユーザー | | $this->post_spam_user = 30; // POST SPAM 閾値: ログインユーザー |
| $this->post_spam_guest = 15; // POST SPAM 閾値: ゲスト | | $this->post_spam_guest = 15; // POST SPAM 閾値: ゲスト |
| + | $this->post_spam_badip = 50; // アクセス拒否リストへ登録する閾値 |
| | | |
| // 検索ワード定数名 | | // 検索ワード定数名 |
| $this->post_spam_rules = array( | | $this->post_spam_rules = array( |
| // 同じURLが1行に3回 11pt | | // 同じURLが1行に3回 11pt |
- | "/((?:ht|f)tps?:\/\/[!~*'();\/?:\@&=+\$,%#\w.-]+)[^!~*'();\/?:\@&=+\$,%#\w.-]+?\\1[^!~*'();\/?:\@&=+\$,%#\w.-]+?\\1/i" => 11, | + | "/((?:ht|f)tps?:\/\/[!~*'();\/?:\@&=+\$,%#\w.-]+)[^!~*'();\/?:\@&=+\$,%#\w.-]+?\\1[^!~*'();\/?:\@&=+\$,%#\w.-]+?\\1/i" => 11, |
| | | |
| // 65文字以上の英数文字のみで構成されている 15pt | | // 65文字以上の英数文字のみで構成されている 15pt |
| ※ background: url(&font(Red,b){/xoops/images/ext.png};) center right no-repeat;~ | | ※ background: url(&font(Red,b){/xoops/images/ext.png};) center right no-repeat;~ |
| この部分の&font(Red,b){赤字};の部分は適宜環境に応じて書き換えてください。 | | この部分の&font(Red,b){赤字};の部分は適宜環境に応じて書き換えてください。 |
- | | |
| #code(css){{ | | #code(css){{ |
| a.ext | | a.ext |
| } | | } |
| }} | | }} |
- | | |
| | | |
| #navi(../) | | #navi(../) |