accountsController.php 414 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class accountsController 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 "Accounts";
  17. }
  18. }
  19. ?>