$textcolor = "000066"; break; case "2": $bgcolor = "FAE49D"; $textcolor = "000000"; break; case "3": $bgcolor = "000000"; $textcolor = "FFFF00"; break; } if (!isset($_GET['date'])) { $date = GetLatestDate($c, 0, "", $channels_excluded_from_crono, $dbh, ""); } else { if ($_GET['date'] == "") { $date = GetLatestDate($c, 0, "", $channels_excluded_from_crono, $dbh, ""); } else { $date = $_GET['date']; } } $lang = GetUserLanguage($c, $dbh); if (isset($delete)) { if ($delete > 0) { DeleteMessage($dbh, $delete); $delete = -1; } } if (isset($edit)) { if (isset($delete_att)) { DeleteAttachments($delete_att, $dbh); }
function GetPageList() { global $k_aConfig; $strPagePath = GetPagePath(); $astrList = array(); if (!is_dir($strPagePath)) { return $astrList; } $dir = opendir($strPagePath); while (true) { $strEntry = readdir($dir); if ($strEntry === false) { break; } $strFullPath = $strPagePath . '/' . $strEntry; if ($strEntry != '.' && $strEntry != '..' && is_dir($strFullPath)) { $strEntry = rawurldecode($strEntry); $astrList[$strEntry] = GetLatestDate($strEntry); } } closedir($dir); return $astrList; }
} 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); } else { if ($_GET['date'] == "" || $date == -1) { $date = GetLatestDate($c, $crono, $qWhere, $channels_excluded_from_crono, $dbh, $children); } else { $date = $_GET['date']; } } if (!isset($_GET['from'])) { $from = 0; } else { if ($_GET['from'] == "") { $from = 0; } else { $from = $_GET['from']; } } $total = GetTotalMessages($c, $crono, $qWhere, $channels_excluded_from_crono, $dbh, $children, $date); /////////////////////////////////////////////////////////