Example #1
0
            $GLOBALS['wakati_hl_regex'] = p2_get_highlighting_regex($GLOBALS['wakati_words']);
            $GLOBALS['wakati_length'] = mb_strlen($GLOBALS['wakati_word'], 'CP932');
            $GLOBALS['wakati_score'] = getSbScore($GLOBALS['wakati_words'], $GLOBALS['wakati_length']);
            if (!isset($_conf['expack.min_similarity'])) {
                $_conf['expack.min_similarity'] = 0.05;
            } elseif ($_conf['expack.min_similarity'] > 1) {
                $_conf['expack.min_similarity'] /= 100;
            }
            $_conf['expack.min_similarity'] = (double) $_conf['expack.min_similarity'];
        }
        $word = '';
    } elseif (substr_count($word, '.') == strlen($word)) {
        $word = '';
    }
    if (strlen($word) > 0) {
        if (p2_set_filtering_word($word, $sb_filter['method']) !== null) {
            $do_filtering = true;
        }
    }
}
// }}}
//============================================================
// 特殊な前処理
//============================================================
// {{{ 削除
if (!empty($_GET['dele']) || isset($_POST['submit']) && $_POST['submit'] == $deletelog_st) {
    if ($host && $bbs) {
        require_once P2_LIB_DIR . '/dele.inc.php';
        if (isset($_POST['checkedkeys'])) {
            $dele_keys = $_POST['checkedkeys'];
        } else {
Example #2
0
if ($_conf['view_forced_by_query']) {
    output_add_rewrite_var('b', $_conf['b']);
}
// {{{ 板リスト (Ajax)
if (isset($_GET['cateid'])) {
    menu_iphone_ajax('menu_iphone_show_board_menu', (int) $_GET['cateid']);
    exit;
}
// }}}
// {{{ 板検索 (Ajax)
if (isset($_POST['word'])) {
    $word = menu_iphone_unicode_urldecode($_POST['word']);
    if (substr_count($word, '.') == strlen($word)) {
        $word = '';
    }
    if (strlen($word) > 0 && p2_set_filtering_word($word, 'and') !== null) {
        menu_iphone_ajax('menu_iphone_show_matched_boards', $word);
    } else {
        header('Content-Type: application/xml; charset=UTF-8');
        echo mb_convert_encoding('<div class="panel">無効なキーワードです。</div>', 'UTF-8', 'CP932');
    }
    exit;
}
// }}}
// {{{ HTML出力
// {{{ ヘッダ
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=Shift_JIS" />
Example #3
0
$menu_side_url = $me_dir_url . '/menu_side.php';
$brd_menus = array();
$matome_i = 0;
if (isset($_GET['word'])) {
    $word = $_GET['word'];
} elseif (isset($_POST['word'])) {
    $word = $_POST['word'];
}
$hd = array('word' => '');
$GLOBALS['ita_mikke'] = array('num' => 0);
$msg_ht = '';
// 板検索
if (isset($word) && strlen($word) > 0) {
    if (substr_count($word, '.') == strlen($word)) {
        $word = null;
    } elseif (p2_set_filtering_word($word, 'and') !== null) {
        $hd['word'] = htmlspecialchars($word, ENT_QUOTES);
    } else {
        $word = null;
    }
}
//============================================================
// 特殊な前置処理
//============================================================
// お気に板の追加・削除
if (isset($_GET['setfavita'])) {
    require_once P2_LIB_DIR . '/setfavita.inc.php';
    setFavIta();
}
//================================================================
// ■メイン
Example #4
0
$_conf['ktai'] = 1;
$brd_menus = array();
$menu_show_ita_num = 0;
$list_navi_ht = '';
$modori_url_ht = '';
// {{{ 板検索のための設定
if (isset($_GET['word'])) {
    $word = $_GET['word'];
} elseif (isset($_POST['word'])) {
    $word = $_POST['word'];
}
if (isset($word) && strlen($word) > 0) {
    if (substr_count($word, '.') == strlen($word)) {
        $word = null;
    } else {
        p2_set_filtering_word($word, 'and');
    }
} else {
    $word = null;
}
// }}}
//============================================================
// 特殊な前置処理
//============================================================
// お気に板の追加・削除
if (isset($_GET['setfavita'])) {
    require_once P2_LIB_DIR . '/setfavita.inc.php';
    setFavIta();
}
//================================================================
// メイン