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.php at master · thermon/p2-php Expand file tree/ Copy pathread_filter.phpMore file actions 76 lines (67 loc) · 1.75 KB / Copy pathread_filter.phpFile metadata and controls76 lines (67 loc) · 1.75 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 <?php /** * rep2expack - スレッド表示プリフィルタ * * SPMからのレスフィルタリングで使用 */ require_once './conf/conf.inc.php'; require_once P2_LIB_DIR . '/ThreadRead.php'; require_once P2_LIB_DIR . '/ShowThreadPc.php'; $_login->authorize(); // ユーザ認証 /** * 変数の設定 */ $host = $_GET['host']; $bbs = $_GET['bbs']; $key = $_GET['key']; $rc = $_GET['rescount']; $ttitle_en = $_GET['ttitle_en']; $resnum = $_GET['resnum']; $field = $_GET['field']; if (isset($_GET['word'])) { unset($_GET['word']); } $res_filter = array(); $res_filter['field'] = $field; $itaj = P2Util::getItaName($host, $bbs); if (!$itaj) { $itaj = $bbs; } $ttitle_name = base64_decode($ttitle_en); $popup_filter = 1; /** * 対象レスの処理 */ $aThread = new ThreadRead; $aThread->setThreadPathInfo($host, $bbs, $key); $aThread->readDat($aThread->keydat); if (isset($aThread->datlines[$resnum - 1])) { $ares = $aThread->datlines[$resnum - 1]; $resar = $aThread->explodeDatLine($ares); $name = $resar[0]; $mail = $resar[1]; $date_id = $resar[2]; $msg = $resar[3]; $aShowThread = new ShowThreadPc($aThread); $word = $aShowThread->getFilterTarget($ares, $resnum, $name, $mail, $date_id, $msg); if (strlen($word) == 0) { unset($word); } else { if ($field == 'date') { $date_part = explode(' ', trim($word)); $word = $date_part[0]; } $_REQUEST['word'] = $_GET['word'] = $word; } unset($ares, $resar, $name, $mail, $date_id, $msg, $aShowThread); } // read.phpに処理を渡す include P2_BASE_DIR . '/read.php'; /* * 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. |