From 07f5140771388c9e0c8a99b0dd2e5d950bdb173b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 14 Oct 2021 15:16:42 +1100 Subject: moving h-source subdir out. --- .../Controllers/AdminhistoryController.php | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 h-source/admin/Application/Controllers/AdminhistoryController.php (limited to 'h-source/admin/Application/Controllers/AdminhistoryController.php') diff --git a/h-source/admin/Application/Controllers/AdminhistoryController.php b/h-source/admin/Application/Controllers/AdminhistoryController.php deleted file mode 100644 index 849e432..0000000 --- a/h-source/admin/Application/Controllers/AdminhistoryController.php +++ /dev/null @@ -1,68 +0,0 @@ -. - -if (!defined('EG')) die('Direct access not allowed!'); - -class AdminhistoryController extends Controller -{ - - function __construct($model, $controller, $queryString) - { - parent::__construct($model, $controller, $queryString); - - $this->load('header_back'); - $this->load('footer_back','last'); - - $this->session('admin'); - $this->model('HistoryModel'); - - $this->modelName = 'HistoryModel'; - - $this->setArgKeys(array('page:forceNat'=>1,'type:sanitizeAll'=>'undef','action:sanitizeAll'=>'undef','created_by:sanitizeAll'=>'undef','token:sanitizeAll'=>'token')); - } - - public function main() - { - $this->shift(); - - Params::$nullQueryValue = 'undef'; - - $this->s['admin']->check(); - - if (!$this->s['admin']->checkCsrf($this->viewArgs['token'])) $this->redirect('panel/main/',2,'wrong token..'); - - $this->loadScaffold('main',array('popup'=>true,'popupType'=>'inclusive','mainMenu'=>'panel','recordPerPage'=>30)); - - $whereClauseArray = array( - 'type' => $this->viewArgs['type'], - 'action' => $this->viewArgs['action'], - 'created_by'=> $this->viewArgs['created_by'], - 'gr' => '!="registered"', - ); - $this->scaffold->setWhereQueryClause($whereClauseArray); - $this->scaffold->model->orderBy('id_history desc'); - $this->scaffold->loadMain('history:id_history,history:type,history:action,getUserName|history:created_by,history:id,smartDate|history:creation_date,history:gr,history:message','history:id_history',''); - $this->scaffold->setHead('HISTORY ID,TYPE,ACTION,CREATED BY,OBJECT ID,CREATION DATE,GROUP,MESSAGE'); - $data['scaffold'] = $this->scaffold->render(); - $this->append($data); - $this->load('main'); - } - -} \ No newline at end of file -- cgit v1.2.3