Constants in SCHLIX CMS

The following are most frequently used constants in SCHLIX CMS v2.x

 

Constant Explanation
SCHLIX_VERSION version of SCHLIX CMS. Can be used to validate to prevent a .php file from being called directly
SCHLIX_SITE_HTTPS_URL Secure HTTPS URL of SCHLIX, defined in /web/{site_name}/config.inc.php
SCHLIX_SITE_HTTP_URL Regular HTTP URL of SCHLIX, defined in /web/{site_name}/config.inc.php
SCHLIX_SITE_URL Current site URL being used, automatically determined
SCHLIX_SITE_HTTPBASE Current base URL. e.g. if your website URL is https://www.website.com/appsite, then the value of SCHLIX_SITE_HTTPBASE will be /appsite. Otherwise it will be empty. Typically it's blank unless you installed SCHLIX CMS in a folder rather than the document root of your site as defined in Apache configuration.
SCHLIX_ROOT_PATH The full path of where SCHLIX CMS is installed
SCHLIX_SYSTEM_PATH The full path of /system folder in SCHLIX CMS
CURRENT_SUBSITE_NAME The name of the current subsite. It's usually "main" by default.
CURRENT_SUBSITE_PATH The full path of current subsite with the SCHLIX_SITE_HTTPBASE if available, e.g. /home/user/public_html/appsite/web/{site_name}. If SCHLIX_SITE_HTTPBASE is blank, then it will be something like /home/user/public_html/web/{site_name} or /var/www/html/web/{site_name}
CURRENT_SUBSITE_URL_PATH The URL path of current subsite with the SCHLIX_SITE_HTTPBASE if available, e.g. /appsite/web/{site_name} if SCHLIX_SITE_HTTPBASE value is /appsite. If SCHLIX_SITE_HTTPBASE is blank, then it will be /web/{site_name}
CURRENT_SUBSITE_URL_PATH_NO_BASE The URL path of current subsite without SCHLIX_SITE_HTTPBASE, e.g. /web/{site_name}
CURRENT_THEME_PATH The path of current theme with the SCHLIX_SITE_HTTPBASE if available, e.g. /home/user/public_html/web/{site_name}/themes/companyprofile
CURRENT_THEME_URL_PATH The URL path of current theme with the SCHLIX_SITE_HTTPBASE if available, e.g. /appsite/web/{site_name}/themes/companyprofile. If SCHLIX_SITE_HTTPBASE is blank, then it will be something like /web/{site_name}/themes/companyprofile
CURRENT_THEME_URL_PATH_NO_BASE The URL path of current theme without SCHLIX_SITE_HTTPBASE, e.g. /web/{site_name}/themes/companyprofile

Less commonly used global variables:

Constant Explanation
SCHLIX_DEFAULT_USER_CLASS The default user class, which can be changed.
SCHLIX_SYSTEM_TIMEZONE Timezone of the site
SCHLIX_DB_* All database parameters