Ejemplo n.º 1
0
        $whereteamin = implode(",", $whereteamina);
    } elseif (count($whereteamina) == 1) {
        $wherea[] = "team = {$whereteamina['0']}";
    }
}
if ($showaudiocodec) {
    if (count($whereaudiocodecina) > 1) {
        $whereaudiocodecin = implode(",", $whereaudiocodecina);
    } elseif (count($whereaudiocodecina) == 1) {
        $wherea[] = "audiocodec = {$whereaudiocodecina['0']}";
    }
}
$wherebase = $wherea;
if (isset($searchstr)) {
    if (!$_GET['notnewword']) {
        insert_suggest($searchstr, $CURUSER['id']);
        $notnewword = "";
    } else {
        $notnewword = "notnewword=1&";
    }
    $search_mode = 0 + $_GET["search_mode"];
    if (!in_array($search_mode, array(0, 1, 2))) {
        $search_mode = 0;
        write_log("User " . $CURUSER["username"] . "," . $CURUSER["ip"] . " is hacking search_mode field in" . $_SERVER['SCRIPT_NAME'], 'mod');
    }
    $search_area = 0 + $_GET["search_area"];
    if ($search_area == 4) {
        $searchstr = (int) parse_imdb_id($searchstr);
    }
    $like_expression_array = array();
    unset($like_expression_array);
Ejemplo n.º 2
0
        $whereteamin = implode(",", $whereteamina);
    } elseif (count($whereteamina) == 1) {
        $wherea[] = "team = {$whereteamina['0']}";
    }
}
if ($showaudiocodec) {
    if (count($whereaudiocodecina) > 1) {
        $whereaudiocodecin = implode(",", $whereaudiocodecina);
    } elseif (count($whereaudiocodecina) == 1) {
        $wherea[] = "audiocodec = {$whereaudiocodecina['0']}";
    }
}
$wherebase = $wherea;
if (isset($searchstr)) {
    if (!$_GET['notnewword']) {
        insert_suggest($searchstr, $CURUSER['id'], "torrents");
        $notnewword = "";
    } else {
        $notnewword = "notnewword=1&";
    }
    $search_mode = 0 + $_GET["search_mode"];
    if (!in_array($search_mode, array(0, 1, 2))) {
        $search_mode = 0;
        write_log("User " . $CURUSER["username"] . "," . $CURUSER["ip"] . " is hacking search_mode field in" . $_SERVER['SCRIPT_NAME'], 'mod');
    }
    $like_expression_array = array();
    unset($like_expression_array);
    switch ($search_mode) {
        case 0:
            // AND, OR
        // AND, OR