public static function syslog($msg, $actiontype = 'INFO') { $config = self::getConfig(); $r = array('username' => 'none', 'appid' => 'reagen', 'ip' => $config->browser['ip'], 'user_agent' => $config->browser['user_agent'], 'actiontype' => $actiontype, 'action' => $msg); if (isset($config->application) and isset($config->application['uid'])) { $r['appid'] = $config->application['uid']; } if (isset($config->real_user)) { $r['user'] = $config->real_user->username; } storage::int_get_storage("rea_log")->insert('system', $r); }