git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent indexing of pages with multiple months of the content, any
[www.energie.vellum.cz.git]
/
common.php
diff --git
a/common.php
b/common.php
index
8a7b6ed
..
34f3ec6
100644
(file)
--- a/
common.php
+++ b/
common.php
@@
-67,7
+67,7
@@
function fatal($msg="UNKNOWN")
{
global $admin_mail;
{
global $admin_mail;
- heading(false/*title*/
); // it is always saf
e
+ heading(false/*title*/
,false/*indexme*/); // notitle is always safe, don't index the error messag
e
print("\n<p> <br /> </p><hr /><h1 class=\"error\">Nastala chyba pøi zpracování: $msg!</h1>\n"
."<p>Mù¾ete tento problém nahlásit <a href=\"mailto:$admin_mail\">správci tohoto webu</a>.</p>\n");
footer();
print("\n<p> <br /> </p><hr /><h1 class=\"error\">Nastala chyba pøi zpracování: $msg!</h1>\n"
."<p>Mù¾ete tento problém nahlásit <a href=\"mailto:$admin_mail\">správci tohoto webu</a>.</p>\n");
footer();
@@
-710,7
+710,7
@@
function no_cache()
header("Pragma: no-cache"); // HTTP/1.0
}
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;
{
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("--></style>\n");
}
print(trim($head_css)."\n");
print("--></style>\n");
}
+ print('<meta name="robots" content="'.($indexme ? "" : "no" ).'index,follow" />'."\n");
if (isset($head))
print($head);
print("</head><body");
if (isset($head))
print($head);
print("</head><body");