aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.php
diff options
context:
space:
mode:
authorHorus32014-10-28 23:47:28 +0100
committerHorus32014-10-28 23:47:28 +0100
commit44870defdcddbfceede437950fd9e3342f84ebf0 (patch)
treef4de13cd94be784ef02975df95d5f0edb50aac90 /bootstrap.php
parent25610c0ccb4c7c99fe0d6d82d6738dbcc40d05e3 (diff)
downloadjungegemeinde-44870defdcddbfceede437950fd9e3342f84ebf0.tar.gz
Added experimental CDN support.
Diffstat (limited to 'bootstrap.php')
-rw-r--r--bootstrap.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/bootstrap.php b/bootstrap.php
index 098288b..bb82db1 100644
--- a/bootstrap.php
+++ b/bootstrap.php
@@ -18,12 +18,17 @@ if ( ! defined('SCHEME') ){
# hostname
if ( ! defined('HOST') )
define('HOST', $_SERVER['HTTP_HOST']);
+if ( ! defined('URI') )
+ define('URI', '/');
if ( ! defined('DOMAIN') )
- define('DOMAIN', SCHEME . HOST);
+ define('DOMAIN', SCHEME . HOST . URI);
+if ( ! define('CDN') ){
+ define('CDN', DOMAIN);
+}
define('PROTECTED_BASE', 'protected/');
define('IMAGE_PATH', ABSPATH . PROTECTED_BASE);
- define('IMAGE_URL' , DOMAIN . '/images/');
+ define('IMAGE_URL' , DOMAIN . 'images/');
# define session name
if ( ! defined('SESSION') )