Pages.php 682 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Heanup\App\Api\Controller;
  3. use Heanup\App\Api\Config\Site;
  4. use Heanup\App\Api\Controller;
  5. use Heanup\App\Api\Model\Dataoke;
  6. class Pages extends Controller
  7. {
  8. protected function main()
  9. {
  10. if (isMobile()) {
  11. header("location: /tao.php");
  12. die();
  13. }
  14. $route=[
  15. 'fengqiang'=>'p',
  16. 'nine'=>'nine',
  17. 'dongdong'=>'ddq',
  18. 'haohuo'=>'l',
  19. ];
  20. $page = $this->getQuery()->string("args_0");
  21. $url = sprintf(Site::getData('site_url') . "/tao.php?r=%s", $route[$page]);
  22. $content= Dataoke::parse(file_get_contents($url));
  23. echo $content;
  24. }
  25. }