oSystem=&$oSystem; } function gLog($sAction,$oUserData=false) { if($oUserData===false) { $asInsert["ClientPK"] =$this->oSystem->oUser->oUserData->ClientPK; $asInsert["UserPK"] =$this->oSystem->oUser->oUserData->UserPK; } else { $asInsert["ClientPK"] =$oUserData->ClientPK; $asInsert["UserPK"] =$oUserData->UserPK; } if($asInsert["ClientPK"]=="") $asInsert["ClientPK"]="NULL"; if($asInsert["UserPK"]=="") $asInsert["UserPK"]="NULL"; $asInsert["URL"]=CDatabase::gsString2SQL2($this->oSystem->oControl->gsGetCurrentApp()."::".$this->oSystem->oControl->gsGetParamList()); $asInsert["Zeit"]="now()"; $asInsert["Text"]=CDatabase::gsString2SQL2($sAction); $asInsert["IP"]="'".getenv("REMOTE_ADDR")."'"; $this->oSystem->oDB->goInsertArray("tdActionLog",$asInsert); } function gSetTraffic($lBytes) { $asInsert["Action"]=CDatabase::gsString2SQL2($this->oSystem->oControl->gsGetParamList()); $asInsert["Zeit"]="now()"; $asInsert["IP"]="'".getenv("REMOTE_ADDR")."'"; $asInsert["Traffic"]=$lBytes; $asInsert["UserPK"]=$this->oSystem->oUser->oUserData->UserPK; $asInsert["SessionID"]="'".$this->oSession->gsGetCurrentSessionID()."'"; $asInsert["AppKey"]="'".$this->oSystem->oControl->gsGetCurrentApp()."'"; if($oResult=$this->oSystem->goInsertArray("tdTraffic",$asInsert)) { } else mail("thorsten.k@kk-gbr.de","TRAFFICLOG","TEST"); } }