From 2ab9d78444374d55a45b63a1693f5194a7baae60 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 14 Oct 2011 11:37:34 +0000 Subject: moderators can now see all the actions carried out by users - part 1 --- .../Application/Controllers/HistoryController.php | 10 +++++++++- .../Application/Controllers/SpecialController.php | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers') diff --git a/h-source/Application/Controllers/HistoryController.php b/h-source/Application/Controllers/HistoryController.php index ad2c7dd..fac65c0 100644 --- a/h-source/Application/Controllers/HistoryController.php +++ b/h-source/Application/Controllers/HistoryController.php @@ -34,7 +34,13 @@ class HistoryController extends BaseController 'device' => 'device page', 'device_app' => 'device page', 'device_cl' => 'device page', - 'issue_del' => 'issue', + 'issue_del' => 'issue', //registered + 'issue_ins' => 'issue', //registered + 'message_ins' => 'message', //registered + 'talk_ins' => 'talk', //registered + 'wiki_talk_ins' => 'wiki talk',//registered + 'hardware' => 'hardware', //registered + 'wiki' => 'wiki', //registered ); public static $actionTable = array( @@ -54,6 +60,8 @@ class HistoryController extends BaseController 'deviceclear' => 'perm deleted', 'issuehide' => 'hide', 'issueshow' => 'show', + 'insert' => 'insert', //registered + 'update' => 'update', //registered ); protected $strings = array( diff --git a/h-source/Application/Controllers/SpecialController.php b/h-source/Application/Controllers/SpecialController.php index 480c0fa..eb80582 100644 --- a/h-source/Application/Controllers/SpecialController.php +++ b/h-source/Application/Controllers/SpecialController.php @@ -74,6 +74,19 @@ class SpecialController extends BaseController $viewFile = 'modactions'; + break; + + case 'usersactions': + $data['title'] = 'last registered users actions - '.Website::$generalName; + $data['viewTitle'] = 'List of actions carried out by registered users'; + $data['user_status'] = 'USER'; + + $whereClauseArray = array( + 'gr' => 'registered', + ); + + $viewFile = 'modactions'; + break; } @@ -144,6 +157,15 @@ class SpecialController extends BaseController $this->last($lang = 'en','adminactions'); } + public function usersactions($lang = 'en') + { + $this->shift(1); + + $this->s['registered']->check('moderator'); + + $this->last($lang = 'en','usersactions'); + } + protected function pagelist($lang = 'en', $type) { switch ($type) -- cgit v1.2.3