| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace Heanup\App\Api\Controller;
- use Heanup\App\Api\Config\Site;
- use Heanup\App\Api\Controller;
- use Heanup\App\Api\Model\Dataoke;
- class Pages extends Controller
- {
- protected function main()
- {
- if (isMobile()) {
- header("location: /tao.php");
- die();
- }
- $route=[
- 'fengqiang'=>'p',
- 'nine'=>'nine',
- 'dongdong'=>'ddq',
- 'haohuo'=>'l',
- ];
- $page = $this->getQuery()->string("args_0");
- $url = sprintf(Site::getData('site_url') . "/tao.php?r=%s", $route[$page]);
- $content= Dataoke::parse(file_get_contents($url));
- echo $content;
- }
- }
|