From 82fc8821a315e9b5a535d58b1988c637f181a886 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Sat, 30 Mar 2013 16:50:02 +0000 Subject: makes navigation local, depends on nav vhost; easier for local dev --- html/conf.php | 14 ++++++++++++++ html/index.php | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 html/conf.php (limited to 'html') diff --git a/html/conf.php b/html/conf.php new file mode 100644 index 0000000..34a0f88 --- /dev/null +++ b/html/conf.php @@ -0,0 +1,14 @@ +? */ $wrap = isset($_GET['w']) ? true : false; +require 'conf.php'; include '../lib.php'; header('Access-Control-Allow-Origin: *'); @@ -48,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('var/tmp/cache')); apache_note('navMakeTime', number_format(microtime() - $t0, 6)); \ No newline at end of file -- cgit v1.2.1