From 3789a003c4a9701d69c590cdefc79bdcf6e8bd71 Mon Sep 17 00:00:00 2001 From: "zhenjiang.dou" Date: Fri, 30 Dec 2016 14:18:21 +0800 Subject: [PATCH] update --- core.php | 2 +- js/common.js | 3 +-- locales/languages.json | 10 +--------- login.php | 6 +----- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/core.php b/core.php index 1eb3d61..f857c30 100644 --- a/core.php +++ b/core.php @@ -5,7 +5,7 @@ $description = "uiisc, freewebhost, webhost, Crogram"; $rooturl = $_SERVER['HTTP_HOST']; $domain = preg_replace('/^www\./', '', $rooturl); - $static_release = "2016122717430333"; + $static_release = "crogram_build_20161230"; function curlrequest($url, $data, $method="post") { $ch = curl_init(); // 初始化CURL句柄 curl_setopt($ch, CURLOPT_URL, $url); // 设置请求的URL diff --git a/js/common.js b/js/common.js index 7408d5f..fb02a27 100644 --- a/js/common.js +++ b/js/common.js @@ -2,7 +2,7 @@ jQuery.i18n.properties({ name: 'lang', path: './locales/', mode: 'both', - language: 'zh_CN', + // language: 'zh_CN', checkAvailableLanguages: true, async: true, cache: true, @@ -19,7 +19,6 @@ jQuery.i18n.properties({ } }); if (window.location.pathname == "/login.php") { - console.log(jQuery.i18n.map["language"]); jQuery("input[name=language]").attr("value", jQuery.i18n.map["language"]) } } diff --git a/locales/languages.json b/locales/languages.json index cecad42..50aee77 100644 --- a/locales/languages.json +++ b/locales/languages.json @@ -1,9 +1 @@ -{ - "languages": [ - "zh_CN", - "zh_TW", - "en_US", - "en_GB", - "ko_KR" - ] -} \ No newline at end of file +{"languages":["zh_CN","zh_TW","en_US","en_GB","ko_KR"]} \ No newline at end of file diff --git a/login.php b/login.php index 0873eed..107c3e4 100644 --- a/login.php +++ b/login.php @@ -26,13 +26,9 @@ -