From ad5d7d954ed894a6648700d21ff96664afa6c754 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 13 Jan 2011 14:39:58 +0000 Subject: do not index all reports in search engines --- index.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 0e270fa..28cbfc2 100644 --- a/index.php +++ b/index.php @@ -10,9 +10,16 @@ error_reporting(E_ALL); +$g_user = isset($_GET['user']) ? htmlentities(strip_tags($_GET['user'])) : null; + $upload_dir = '/home/schedbot/uploads'; $max_modified = 2; $title = 'Mageia build system status'; +$robots = 'index,nofollow,nosnippet,noarchive'; +if ($g_user) { + $title .= ' for ' . $g_user . "'s packages"; + $robots = 'no' . $robots; +} $tz = new DateTimeZone('UTC'); # Temporary until initial mirror is ready @@ -125,10 +132,13 @@ function key2date($key) { return $diff . " day" . plural($diff) . " ago"; } ?> + -<?php echo $title ?> - +

-- cgit v1.2.1