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/SpecialController.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'h-source/Application/Controllers/SpecialController.php') 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