Ticket #5808: defines.php.diff
File defines.php.diff, 577 bytes (added by , 15 years ago) |
---|
-
defines.php
76 76 77 77 define('http_host', isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']); 78 78 79 define('root_url', ( $_SERVER['HTTPS'] == 'on'? 'https://' : 'http://' ).http_host.':'.$_SERVER['SERVER_PORT'].root);79 define('root_url', ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ).http_host.':'.$_SERVER['SERVER_PORT'].root);