Prevent indexing of pages with multiple months of the content, any
[www.energie.vellum.cz.git] / obsah.php
index 46e4a34..eb262e1 100644 (file)
--- a/obsah.php
+++ b/obsah.php
        $head_css="
 .page { font-style: italic; }
 ";
-       heading();
+
+       // Prevent indexing of pages with multiple months of the content, any
+       // websearch robot should get indexed the right one specific page anyway.
+       heading(true/*title*/,($year && $month)/*indexme*/);
+
        print("<h1>$title_tail</h1>\n");
 
        $result=db_query("select year,month,month_last,contents from $tb_obsah"
@@ -37,7 +41,6 @@
                        print("<h2>Èíslo ".$month_a["name_full"]."</h2>\n");
                        }
                $contents=$sep_obsah_contents.$row["contents"];
-               $contents=htmlspecialchars($contents);
 
                $article_result=db_query("select name,id from $tb_clanek"
                                ." where  year=".$row[ "year"]
@@ -54,7 +57,7 @@
                $contents=ereg_replace("http://[^[:space:]$page_obsah_contents$sep_obsah_contents]+",
                                "<a href=\"\\0\">\\0</a>",$contents);
                $contents=ereg_replace("$page_obsah_contents([^$sep_obsah_contents$appendix_obsah_contents]+)",
-                               "<br /><div class=\"page\">strana ... \\1</div>",$contents);
+                               "<br /><span class=\"page\">strana ... \\1</span>",$contents);
                $contents=ereg_replace("\n","<br />\n\t\t",$contents);
                $contents=ereg_replace("$sep_obsah_contents([^$sep_obsah_contents$appendix_obsah_contents]*)","\t<li>\\1</li>\n",$contents);
                if (1<count($contents_a=split("$appendix_obsah_contents",$contents,2)))