$title_tail\n");
db_connect();
$result=db_query("select year,month,month_last,contents from $tb_obsah"
.($year ? " where year='$year'" : "")
.($month ? " and month='$month'" : "")
." order by year,month"
);
if (!mysql_num_rows($result))
fatal("Obsah požadovan".($month ? "ého čísla" : "ých čísel")." bohužel není uložen");
while ($row=mysql_fetch_array($result)) {
if (!$month)
print("
Číslo ".$row["year"]."/".month_full($row["year"],$row["month"],$row["month_last"])."
\n");
$contents=htmlspecialchars($sep_obsah_contents.$row["contents"]);
$contents=ereg_replace("http://[^[:space:]$page_obsah_contents$sep_obsah_contents]+",
"\\0",$contents);
$contents=ereg_replace("$page_obsah_contents([^$sep_obsah_contents]+)",
"
strana ... \\1
",$contents);
$contents=ereg_replace("\n","
\n\t\t",$contents);
$contents=ereg_replace("$sep_obsah_contents([^$sep_obsah_contents]*)","\t\\1\n",$contents);
print("\n");
}
mysql_free_result($result);
footer();
?>