aboutsummaryrefslogtreecommitdiff
path: root/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'config.php')
-rw-r--r--config.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.php b/config.php
index eaaa132..3f930b1 100644
--- a/config.php
+++ b/config.php
@@ -7,10 +7,14 @@ $config = array(
'password' => 'red'
),
'urls' => array(
- 'base' => 'http://localhost:8080'
+ 'base' => 'http://' . $_SERVER['SERVER_NAME']
)
);
+if($config['urls']['base'] == 'http://localhost') {
+ $config['urls']['base'] = 'http://' . $_SERVER['HTTP_HOST'];
+}
+
define("LIBRARY_PATH", realpath(dirname(__FILE__) . '/library'));
define("TEMPLATES_PATH", realpath(dirname(__FILE__) . '/templates'));