Source for file core.class.inc.php
Documentation is available at core.class.inc.php
* Contains everything required to run a db object
* Returns the current micro time
return ((float)
$usec + (float)
$sec);
* Exits with error message
* @param string $msg Default: unspecified error
* @param string $query Default: Empty string
* @param boolean $is_error Default: true
* @param string $nr Default: Empty string
* @param string $file Default: Empty string
* @param string $source Default: Empty string
* @param string $text Default: Empty string
* @param string $line Default: Empty string
function messageQuit($msg=
'unspecified error', $query=
'', $is_error=
true, $nr=
'', $file=
'', $source=
'', $text=
'', $line=
'') {
exit("\n\n$msg\n\n$query");
* Returns the full table name based on db settings
* @param string $tbl Table name
* @return string Table name with prefix
return $this->db->config['dbase'] .
".`" .
$this->db->config['table_prefix'] .
$tbl .
"`";
* Get system settings and user settings
$rs =
$this->db->select('setting_name, setting_value', $this->getFullTableName('system_settings'));
while ($row =
$this->db->getRow($rs)) {
$this->config[$row['setting_name']] =
$row['setting_value'];
$user_id =
@$_SESSION['mgrInternalKey']; // Bypasses the normal API method. Not ideal, but unlikely to be an issue.
$rs =
$this->db->select('setting_name, setting_value', $this->getFullTableName('user_settings'), 'user='.
$user_id);
while ($row =
$this->db->getRow($rs)) {
$this->config[$row['setting_name']] =
$row['setting_value'];
Documentation generated on Fri, 21 Jun 2013 12:37:00 +0100 by phpDocumentor 1.4.4