aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2013-06-05 12:15:46 +0000
committerRomain d'Alverny <rda@mageia.org>2013-06-05 12:15:46 +0000
commit72f9093da7f0de47bc55e49ab184779d671a642b (patch)
tree751bc58e2b0cd51ee755b391570a163854b21d47 /html
parentbdeaed3af560b3a2a2e1c81f1b85ef4cb4499af6 (diff)
downloadnav-72f9093da7f0de47bc55e49ab184779d671a642b.tar
nav-72f9093da7f0de47bc55e49ab184779d671a642b.tar.gz
nav-72f9093da7f0de47bc55e49ab184779d671a642b.tar.bz2
nav-72f9093da7f0de47bc55e49ab184779d671a642b.tar.xz
nav-72f9093da7f0de47bc55e49ab184779d671a642b.zip
explicit config file
Diffstat (limited to 'html')
-rw-r--r--html/conf.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/html/conf.php b/html/conf.php
index 34a0f88..80871dd 100644
--- a/html/conf.php
+++ b/html/conf.php
@@ -2,9 +2,23 @@
/**
*/
+/** Host running/serving the global nav. */
$nav_host = $_SERVER['HTTP_HOST'];
+
+/** Host running main Web site www.m.o. */
$www_host = 'www.mageia.org';
+/** Where precomputed nav templates are cached. */
+$cache_path = 'var/tmp/cache';
+
+// erk
+if ($nav_host == 'www.mageia.org') {
+ $cache_path = '../var/tmp/cache';
+}
+
+/** You may overload this config by defining APP_MODE env
+ * variable, and using the switch construct below.
+*/
$mode = isset($_SERVER['APP_MODE']) ? $_SERVER['APP_MODE'] : null;
switch ($mode) {