1.// 加载框架引导文件
$user_agent = $_SERVER['HTTP_USER_AGENT'];
2.//定义应用目录
      define('APP_PATH', __DIR__ . '/../application/');
3.// 加载框架引导文件
      require __DIR__ . '/../thinkphp/base.php';
4.// 绑定到模块
      if(stristr($user_agent,'iPad')) {
            	hinkRoute::bind('index');
      }else if(stristr($user_agent,'Android')) {
            	hinkRoute::bind('mobile');
      }else if(stristr($user_agent,'iPhone')){
            	hinkRoute::bind('mobile');
      else{
            	hinkRoute::bind('index');
      }
    5.// 关闭路由
      	hinkApp::route(false);
6.// 设置根url
      	hinkUrl::root('');
    7.// 执行应用
      	hinkApp::run()->send();