Core variables

From XtConcordia

xtConcordia


Core variables are always in CAPITALS. This page provides you with the full list.

Administrator controlled variables

$DB_TYPE
The type of database used. Currently only "mysql4" is supported.

$DB_LOCATION
Holds the IP-address or FQDN of the database server.

$DB_USER
User account to connect to the database.

$DB_PWD
Password to connect to the database.

$DB_NAME
The name of the database to use.

$DB_PREF
The table prefix. This one can be empty.

$THEME_TOPBANNER
Contains the filename where the html code for the topbanner is located.

$THEME_CSS
Filename where to find the CSS information.

$THEME_WINDOW
Filename where to find the html code to display windows. The html code itself should have to obligatory variables in it, being %wintitle% and %wincontent%.


Internal variables

$FROM_XTC
Is always true and should be checked in each included php-file preventing execution outside $OWNPAGE.

$LCLPATH
Relative location where $OWNPAGE can be found.

$CMSDIR
Directory name where the rest of the code can be found. This directory should be located where $OWNPAGE is found.

$CMSPATH
Relative path to the rest of the code using the values from $LCLPATH and $CMSDIR.

$OWNPAGE
The name of the startpage, default = display.php.

$ERROR_ID
String with an error-code of three numbers (ex. 001). If no errors, this one is FALSE.

$CONFIG['key']
Holds an array for all variables inside the Constants table where 'key' is the name of the variable. (Constants)

$LANG_SET
Contains the number of the active language set. Up to 4 language sets are supported and are controlled by the multi_lang parameter in table Constants.

$LANG_TXT
Contains the two-letter code for the active language. The code for each language set is mapped in table Constants using language_set_1 to language_set_4.

$CONT_ID
Contains the content number which should be displayed. This number is found in table Content.

$CONTENT['key']
This array holds all necessary information concerning the requested $CONT_ID. This is controlled by the core_content_full fcuntion.

Navigation