2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added port configuration

This commit is contained in:
Adam Zammit
2016-11-21 13:03:31 +11:00
parent 45bace0764
commit 823cb4bc69
2 changed files with 19 additions and 2 deletions

View File

@@ -134,6 +134,12 @@ if (!defined('LIME_AUTO_ADVANCE')) define('LIME_AUTO_ADVANCE', true);
*/
if (!defined('QUEXS_PATH')) define('QUEXS_PATH', '/quexs/');
/**
* The port queXS is running on (default blank, use :8080 for example if using
* port 8080)
*/
if (!defined('QUEXS_PORT')) define('QUEXS_PORT', '');
$protocol = "http://";
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443)
@@ -144,12 +150,12 @@ if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER
/**
* The complete URL to limesurvey
*/
if (!defined('LIME_URL')) define('LIME_URL', $protocol . $_SERVER['SERVER_NAME'] . QUEXS_PATH . LIME_PATH);
if (!defined('LIME_URL')) define('LIME_URL', $protocol . $_SERVER['SERVER_NAME'] . QUEXS_PORT . QUEXS_PATH . LIME_PATH);
/**
* The complete URL to this copy of queXS
*/
if (!defined('QUEXS_URL')) define('QUEXS_URL', $protocol . $_SERVER['SERVER_NAME'] . QUEXS_PATH);
if (!defined('QUEXS_URL')) define('QUEXS_URL', $protocol . $_SERVER['SERVER_NAME'] . QUEXS_PORT . QUEXS_PATH);
/**
* The default locale (language)

View File

@@ -57,6 +57,17 @@ define('AUTO_POPUP',false);
*/
define('QUEXS_PATH', '/quexs/');
/**
* The port queXS is running on (leave default)
*/
define('QUEXS_PORT', '');
/**
* Debugging - disabled
*/
define('DEBUG', false);
/**
* Database configuration for queXS
*/