JumpUrl.class.php 488 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Cas\Controller;
  3. use KIF\Core\Request;
  4. /**
  5. * 跳转链接
  6. * lihuanchun
  7. */
  8. class JumpUrl extends EventsController {
  9. /**
  10. * 页面:默认页面
  11. */
  12. public function doDefault() {
  13. $checkResult = self::checkLoginStatus(true, Request::url());
  14. if (!$checkResult->isSuccess()) {
  15. self::redirect($checkResult->getData());
  16. }
  17. $url = Request::g('url');
  18. header ( "Location: ".urldecode($url));
  19. }
  20. public function display() {
  21. return $this->render();
  22. }
  23. }