diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-14 11:37:34 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-14 11:37:34 +0000 |
commit | 2ab9d78444374d55a45b63a1693f5194a7baae60 (patch) | |
tree | 78e13a96e6d56367c931cff8f17fd89d2a4266a8 /h-source/Application/Controllers/SpecialController.php | |
parent | 120b3fbf51b0844b1bc4a4de876ddb6ac567279d (diff) |
moderators can now see all the actions carried out by users - part 1
Diffstat (limited to 'h-source/Application/Controllers/SpecialController.php')
-rw-r--r-- | h-source/Application/Controllers/SpecialController.php | 22 |
1 files changed, 22 insertions, 0 deletions
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 @@ -75,6 +75,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; } $this->helper('Pages','special/'.$this->action.'/'.$this->lang,'page'); @@ -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) |