diff options
-rw-r--r-- | config.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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')); |