Properties

$mod

$mod : string

Type

string

$lang

$lang : string

Type

string

$translation

$translation : array

Type

array

$domain

$domain : string

Type

string

$domain_full

$domain_full : string

Type

string

$domain_full_without_www

$domain_full_without_www : string

Type

string

$subdomain

$subdomain : string

Type

string

$subdomain_url

$subdomain_url : string

Type

string

$subdomain_full

$subdomain_full : string

Type

string

$errors

$errors : array

Type

array

$settings

$settings : array

Type

array

$modsettings

$modsettings : array

Type

array

$tpl

$tpl : 

Type

$db

$db : 

Type

$app_version

$app_version : string

Type

string

$app_name

$app_name : string

Type

string

$request_protocol

$request_protocol : string

Type

string

$basehref

$basehref : string

Type

string

$lastpage_refresh

$lastpage_refresh : boolean

Type

boolean

$intern

$intern : boolean

Type

boolean

$root_dir

$root_dir : string

Type

string

$root_dir_server

$root_dir_server : string

Type

string

$ajaxmode

$ajaxmode : boolean

Type

boolean

$refresh

$refresh : boolean

Type

boolean

$custom_lib

$custom_lib : boolean

Type

boolean

$softmods

$softmods : array

Type

array

$defaultmod

$defaultmod : string

Type

string

$sql_fatal

$sql_fatal : boolean

Type

boolean

$session_active

$session_active : boolean

Type

boolean

Methods

_init_cron()

_init_cron() 

Init cron

_init()

_init() 

Init

_exit()

_exit() 

Exit

Template output. Redirect if necessary. Close database connection.

set_template()

set_template(string|boolean  $tpl_name = false) 

Set template

Instantiate template.

Parameters

string|boolean $tpl_name

Template name

session_start()

session_start() 

Session start

Check if session is already active. Start session.

set_sql_fatal()

set_sql_fatal() 

Set sql fatal

Set sql fatal to prevent database log loop.

get_sql_fatal()

get_sql_fatal() : boolean

Get sql fatal

Returns

boolean

get_cpu_usage()

get_cpu_usage() : string

Get cpu usage

Gets system load average.

Returns

string

get_mem_usage()

get_mem_usage() : string

Get memory usage

Returns the amount of memory allocated to PHP.

Returns

string

get_gentime()

get_gentime() : mixed

Get generation time

Returns

mixed

get_debuginfo()

get_debuginfo() : string

Get debug info

Returns

string

get_app_version()

get_app_version() : string

Get app version

Returns

string —

The app version

get_app_name()

get_app_name() : string

Get app name

Returns

string —

The app name

set_db()

set_db() 

Set database

Instantiate database connection.

set_custom_lib()

set_custom_lib() 

Set custom library

set_mods()

set_mods() 

Set modules

Define module variables.

set_defaultmod()

set_defaultmod() 

Set default module

Check if only one default module is set. Set as default module.

set_mod()

set_mod() 

Set module

Check and set module given from query string. If module not found show 404 error page.

set_lang()

set_lang() 

Set language

Set display language.

set_langs()

set_langs() 

Set languages

Get and set all possible languages.

set_translation()

set_translation() 

Set translation

Fetch all corresponding translation.

set_modlang()

set_modlang(  $lng) 

Set module language

Get and set module specific treanslations.

Parameters

$lng

set_request_protocol()

set_request_protocol() 

Set request protocol

set_basehref()

set_basehref() 

Set basehref

set_subdomain()

set_subdomain() 

Set subdomain

set_modsettings()

set_modsettings() 

Set modsettings

Fetch modsetting from actual module from database.

set_ajaxmode()

set_ajaxmode() 

Set ajax mode

Check if ajax response is requested.

set_errors()

set_errors() 

Set errors

set_settings()

set_settings() 

Set settings

Set global settings.

set_additional_settings_from_db()

set_additional_settings_from_db() 

Set additional settings from database

Required for cron to run correct.

set_locale()

set_locale() 

Set locale

get_system_vars()

get_system_vars() : string

Get system variables

Returns

string

get_included_files()

get_included_files(boolean  $get_count = false) : integer|array<mixed,string>

Get included files

Returns an array with the names of included or required files. Optional: Only return the count of included or required files.

Parameters

boolean $get_count

Returns

integer|array<mixed,string>

set_intern()

set_intern() 

Set intern

Set true if an user comes from an private ip address, otherwise false.

set_root_dir()

set_root_dir() 

Set root directory

set_root_dir_server()

set_root_dir_server() 

Set root directory server

set_app_version()

set_app_version() 

Set app version

set_app_name()

set_app_name() 

Set app name

Fetch app name from database.