[Vtigercrm-commits] [vtiger-commits] r7808 - /vtigercrm/trunk/index.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 14:22:09 EDT 2006
Author: saraj
Date: Tue Jul 4 12:22:06 2006
New Revision: 7808
Log:
Enabled/Disabled Audit Trail Check - ahmed
Modified:
vtigercrm/trunk/index.php
Modified: vtigercrm/trunk/index.php
==============================================================================
--- vtigercrm/trunk/index.php (original)
+++ vtigercrm/trunk/index.php Tue Jul 4 12:22:06 2006
@@ -555,13 +555,20 @@
//auditing
-$date_var = date('YmdHis');
-$query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$current_user->id.",'".$module."','".$action."',$date_var)";
-$adb->query($query);
-
+
+$qry = "select server from vtiger_systems where server_type = 'audit_trail'";
+$result = $adb->query($qry);
+$server = $adb->query_result($result,0,'server');
+
+if($server == 'enabled')
+{
+ $date_var = date('YmdHis');
+ $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$current_user->id.",'".$module."','".$action."',$date_var)";
+ $adb->query($query);
+}
//logging the security Information
-$seclog->debug('######## Module --> '.$module.' :: Action --> '.$action.' :: UserID --> '.$current_user->id.' #######');
+$seclog->debug('######## Module --> '.$module.' :: Action --> '.$action.' :: UserID --> '.$current_user->id.' :: RecordID --> '.$record.' #######');
if(!$skipSecurityCheck)
{
More information about the vtigercrm-commits
mailing list