mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Determine if accessing by http or https for default configuration
This commit is contained in:
@@ -129,15 +129,22 @@ if (!defined('LIME_AUTO_ADVANCE')) define('LIME_AUTO_ADVANCE', true);
|
|||||||
*/
|
*/
|
||||||
if (!defined('QUEXS_PATH')) define('QUEXS_PATH', '/quexs/');
|
if (!defined('QUEXS_PATH')) define('QUEXS_PATH', '/quexs/');
|
||||||
|
|
||||||
|
$protocol = "http://";
|
||||||
|
|
||||||
|
if (!empty($_SERVER['HTTPS']))
|
||||||
|
{
|
||||||
|
$protocol = "https://";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The complete URL to limesurvey
|
* The complete URL to limesurvey
|
||||||
*/
|
*/
|
||||||
if (!defined('LIME_URL')) define('LIME_URL','http://' . $_SERVER['SERVER_NAME'] . QUEXS_PATH . LIME_PATH);
|
if (!defined('LIME_URL')) define('LIME_URL', $protocol . $_SERVER['SERVER_NAME'] . QUEXS_PATH . LIME_PATH);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The complete URL to this copy of queXS
|
* The complete URL to this copy of queXS
|
||||||
*/
|
*/
|
||||||
if (!defined('QUEXS_URL')) define('QUEXS_URL','http://' . $_SERVER['SERVER_NAME'] . QUEXS_PATH);
|
if (!defined('QUEXS_URL')) define('QUEXS_URL', $protocol . $_SERVER['SERVER_NAME'] . QUEXS_PATH);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default locale (language)
|
* The default locale (language)
|
||||||
|
|||||||
Reference in New Issue
Block a user