Admin_Activity_Logger - Version 1.0.1

Version Notes

Fixed cron job issue and header already exists issue.

Download this release

Release Info

Developer Commerce Bees
Extension Admin_Activity_Logger
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

CommerceBees_Admin_Activity_Logger_Extension_Guide_V1.0.0 .pdf → CommerceBees_Admin_Activity_Logger_Extension_Guide_V1.0.1 .pdf RENAMED
File without changes
app/code/community/Ameex/Adminlog/Block/Adminhtml/GridContainer.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Block_Adminhtml_GridContainer extends Mage_Adminhtml_Block_Widget_Grid_Container
3
  {
4
  public function __construct()
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Block_Adminhtml_GridContainer extends Mage_Adminhtml_Block_Widget_Grid_Container
8
  {
9
  public function __construct()
app/code/community/Ameex/Adminlog/Block/Adminhtml/GridContainer/Grid.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Block_Adminhtml_GridContainer_Grid extends Mage_Adminhtml_Block_Widget_Grid
3
  {
4
  public function __construct()
@@ -85,4 +90,4 @@ class Ameex_Adminlog_Block_Adminhtml_GridContainer_Grid extends Mage_Adminhtml_B
85
  ));
86
  return $this;
87
  }
88
- }
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Block_Adminhtml_GridContainer_Grid extends Mage_Adminhtml_Block_Widget_Grid
8
  {
9
  public function __construct()
90
  ));
91
  return $this;
92
  }
93
+ }
app/code/community/Ameex/Adminlog/Helper/Data.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Helper_data extends Mage_Core_Helper_Abstract
3
  {
4
- }
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Helper_data extends Mage_Core_Helper_Abstract
8
  {
9
+ }
app/code/community/Ameex/Adminlog/Model/Adminlog.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Model_Adminlog extends Mage_Core_Model_Abstract
3
  {
4
  protected function _construct()
@@ -6,4 +11,4 @@ class Ameex_Adminlog_Model_Adminlog extends Mage_Core_Model_Abstract
6
  parent::_construct();
7
  $this->_init('adminlog/adminlog');
8
  }
9
- }
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Model_Adminlog extends Mage_Core_Model_Abstract
8
  {
9
  protected function _construct()
11
  parent::_construct();
12
  $this->_init('adminlog/adminlog');
13
  }
14
+ }
app/code/community/Ameex/Adminlog/Model/Observer.php CHANGED
@@ -1,11 +1,17 @@
1
  <?php
 
 
 
 
 
2
 
3
  class Ameex_Adminlog_Model_Observer
4
  {
5
 
6
  public function getLog()
7
  {
8
- //echo "<pre>";
 
9
  $request = Mage::app()->getRequest();
10
  $actionName = $request->getActionName();
11
  $controllerName = $request->getControllerName();
@@ -18,13 +24,13 @@ class Ameex_Adminlog_Model_Observer
18
 
19
  $adminlog = Mage::getModel('adminlog/adminlog');
20
  $dynamicValues = $this->_getDynamicValues($controllerName);
21
- //print_r($dynamicValues);
22
  $currentId = $request->getParam($dynamicValues[0]);
23
  $storeId = $request->getParam('store');
24
  $store = Mage::getModel('core/store')->load($storeId);
25
 
26
  if ($user) {
27
-
 
28
  $data['user_id'] = $user->getUserId();
29
  $data['user_email'] = $user->getEmail();
30
  $data['remote_ip'] = Mage::helper('core/http')->getRemoteAddr();
@@ -38,20 +44,20 @@ class Ameex_Adminlog_Model_Observer
38
  if (!empty($dynamicValues)) {
39
  if (($actionName == "save") && ($dynamicValues[1] == "catalog/product")) {
40
  $product = $request->getParam('product');
41
- echo $data['additional_info'] = $dynamicValues[3] . $product['sku'];
42
  } elseif (($actionName == "save") && ($dynamicValues[1] == "customer/customer")) {
43
- echo $account = $request->getParam('account');
44
- echo $data['additional_info'] = $dynamicValues[3] . $account['firstname'] . " " . $account['lastname'];
45
  } elseif ($actionName == "save") {
46
- echo $data['additional_info'] = $dynamicValues[3] . $request->getParam($dynamicValues[4]);
47
  } elseif (($actionName == "new")) {
48
- echo $data['additional_info'] = "Tried to create a new " . $entity;
49
  } elseif (($actionName == "duplicate")) {
50
  $productId = $request->getParam('id');
51
  $_product = Mage::getModel('catalog/product')->load($productId);
52
- echo $data['additional_info'] = "Duplicated the " . $entity." ".$_product['sku'];
53
  } elseif (($actionName == "delete")) {
54
- echo $data['additional_info'] = "Deleted the " . $entity;
55
  }
56
 
57
  } else {
@@ -88,6 +94,8 @@ class Ameex_Adminlog_Model_Observer
88
 
89
  public function cleanLog($observer)
90
  {
 
 
91
  $isExpire = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_expire');
92
  $time = time();
93
  $to = date('Y-m-d H:i:s', $time);
@@ -107,10 +115,11 @@ class Ameex_Adminlog_Model_Observer
107
 
108
  protected function _isLogNeeded($actionName, $implodedControllerName)
109
  {
 
 
110
  $isActive = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_enable');
111
  $excludedActions = array('index','validate','edit','grid');
112
-
113
  return (($isActive == 1) && !in_array($actionName, $excludedActions) && ($implodedControllerName != 'Adminlog'));
114
  }
115
 
116
- }
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
 
8
  class Ameex_Adminlog_Model_Observer
9
  {
10
 
11
  public function getLog()
12
  {
13
+ /*get the current path details */
14
+
15
  $request = Mage::app()->getRequest();
16
  $actionName = $request->getActionName();
17
  $controllerName = $request->getControllerName();
24
 
25
  $adminlog = Mage::getModel('adminlog/adminlog');
26
  $dynamicValues = $this->_getDynamicValues($controllerName);
 
27
  $currentId = $request->getParam($dynamicValues[0]);
28
  $storeId = $request->getParam('store');
29
  $store = Mage::getModel('core/store')->load($storeId);
30
 
31
  if ($user) {
32
+ /* Get the user details */
33
+
34
  $data['user_id'] = $user->getUserId();
35
  $data['user_email'] = $user->getEmail();
36
  $data['remote_ip'] = Mage::helper('core/http')->getRemoteAddr();
44
  if (!empty($dynamicValues)) {
45
  if (($actionName == "save") && ($dynamicValues[1] == "catalog/product")) {
46
  $product = $request->getParam('product');
47
+ $data['additional_info'] = $dynamicValues[3] . $product['sku'];
48
  } elseif (($actionName == "save") && ($dynamicValues[1] == "customer/customer")) {
49
+ $account = $request->getParam('account');
50
+ $data['additional_info'] = $dynamicValues[3] . $account['firstname'] . " " . $account['lastname'];
51
  } elseif ($actionName == "save") {
52
+ $data['additional_info'] = $dynamicValues[3] . $request->getParam($dynamicValues[4]);
53
  } elseif (($actionName == "new")) {
54
+ $data['additional_info'] = "Tried to create a new " . $entity;
55
  } elseif (($actionName == "duplicate")) {
56
  $productId = $request->getParam('id');
57
  $_product = Mage::getModel('catalog/product')->load($productId);
58
+ $data['additional_info'] = "Duplicated the " . $entity." ".$_product['sku'];
59
  } elseif (($actionName == "delete")) {
60
+ $data['additional_info'] = "Deleted the " . $entity;
61
  }
62
 
63
  } else {
94
 
95
  public function cleanLog($observer)
96
  {
97
+ /* log maintain details */
98
+
99
  $isExpire = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_expire');
100
  $time = time();
101
  $to = date('Y-m-d H:i:s', $time);
115
 
116
  protected function _isLogNeeded($actionName, $implodedControllerName)
117
  {
118
+ /*Filter the log actions */
119
+
120
  $isActive = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_enable');
121
  $excludedActions = array('index','validate','edit','grid');
 
122
  return (($isActive == 1) && !in_array($actionName, $excludedActions) && ($implodedControllerName != 'Adminlog'));
123
  }
124
 
125
+ }
app/code/community/Ameex/Adminlog/Model/Observer2.php DELETED
@@ -1,193 +0,0 @@
1
- <?php
2
-
3
- class Ameex_Adminlog_Model_Observer
4
- {
5
- public function getLog()
6
- { if(!isset($_COOKIE['path'])) {
7
- setcookie($_COOKIE['path'],' ');;
8
- }
9
- $isActive = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_enable');
10
- $request = Mage::app()->getRequest();
11
- //echo "<pre>";
12
- // print_r($request->getRequestedRouteName());
13
- // print_r(get_class_methods($request));
14
- $currentPath = $request->getOriginalPathInfo();
15
-
16
- if(($isActive == 1) && ($currentPath != $_COOKIE['path'])) {
17
- $openActions = array('Index','Validate','Edit','Grid');
18
- $request = Mage::app()->getRequest();
19
- $fullPathInfo = $request->getOriginalPathInfo();
20
- setcookie($_COOKIE['path'],$fullPathInfo);
21
- $controllerName = $request->getControllerName();
22
- $newActionControllerName = explode('_',$controllerName);
23
- $newActionControllerName = end($newActionControllerName);
24
- $implodedControllerName = implode(' => ', array_map('ucfirst', explode('_', $controllerName)));
25
- $actionName = ucwords($request->getActionName());
26
- $adminlog = Mage::getModel('adminlog/adminlog');
27
- $adminLogLastItem = $adminlog->getCollection()->getLastItem();
28
- $lastItemControllerName = $adminLogLastItem->getControllerPath();
29
- $lastItemActionName = $adminLogLastItem->getActionPath();
30
- $lastItemSectionId = $adminLogLastItem->getSectionId();
31
- $id = $this->getDynamicVal($controllerName);
32
- $activeId = $request->getParam($id[0]);
33
- $adminlog->setSectionId($activeId);
34
- if((!in_array($actionName,$openActions) && ($implodedControllerName != 'Adminlog'))) {
35
- $moduleName = $request->getModulename();
36
- $currentPath = $request->getOriginalPathInfo();
37
-
38
- $storeId = $request->getParam('store');
39
- $store = Mage::getModel('core/store')->load($storeId);
40
- $storeName = $store->getName();
41
-
42
- $adminSession = Mage::getSingleton('admin/session');
43
- $user = $adminSession->getUser();
44
- if ($user) {
45
- $userId = $user->getUserId();
46
- $userName = $user->getName();
47
- $userEmail = $user->getEmail();
48
- $remoteIp = Mage::helper('core/http')->getRemoteAddr();
49
-
50
- $adminlog->setCustomerId($userId);
51
- $adminlog->setCustomerEmail($userEmail);
52
- $adminlog->setAdminFrontname($moduleName);
53
- if($storeName) {
54
- $adminlog->setStoreName($storeName);
55
- } else {
56
- $adminlog->setStoreName("All Store Views");
57
- }
58
- $adminlog->setControllerPath(ucfirst($implodedControllerName));
59
- $adminlog->setActionPath(ucfirst($actionName));
60
-
61
-
62
- if(!empty($id)) {
63
-
64
- if(empty($id[1])) {
65
- $activeName = $activeId." ".ucwords($id[0]);
66
- } else {
67
- $activeName = Mage::getModel($id[1])->load($activeId)->getData($id[2]);
68
- }
69
- if (($actionName == "Save") && ($id[1] == "catalog/product")) {
70
- $activeName= $request->getParam('product');
71
- $adminlog->setAdditionalInfo($id[3]." ".$activeName['sku']);
72
- } else if (($actionName == "Save") && ($id[1] == "customer/customer")) {
73
- $activeName = $request->getParam('account');
74
- $adminlog->setAdditionalInfo($id[3]." ".$activeName['firstname']." ".$activeName['lastname']);
75
- } else if($actionName == "Save") {
76
- $activeName = $id[3]." ".$request->getParam($id[4]);
77
- $adminlog->setAdditionalInfo($activeName);
78
- } else if (($actionName == "New")) {
79
- $adminlog->setAdditionalInfo("Trying to create a new ".$newActionControllerName);
80
- }
81
- else if (($actionName == "Duplicate")) {
82
-
83
- $adminlog->setAdditionalInfo("Duplicated the ".$newActionControllerName);
84
- }
85
- else if (($actionName == "Delete")) {
86
-
87
- $adminlog->setAdditionalInfo("Deleted the ".$newActionControllerName);
88
- }
89
- } else {
90
- $adminlog->setAdditionalInfo("Modified Content is:"." ".str_replace("=>", " ",$implodedControllerName)." Section");
91
- }
92
- $urlPath = $moduleName."/".$controllerName."/".lcfirst($actionName);
93
- $adminlog->setViewPath($urlPath);
94
- $adminlog->setViewedAt(time());
95
- $adminlog->setRemoteIp($remoteIp);
96
-
97
- $adminlog->save();
98
- }
99
- }
100
- }
101
- }
102
-
103
-
104
- public function getDynamicVal($controllerName)
105
- {
106
- switch ($controllerName) {
107
- case 'customer':
108
- return array('id', 'customer/customer', 'name','Saved Customer Name Is :','firstname');
109
- break;
110
- case 'catalog_product':
111
- return array('id','catalog/product', 'sku','Saved Product Sku Is :','sku');
112
- break;
113
- case 'cms_page':
114
- return array('page_id','cms/page','title','Saved Cms Page Title Is :','title');
115
- break;
116
- case 'cms_block':
117
- return array('block_id','cms/block','title','Saved Cms Block Title Is :','title');
118
- break;
119
- case 'system_config':
120
- return array('section','','','Saved Section Is :','section');
121
- break;
122
- default:
123
- return '';
124
- break;
125
- }
126
- }
127
-
128
- public function cleanLog($observer)
129
- {
130
- $isExpire = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_expire');
131
- $time = time();
132
- $to = date('Y-m-d H:i:s', $time);
133
- $logs = Mage::getResourceModel('adminlog/adminlog_collection')
134
- ->addFieldToSelect('id')
135
- ->addFieldToSelect('viewed_at');
136
- foreach ($logs as $log) {
137
- $time1 = new DateTime($log->getViewedAt());
138
- $time2 = new DateTime($to);
139
- $interval = $time1->diff($time2);
140
- $daysExpire = $interval->d;
141
- if($daysExpire > $isExpire){
142
- $log->delete();
143
- }
144
- }
145
- }
146
-
147
- public function modelSaveAfter($observer)
148
- {
149
-
150
- $isActive = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_enable');
151
- if($isActive == 1) {
152
- $adminSession = Mage::getSingleton('admin/session');
153
- $user = $adminSession->getUser();
154
- $openControllerNames = array("Index => Event","CatalogInventory => Stock");
155
- $requestModuleName = Mage::app()->getRequest()->getModulename();
156
- $request = $observer->getEvent()->getObject();
157
- echo $requestModelName = get_class($request);
158
- echo "<pre>";
159
- // print_r($request->getData());
160
- if($requestModelName == "Ameex_Adminlog_Model_Adminlog"){
161
- return;
162
- }
163
- $implodedRequestModelName = explode('_', $requestModelName);
164
- $controllerName = $implodedRequestModelName[1]." => ".$implodedRequestModelName[3];
165
- $actionName = "Save";
166
- if(($user) && (!in_array($controllerName,$openControllerNames))) {
167
- $storeId = $request->getStoreId();
168
- $store = Mage::getModel('core/store')->load($storeId);
169
- $storeName = $store->getName();
170
- $userId = $user->getUserId();
171
- $userEmail = $user->getEmail();
172
- $remoteIp = Mage::helper('core/http')->getRemoteAddr();
173
- $adminlog = Mage::getModel('adminlog/adminlog');
174
- $adminlog->setCustomerId($userId);
175
- $adminlog->setCustomerEmail($userEmail);
176
- $adminlog->setAdminFrontname($requestModuleName);
177
- $adminlog->setControllerPath(ucfirst($controllerName));
178
- $adminlog->setActionPath($actionName);
179
- $adminlog->setAdditionalInfo(1);
180
- $adminlog->setSectionId(1);
181
- if($storeName){
182
- $adminlog->setStoreName($storeName);
183
- } else {
184
- $adminlog->setStoreName("All Store Views");
185
- }
186
- $adminlog->setViewedAt(time());
187
- $adminlog->setRemoteIp($remoteIp);
188
- $adminlog->save();
189
- }
190
- }
191
- }
192
-
193
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Ameex/Adminlog/Model/Observernew.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
- class Ameex_Adminlog_Model_Observer
3
- {
4
- public function modelSaveAfter($observer)
5
- {
6
-
7
- $isActive = Mage::getStoreConfig('adminlog_options/adminlog_group/adminlog_enable');
8
- if($isActive == 1) {
9
- $adminSession = Mage::getSingleton('admin/session');
10
- $user = $adminSession->getUser();
11
- $openControllerNames = array("Index => Event","CatalogInventory => Stock");
12
- $requestModuleName = Mage::app()->getRequest()->getModulename();
13
- $request = $observer->getEvent()->getObject();
14
- echo $requestModelName = get_class($request);
15
- echo "<pre>";
16
- // print_r($request->getData());
17
- if($requestModelName == "Ameex_Adminlog_Model_Adminlog"){
18
- return;
19
- }
20
- $implodedRequestModelName = explode('_', $requestModelName);
21
- $controllerName = $implodedRequestModelName[1]." => ".$implodedRequestModelName[3];
22
- $actionName = "Save";
23
- if(($user) && (!in_array($controllerName,$openControllerNames))) {
24
- $storeId = $request->getStoreId();
25
- $store = Mage::getModel('core/store')->load($storeId);
26
- $storeName = $store->getName();
27
- $userId = $user->getUserId();
28
- $userEmail = $user->getEmail();
29
- $remoteIp = Mage::helper('core/http')->getRemoteAddr();
30
- $adminlog = Mage::getModel('adminlog/adminlog');
31
- $adminlog->setCustomerId($userId);
32
- $adminlog->setCustomerEmail($userEmail);
33
- $adminlog->setAdminFrontname($requestModuleName);
34
- $adminlog->setControllerPath(ucfirst($controllerName));
35
- $adminlog->setActionPath($actionName);
36
- $adminlog->setAdditionalInfo(1);
37
- $adminlog->setSectionId(1);
38
- if($storeName){
39
- $adminlog->setStoreName($storeName);
40
- } else {
41
- $adminlog->setStoreName("All Store Views");
42
- }
43
- $adminlog->setViewedAt(time());
44
- $adminlog->setRemoteIp($remoteIp);
45
- $adminlog->save();
46
- }
47
- }
48
- }
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Ameex/Adminlog/Model/Resource/Adminlog.php CHANGED
@@ -1,8 +1,13 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Model_Resource_Adminlog extends Mage_Core_Model_Mysql4_Abstract
3
  {
4
  protected function _construct()
5
  {
6
  $this->_init('adminlog/adminlog','id');
7
  }
8
- }
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Model_Resource_Adminlog extends Mage_Core_Model_Mysql4_Abstract
8
  {
9
  protected function _construct()
10
  {
11
  $this->_init('adminlog/adminlog','id');
12
  }
13
+ }
app/code/community/Ameex/Adminlog/Model/Resource/Adminlog/Collection.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Model_Resource_Adminlog_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
  {
4
  protected function _construct()
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Model_Resource_Adminlog_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
8
  {
9
  protected function _construct()
app/code/community/Ameex/Adminlog/Model/Resource/Setup.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup
3
  {
4
  }
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup
8
  {
9
  }
app/code/community/Ameex/Adminlog/controllers/Adminhtml/AdminlogController.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  class Ameex_Adminlog_Adminhtml_AdminlogController extends Mage_Adminhtml_Controller_Action
3
  {
4
 
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  class Ameex_Adminlog_Adminhtml_AdminlogController extends Mage_Adminhtml_Controller_Action
8
  {
9
 
app/code/community/Ameex/Adminlog/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Ameex_Adminlog>
5
- <version>1.0.0</version>
6
  </Ameex_Adminlog>
7
  </modules>
8
  <adminhtml>
@@ -74,4 +74,4 @@
74
  </ameex_adminlog>
75
  </jobs>
76
  </crontab>
77
- </config>
2
  <config>
3
  <modules>
4
  <Ameex_Adminlog>
5
+ <version>1.0.1</version>
6
  </Ameex_Adminlog>
7
  </modules>
8
  <adminhtml>
74
  </ameex_adminlog>
75
  </jobs>
76
  </crontab>
77
+ </config>
app/code/community/Ameex/Adminlog/sql/adminlog_setup/{install-1.0.0.php → install-1.0.1.php} RENAMED
@@ -1,6 +1,12 @@
1
  <?php
 
 
 
 
 
2
  $installer = $this;
3
  $installer->startSetup();
 
4
  $table = $installer->getConnection()->newTable($installer->getTable('adminlog/adminlog'))
5
  ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, 11, array(
6
  'unsigned' => true,
@@ -30,4 +36,4 @@ $table = $installer->getConnection()->newTable($installer->getTable('adminlog/ad
30
  ), 'Remote IP')
31
  ->setComment('Admin log activities');
32
  $installer->getConnection()->createTable($table);
33
- $installer->endSetup();
1
  <?php
2
+ /*
3
+ * @package : Ameex_Adminlog
4
+ * @author : Ameex
5
+ *
6
+ */
7
  $installer = $this;
8
  $installer->startSetup();
9
+ $installer->run("DROP TABLE IF EXISTS {$installer->getTable('adminlog_activities')};");
10
  $table = $installer->getConnection()->newTable($installer->getTable('adminlog/adminlog'))
11
  ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, 11, array(
12
  'unsigned' => true,
36
  ), 'Remote IP')
37
  ->setComment('Admin log activities');
38
  $installer->getConnection()->createTable($table);
39
+ $installer->endSetup();
package.xml CHANGED
@@ -1,19 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Admin_Activity_Logger</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Admin activity logger module is used to monitoring the admin user activities.</summary>
10
- <description>Admin activity logger module is used to monitoring the admin user activities. so that we can monitor the every&amp;#xD;&#xD;
11
- admin user activities and also find the modified contents.</description>
12
- <notes>Initial functionality is added in this module</notes>
13
  <authors><author><name>commercebees</name><user>CommerceBees</user><email>commercebees@ameexusa.com</email></author><author><name>parthipan p</name><user>parthipan_ameex</user><email>p.parthi001@gmail.com</email></author></authors>
14
- <date>2015-10-12</date>
15
- <time>14:14:41</time>
16
- <contents><target name="magecommunity"><dir><dir name="Ameex"><dir name="Adminlog"><dir><dir name="Block"><dir name="Adminhtml"><dir name="GridContainer"><file name="Grid.php" hash="019512f723c3c50173b7eeb705636abf"/></dir><file name="GridContainer.php" hash="8fbec0fb12dbb46a8d48687808a237ac"/></dir></dir><dir name="Helper"><file name="Data.php" hash="43438a581adc8975e1fe43983f5f3e81"/></dir><dir name="Model"><file name="Adminlog.php" hash="6d433db27deab3c8c973aa5c96fc2544"/><file name="Observer.php" hash="7fe4af496f317f0f59a2afdd5272061c"/><file name="Observer2.php" hash="4781b9c9ed4a7e13c55cab7e85f3cea5"/><file name="Observernew.php" hash="01f9551904a233b14d2673bba222f69f"/><dir name="Resource"><dir name="Adminlog"><file name="Collection.php" hash="79ec7c124a081902f7e11b8d470bddc2"/></dir><file name="Adminlog.php" hash="e850d4e71f23d83d8f6f5f53fb592f74"/><file name="Setup.php" hash="123d1a75a27a47fb08138f990aa95b8c"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdminlogController.php" hash="a4b4d72d1f95ae17fba12060612a590a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="cb4c5949af74421c60157761dc9421c3"/><file name="config.xml" hash="7fe4da27270a6ca0917b15dce13a60ac"/><file name="system.xml" hash="966a805470a697d1e3387da4f3bad3c0"/></dir><dir name="sql"><dir name="adminlog_setup"><file name="install-1.0.0.php" hash="a2113924a5963de7d50af2a6e12f0e23"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Ameex_Adminlog.xml" hash="1cfc4192209af809e8baee26113de620"/></dir></dir></target><target name="mage"><dir name="."><file name="CommerceBees_Admin_Activity_Logger_Extension_Guide_V1.0.0 .pdf" hash="40f9079c679b12bcefb247bb241194b9"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Admin_Activity_Logger</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Admin activity logger module is used to monitoring the admin user activities.</summary>
10
+ <description>Admin activity logger module is used to monitoring the admin user activities. so that we can monitor the every admin user activities and also find the modified contents.</description>
11
+ <notes>Fixed cron job issue and header already exists issue.</notes>
 
12
  <authors><author><name>commercebees</name><user>CommerceBees</user><email>commercebees@ameexusa.com</email></author><author><name>parthipan p</name><user>parthipan_ameex</user><email>p.parthi001@gmail.com</email></author></authors>
13
+ <date>2015-10-20</date>
14
+ <time>08:58:51</time>
15
+ <contents><target name="magecommunity"><dir><dir name="Ameex"><dir name="Adminlog"><dir><dir name="Block"><dir name="Adminhtml"><dir name="GridContainer"><file name="Grid.php" hash="1d0f382c80e57b9d5276e85cd5d53e09"/></dir><file name="GridContainer.php" hash="b845a89ec73c516cd9f2a6f4be32dd8f"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5eab681f0eb45807ef4d87934eba8723"/></dir><dir name="Model"><file name="Adminlog.php" hash="30e1ee8eabebf9f41a6611505bfd8c9c"/><file name="Observer.php" hash="da25905a691c84d89ceaad11f21677c8"/><dir name="Resource"><dir name="Adminlog"><file name="Collection.php" hash="6faf91265240d9d93eea1117c14389d2"/></dir><file name="Adminlog.php" hash="d2439dfa1eca2e7fa12adee995b7a3e5"/><file name="Setup.php" hash="7f24e18c0633dec4938f18d08ceac718"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdminlogController.php" hash="2bcb8d853925259d0b3ceb54a1be62ff"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="cb4c5949af74421c60157761dc9421c3"/><file name="config.xml" hash="0c8fc1881640496d88fb057514d214df"/><file name="system.xml" hash="966a805470a697d1e3387da4f3bad3c0"/></dir><dir name="sql"><dir name="adminlog_setup"><file name="install-1.0.1.php" hash="8c4d4ddf7bcc8e2a29d06c017a9c2983"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Ameex_Adminlog.xml" hash="1cfc4192209af809e8baee26113de620"/></dir></dir></target><target name="mage"><dir><dir><file name="CommerceBees_Admin_Activity_Logger_Extension_Guide_V1.0.1 .pdf" hash="40f9079c679b12bcefb247bb241194b9"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>