diff options
| author | root | 2014-11-27 15:55:25 +0100 |
|---|---|---|
| committer | root | 2014-11-27 15:55:25 +0100 |
| commit | 4f923b809b4e38e0639e253f428fb6c4df03ee67 (patch) | |
| tree | 20d9d9ad9dae0316dad27358b4239b6f18f80e87 /tools/config.php | |
| parent | 311ad398e06cd2eba270ea70ca5a326d03b490f9 (diff) | |
| download | tools.iamfabulous.de-4f923b809b4e38e0639e253f428fb6c4df03ee67.tar.gz | |
More structured + better UI
Diffstat (limited to 'tools/config.php')
| -rw-r--r-- | tools/config.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/config.php b/tools/config.php index d4b6071..eb4b329 100644 --- a/tools/config.php +++ b/tools/config.php @@ -1,3 +1,12 @@ <?php -define("__domain_", "http://tools.iamfabulous.de"); +$_scheme = "http://"; + +if ( isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "") + $_scheme = "https://"; + +if ( ! defined("__domain_") ) + define("__domain_", $_scheme."tools.iamfabulous.de"); + +if ( ! defined("REDIS_CONNECT") ) + define("REDIS_CONNECT", "/var/run/redis/redis.sock"); |
