aboutsummaryrefslogtreecommitdiffstats
path: root/_nav/html/index.php
diff options
context:
space:
mode:
Diffstat (limited to '_nav/html/index.php')
-rw-r--r--_nav/html/index.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/_nav/html/index.php b/_nav/html/index.php
index 8623f0954..0450a94c3 100644
--- a/_nav/html/index.php
+++ b/_nav/html/index.php
@@ -1,5 +1,20 @@
<?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.
*/
$t0 = microtime();
@@ -26,6 +41,7 @@ $context = isset($_GET['c']) ? trim($_GET['c']) : null;
/** wrap the returned HTML in <header id="hmgn" />? */
$wrap = isset($_GET['w']) ? true : false;
+require 'conf.php';
include '../lib.php';
header('Access-Control-Allow-Origin: *');
@@ -33,6 +49,6 @@ header('Access-Control-Allow-Methods: GET');
header('Content-Type: text/html;charset=utf-8');
header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day'))));
-echo _mgnav_html($wrap, $lang, null, 'www.mageia.org', NCache::build('../var/tmp/cache'));
+echo _mgnav_html($wrap, $lang, null, $www_host, NCache::build($cache_path));
apache_note('navMakeTime', number_format(microtime() - $t0, 6)); \ No newline at end of file