From: short <> Date: Fri, 21 Jun 2002 16:26:25 +0000 (+0000) Subject: Prevent indexing of pages with multiple months of the content, any X-Git-Url: https://git.jankratochvil.net/?p=www.energie.vellum.cz.git;a=commitdiff_plain;h=2f422c6ef946eb94deec0c14e0218951a22a3f0f Prevent indexing of pages with multiple months of the content, any websearch robot should get indexed the right one specific page anyway. - "meta-robots-noindex" used as 'robots.txt' is not capable of QUERY_STRING --- diff --git a/common.php b/common.php index 8a7b6ed..34f3ec6 100644 --- a/common.php +++ b/common.php @@ -67,7 +67,7 @@ function fatal($msg="UNKNOWN") { global $admin_mail; - heading(false/*title*/); // it is always safe + heading(false/*title*/,false/*indexme*/); // notitle is always safe, don't index the error message print("\n

 
 


Nastala chyba pøi zpracování: $msg!

\n" ."

Mù¾ete tento problém nahlásit správci tohoto webu.

\n"); footer(); @@ -710,7 +710,7 @@ function no_cache() header("Pragma: no-cache"); // HTTP/1.0 } -function heading($title=true) +function heading($title=true,$indexme=true) { global $msie_major,$mozilla_major,$title_tail,$head_css,$have_css,$head,$heading_done,$title_prefix,$force_charset; @@ -755,6 +755,7 @@ h1,h2 { color: yellow; background-color: transparent; } print(trim($head_css)."\n"); print("-->\n"); } + print(''."\n"); if (isset($head)) print($head); print("$title_tail\n"); $result=db_query("select year,month,month_last,contents from $tb_obsah"