예제 #1
0
        $address = $_POST['address'];
        $display_address = $address;
        if ($prefered_city != "" && $use_prefered_city == true) {
            if (strpos($address, $prefered_city) === false) {
                $address = $address . ", " . $prefered_city;
            }
        }
    }
} else {
    $address = "";
    //initialize search variables
    if (isset($_GET['tag'])) {
        $_SESSION['selection_list'] = UpdateSelectionList($selection_list, $_GET['tag']);
    }
    if (isset($_GET['d'])) {
        $_SESSION['selection_list'] = UpdateSelectionList($selection_list, -$_GET['d']);
    }
}
$selection_list = $_SESSION['selection_list'];
//get search filter
$qWhere = GetFilterMessageList($selection_list, $dbh);
$qWhere = GetFilterMapMessageList($qWhere, $dbh);
//get list of correlated tags & descriptors
if ($qWhere != "") {
    $correlated = GetCorrelated($qWhere, 1, -3, $dbh);
    $correlated_tags = $correlated[0];
    $correlated_descriptors = $correlated[1];
} else {
    $correlated_tags = "-1";
    $correlated_descriptors = "-1";
}
예제 #2
0
    if ($a[0] != $c) {
        $_SESSION['selection_list'] = $c;
        $_SESSION['q'] = "";
    }
}
if (isset($_POST['q'])) {
    if ($_POST['q'] != "" && $_POST['q'] != $ov_search_text[$language]) {
        $_SESSION['q'] = $_POST['q'];
        $date = -1;
    } else {
        $_SESSION['q'] = "";
    }
    $_SESSION['selection_list'] = $c;
} else {
    if (isset($_GET['tag'])) {
        $_SESSION['selection_list'] = UpdateSelectionList($_SESSION['selection_list'], $_GET['tag']);
        $_SESSION['q'] = "";
    }
}
$page_filter = GetTagNames($_SESSION['selection_list'], $dbh, $language);
if ($page_filter != "") {
    $page_filter = $ov_page_filter_prefix[$language] . " " . $page_filter;
} else {
    if ($_SESSION['q'] != "") {
        $page_filter = $ov_search_text[$language] . ": " . $_SESSION['q'];
    }
}
/////////////////////////////////////
if ($c >= 0 && $c != "") {
    //get channel attributes
    $query = "SELECT channel_mail,channel_pass,channel_folder,is_active,is_crono,messages_per_page,background_color, text_color,data_color,channel_description_color,channel_description,open_closed,has_thumbnails,show_time,show_date,show_sender,channel_name,is_ascending,show_tags,is_study,show_descriptors,tag_color,descriptor_color,tag_mode,show_map,show_legend,legend_color,parent_channel_id,allow_search,tag_minimum_date,has_rss FROM channel WHERE channel_id = {$c}";