reportsController.php 405 B

123456789101112131415161718192021
  1. <?php
  2. class reportsController extends Staple_Controller
  3. {
  4. private $authLevel;
  5. public function _start()
  6. {
  7. $auth = Staple_Auth::get();
  8. $this->authLevel = $auth->getAuthLevel();
  9. if($this->authLevel < 900)
  10. {
  11. header("location:".$this->_link(array('index','index'))."");
  12. }
  13. }
  14. public function index()
  15. {
  16. echo "Reports";
  17. }
  18. }