aboutsummaryrefslogtreecommitdiffstats
path: root/_nav/css/index.php
diff options
context:
space:
mode:
Diffstat (limited to '_nav/css/index.php')
-rw-r--r--_nav/css/index.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/_nav/css/index.php b/_nav/css/index.php
index 3960012fc..36cbc34bd 100644
--- a/_nav/css/index.php
+++ b/_nav/css/index.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * mageia.org global nav bar.
+ *
+ * PHP version 5.4
+ *
+ * @category Mageia
+ * @package Mageia\Web\nav
+ * @author rda <rda@mageia.org>
+ * @link http://nav.mageia.org/
+ *
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License aspublished by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+*/
+
header('Content-Type: text/css;charset=utf-8');
header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day'))));
-readfile('source.css');
+echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.css'));