Skip to content

Commit

Permalink
support apache-defined LIME_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman committed Apr 17, 2012
1 parent 068c3ec commit 92c2b67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config-defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,11 @@
*/
$bServerBehindProxy=false;

//DO NOT EVER CHANGE THE FOLLOWING 5 LINES ---------------
require_once(dirname(__FILE__).'/config.php');
//DO NOT EVER CHANGE THE FOLLOWING 8 LINES ---------------
$configFile = empty($_SERVER['LIME_CONFIG_FILE']) ?
dirname(__FILE__) . '/config.php' :
$_SERVER['LIME_CONFIG_FILE'];
require_once($configFile);
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']!='' && $_SERVER['HTTPS']!='off')
{
$rooturl=str_replace('http://', 'https://', $rooturl);
Expand Down

0 comments on commit 92c2b67

Please sign in to comment.