auditController.php 472 B

123456789101112131415161718192021222324
  1. <?php
  2. class auditController extends Staple_Controller
  3. {
  4. public function _start()
  5. {
  6. $auth = Staple_Auth::get();
  7. $this->authLevel = $auth->getAuthLevel();
  8. if($this->authLevel < 900)
  9. {
  10. header("location:".$this->_link(array('index','index'))."");
  11. }
  12. }
  13. public function index()
  14. {
  15. $audit = new auditModel();
  16. $auditLog = $audit->getAll();
  17. $this->view->audit = $auditLog;
  18. }
  19. }
  20. ?>