Пример #1
0
    $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";
}
/////////////////////////////
$page_filter = GetTagNames($_SESSION['selection_list'], $dbh, $language);
if ($page_filter != "") {
    $page_filter = $ov_page_filter_prefix[$language] . " " . $page_filter;
}
$total_messages = GetNMessagesInMap($qWhere, $dbh);
if ($show_tags_in_map) {
    $tc = TagCloud(-3, 1, $max_tags_on_map, $channels_excluded_from_crono, $tag_toolbox_1_time, $tag_toolbox_n_times, 'map.php', $textcolor, $bgcolor, $tag_min_size, $tag_max_size, $dbh, $selection_list, $tag_cloud_title, $correlated_tags, $map_tag_mode, $show_legend_in_map, false, '0000-00-00', "", $tag_page_tag_hilite_color, $tag_page_hilite_size, $main_crono_channel, $language, $ov_locales);
} else {
Пример #2
0
 if ($_SESSION['q'] == "") {
     $qWhere = GetFilterMessageList($_SESSION['selection_list'], $dbh);
 } else {
     $qWhere = GetQMessageList($c, $_SESSION['q'], $dbh);
 }
 //TODO: refine for grouped cronos! DONE (check)
 //if channel is bound to tags, refine filter. thumbnails = false!
 $channel_filter = RefineChannelFilter($qWhere, $c, $crono, $dbh, $children);
 if ($channel_filter != "") {
     $qWhere = $channel_filter;
     $has_thumbnails = 0;
 }
 //TODO: refine for grouped cronos! --> NOT NEEDED (?)
 //get list of correlated tags & descriptors
 if ($qWhere != "") {
     $correlated = GetCorrelated($qWhere, $crono, $c, $dbh);
     $correlated_tags = $correlated[0];
     $correlated_descriptors = $correlated[1];
 } else {
     $correlated_tags = "-1";
     $correlated_descriptors = "-1";
 }
 if ($show_tags) {
     $tc = TagCloud($c, $crono, $max_tags_in_cloud, $channels_excluded_from_crono, $tag_toolbox_1_time, $tag_toolbox_n_times, $main_page, $textcolor, $bgcolor, $tag_min_size, $tag_max_size, $dbh, $_SESSION['selection_list'], $tag_cloud_title, $correlated_tags, $map_tag_mode, false, false, '0000-00-00', "", $tag_page_tag_hilite_color, $tag_page_hilite_size, $main_crono_channel, $language, $ov_locales);
 } else {
     $tc[0] = "";
     $tc[1] = "";
 }
 //manage current section
 if (!isset($_GET['date'])) {
     $date = GetLatestDate($c, $crono, $qWhere, $channels_excluded_from_crono, $dbh, $children);