diff options
author | Romain d'Alverny <rda@mageia.org> | 2013-06-05 12:15:00 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2013-06-05 12:15:00 +0000 |
commit | c3fd3318eb10b96e06fb3e67c966e1341dcaf790 (patch) | |
tree | 8a587b032be9caef9eeade7c501b6138a16b5960 /_nav/js | |
parent | 61877c022ef13a678d0d98f28b5d459a0c6610f3 (diff) | |
download | www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar.gz www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar.bz2 www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar.xz www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.zip |
sync code with working, master code from nav.mageia.org
Diffstat (limited to '_nav/js')
-rw-r--r-- | _nav/js/index.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/_nav/js/index.php b/_nav/js/index.php index ed17b0401..a9a07a3ca 100644 --- a/_nav/js/index.php +++ b/_nav/js/index.php @@ -1,6 +1,24 @@ <?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('Access-Control-Allow-Origin: *'); //header('Access-Control-Allow-Methods: GET'); header('Content-Type: text/javascript;charset=utf-8'); header(sprintf('Expires: %s', gmdate('r', strtotime('+2 day')))); -readfile('source.js');
\ No newline at end of file +echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.js')); |