$current_url = substr($current_url, -1) == "-" ? substr($current_url, 0, -1) : $current_url;
    $domain = get_host();
    if (strpos($domain, "." . app_conf("DOMAIN_ROOT"))) {
        $sub_domain = str_replace("." . app_conf("DOMAIN_ROOT"), "", $domain);
        if ($sub_domain != '') {
            $_GET['sub_domain'] = $sub_domain;
        }
    }
}
unset($_REQUEST['rewrite_param']);
unset($_GET['rewrite_param']);
//引入时区配置及定义时间函数
if (function_exists('date_default_timezone_set')) {
    date_default_timezone_set(app_conf('DEFAULT_TIMEZONE'));
}
//end 引入时区配置及定义时间函数
if (file_exists(APP_ROOT_PATH . "public/runtime/~core.php")) {
    require APP_ROOT_PATH . "public/runtime/~core.php";
} else {
    $key_file = APP_ROOT_PATH . "license";
    if (!file_exists($key_file)) {
        die("domain not1 authorized");
    } else {
        $str = @file_get_contents($key_file);
        require_once APP_ROOT_PATH . "system/utils/es_key.php";
        $es_key = new es_key(64);
        $str = $es_key->decrypt($str, "FANWEO2O");
        @file_put_contents(APP_ROOT_PATH . "public/runtime/~core.php", $str);
        require APP_ROOT_PATH . "public/runtime/~core.php";
    }
}
 private function initChecker()
 {
     $str = @file_get_contents(FANWE_ROOT . "license");
     $es_key = new es_key(64);
     $str = $es_key->decrypt($str, "FANWESHARE");
     $arr = explode("|", base64_decode($str));
     $arr = unserialize($arr[1]);
     foreach ($arr as $k => $v) {
         $arr[$k] = base64_decode(base64_decode($v));
     }
     $host = $_SERVER['HTTP_HOST'];
     $host = explode(":", $host);
     $host = $host[0];
     $passed = false;
     foreach ($arr as $k => $v) {
         if (substr($v, 0, 2) == '*.') {
             $preg_str = substr($v, 2);
             if (preg_match("/" . $preg_str . "\$/", $host) > 0) {
                 $passed = true;
                 break;
             }
         }
     }
     if (!$passed) {
         if (!in_array($host, $arr)) {
             return false;
         }
     }
     return true;
 }