diff options
Diffstat (limited to 'html/index.php')
-rw-r--r-- | html/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/html/index.php b/html/index.php index e93080e..843f9b3 100644 --- a/html/index.php +++ b/html/index.php @@ -41,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: *'); @@ -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 |