This commit is contained in:
zhenjiang.dou 2016-12-30 14:18:21 +08:00
parent 1f108464c2
commit 3789a003c4
4 changed files with 4 additions and 17 deletions

View file

@ -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

View file

@ -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"])
}
}

View file

@ -1,9 +1 @@
{
"languages": [
"zh_CN",
"zh_TW",
"en_US",
"en_GB",
"ko_KR"
]
}
{"languages":["zh_CN","zh_TW","en_US","en_GB","ko_KR"]}

View file

@ -26,13 +26,9 @@
<input type="text" name="uname" class="form-control" placeholder="Username" data-i18n="input_username" required autofocus>
<input type="password" name="passwd" class="form-control" placeholder="Password" data-i18n="input_password" required>
<input type="hidden" name="language" value="English" data-i18n="language">
<select class="form-control" name="theme">
<option selected>cPanel X3</option>
<option>VistaPanel</option>
</select>
<div class="checkbox">
<label>
<input type="checkbox" value="remember-me"><span data-i18n="remember_me"> Remember me</span>
<input type="checkbox" value="remember-me"><span data-i18n="remember_me">Remember me</span>
<a href="//cpanel.<?=$domain?>/lostpassword.php" data-i18n="lost_password">Lost your password?</a>
</label>
</div>