[Mageia-sysadm] [284] do not index all reports in search engines
root at mageia.org
root at mageia.org
Thu Jan 13 15:39:58 CET 2011
Revision: 284
Author: rda
Date: 2011-01-13 15:39:58 +0100 (Thu, 13 Jan 2011)
Log Message:
-----------
do not index all reports in search engines
Modified Paths:
--------------
build_system/web/index.php
Modified: build_system/web/index.php
===================================================================
--- build_system/web/index.php 2011-01-13 14:19:51 UTC (rev 283)
+++ build_system/web/index.php 2011-01-13 14:39:58 UTC (rev 284)
@@ -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 = '<a href="http://mageia.org/">Mageia</a> 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 @@
return $diff . " day" . plural($diff) . " ago";
}
?>
+<!DOCTYPE html>
<html lang="en">
<head>
-<title><?php echo $title ?></title>
-<style type="text/css">
+ <meta charset="utf-8">
+ <title><?php echo $title ?></title>
+ <meta name="robots" content="<?php echo $robots; ?>">
+ <style type="text/css">
table {
border-spacing: 0;
font-family: Helvetica; font-size: 80%;
@@ -155,7 +165,7 @@
tr.partial td.status-box { background: blue; }
tr.built td.status-box { background: #00ccff; }
tr.youri td.status-box { background: olive; }
-</style>
+ </style>
</head>
<body>
<h1><?php echo $title ?></h1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110113/e6a59fb9/attachment.html>
More information about the Mageia-sysadm
mailing list