[Vtigercrm-commits] [vtiger-commits] r7886 - /vtigercrm/trunk/index.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Jul 7 03:47:13 EDT 2006
Author: saraj
Date: Fri Jul 7 01:47:10 2006
New Revision: 7886
Log:
Updated the index php file by moving the audit trail query inside user login session - ahmed
Modified:
vtigercrm/trunk/index.php
Modified: vtigercrm/trunk/index.php
==============================================================================
--- vtigercrm/trunk/index.php (original)
+++ vtigercrm/trunk/index.php Fri Jul 7 01:47:10 2006
@@ -360,7 +360,24 @@
foreach ($moduleList as $mod) {
$moduleDefaultFile[$mod] = "modules/".$currentModule."/index.php";
}
-
+
+ //auditing
+
+ $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')
+ {
+ if($record == '')
+ $auditrecord = 0 else
+ $auditrecord = $record;
+
+ $date_var = date('YmdHis');
+ $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$current_user->id.",'".$module."','".$action."',".$auditrecord.",$date_var)";
+ $adb->query($query);
+ }
$log->debug('Current user is: '.$current_user->user_name);
}
@@ -552,24 +569,6 @@
$theme = $default_theme;
}
-
-
-//auditing
-
-$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')
-{
- if($record == '')
- $auditrecord = 0;
- else
- $auditrecord = $record;
- $date_var = date('YmdHis');
- $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$current_user->id.",'".$module."','".$action."',".$auditrecord.",$date_var)";
- $adb->query($query);
-}
//logging the security Information
$seclog->debug('######## Module --> '.$module.' :: Action --> '.$action.' :: UserID --> '.$current_user->id.' :: RecordID --> '.$record.' #######');
More information about the vtigercrm-commits
mailing list