GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — p2-php/read_filter_k.php at master · thermon/p2-php Expand file tree/ Copy pathread_filter_k.phpMore file actions 113 lines (102 loc) · 3.32 KB / Copy pathread_filter_k.phpFile metadata and controls113 lines (102 loc) · 3.32 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 <?php /** * rep2 - 携帯版レスフィルタリング */ require_once './conf/conf.inc.php'; $_login->authorize(); // ユーザ認証 /** * スレッド情報 */ $host = $_GET['host']; $bbs = $_GET['bbs']; $key = $_GET['key']; $ttitle = base64_decode($_GET['ttitle_en']); $ttitle_back = (isset($_SERVER['HTTP_REFERER'])) ? '<a href="' . htmlspecialchars($_SERVER['HTTP_REFERER'], ENT_QUOTES) . '" title="戻る">' . $ttitle . '</a>' : $ttitle; /** * 前回フィルタ値読み込み */ require_once P2_LIB_DIR . '/FileCtl.php'; $cachefile = $_conf['pref_dir'] . '/p2_res_filter.txt'; $res_filter_cont = FileCtl::file_read_contents($cachefile); if ($res_filter_cont) { $res_filter = unserialize($res_filter_cont); } $field = array('hole' => '', 'msg' => '', 'name' => '', 'mail' => '', 'date' => '', 'id' => '', 'beid' => '', 'belv' => ''); $match = array('on' => '', 'off' => ''); $method = array('and' => '', 'or' => '', 'just' => '', 'regex' => '', 'similar' => ''); if (isset($res_filter) && is_array($res_filter)) { if (isset($res_filter['field'])) { $field[$res_filter['field']] = ' selected'; } if (isset($res_filter['match'])) { $match[$res_filter['match']] = ' selected'; } if (isset($res_filter['method'])) { $method[$res_filter['method']] = ' selected'; } } /** * 検索フォームを表示 */ P2Util::header_nocache(); echo $_conf['doctype']; echo <<<EOF <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> {$_conf['extra_headers_ht']} <title>p2 - スレ内検索</title> </head> <body{$_conf['k_colors']}> <p>{$ttitle_back}</p> <hr> <form id="header" method="get" action="{$_conf['read_php']}" accept-charset="{$_conf['accept_charset']}"> <input type="hidden" name="host" value="{$host}"> <input type="hidden" name="bbs" value="{$bbs}"> <input type="hidden" name="key" value="{$key}"> <input type="hidden" name="ls" value="all"> <input type="hidden" name="offline" value="1"> <div> <input id="word" name="word" autocorrect="off" autocapitalize="off"> <input type="submit" id="submit1" name="submit_filter" value="検索"> </div> <hr> <div style="white-space:nowrap"> 検索オプション:<br> <select id="field" name="field"> <option value="hole"{$field['hole']}>全体</option> <option value="msg"{$field['msg']}>メッセージ</option> <option value="name"{$field['name']}>名前</option> <option value="mail"{$field['mail']}>メール</option> <option value="date"{$field['date']}>日付</option> <option value="id"{$field['id']}>ID</option> <!-- <option value="belv"{$field['belv']}>ポイント</option> --> </select>に<br> <select id="method" name="method"> <option value="or"{$method['or']}>いずれか</option> <option value="and"{$method['and']}>すべて</option> <option value="just"{$method['just']}>そのまま</option> <option value="regex"{$method['regex']}>正規表現</option> </select>を<br> <select id="match" name="match"> <option value="on"{$match['on']}>含む</option> <option value="off"{$match['off']}>含まない</option> </select><br> <input type="submit" id="submit2" name="submit_filter" value="検索"> </div> {$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']} </form> </body> </html> EOF; /* * Local Variables: * mode: php * coding: cp932 * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: nil * End: */ // vim: set syn=php fenc=cp932 ai et ts=4 sw=4 sts=4 fdm=marker: |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |