aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.php
diff options
context:
space:
mode:
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') )