|
|
|
@ -123,9 +123,13 @@ class Virtual |
|
|
|
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_configuration['force_https_forwarded_proto']) |
|
|
|
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_configuration['force_https_forwarded_proto']) |
|
|
|
) { |
|
|
|
) { |
|
|
|
$protocol = 'https'; |
|
|
|
$protocol = 'https'; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if ($_SERVER['HTTPS']) { |
|
|
|
|
|
|
|
$protocol = 'https'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$protocol = 'http'; |
|
|
|
$protocol = 'http'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (defined('CLI_VCHAMILO_OVERRIDE')) { |
|
|
|
if (defined('CLI_VCHAMILO_OVERRIDE')) { |
|
|
|
$_configuration['vchamilo_web_root'] = CLI_VCHAMILO_OVERRIDE; |
|
|
|
$_configuration['vchamilo_web_root'] = CLI_VCHAMILO_OVERRIDE; |
|
|
|
|