mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
r485
Ещё немножко красоты. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@485 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
e4001cfb65
commit
0f8ae52264
5 changed files with 45 additions and 17 deletions
|
@ -57,7 +57,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
||||||
$bb_cfg['tp_release_date'] = '08-01-2013';
|
$bb_cfg['tp_release_date'] = '08-01-2013';
|
||||||
$bb_cfg['tp_release_state'] = 'R484';
|
$bb_cfg['tp_release_state'] = 'R485';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
|
|
@ -142,6 +142,7 @@ $lang['TERMS'] = 'Terms';
|
||||||
$lang['NOTHING_HAS_CHANGED'] = 'Nothing has changed';
|
$lang['NOTHING_HAS_CHANGED'] = 'Nothing has changed';
|
||||||
$lang['AUTOCOMPLETE'] = "Password generate";
|
$lang['AUTOCOMPLETE'] = "Password generate";
|
||||||
$lang['YOUR_NEW_PASSWORD'] = "Your are new password:";
|
$lang['YOUR_NEW_PASSWORD'] = "Your are new password:";
|
||||||
|
$lang['REGENERATE'] = "Regenerate";
|
||||||
|
|
||||||
//
|
//
|
||||||
// Stats block text
|
// Stats block text
|
||||||
|
|
|
@ -1655,7 +1655,9 @@ $lang['TERMS_OFF'] = 'Я <b>не согласен</b> с этими услови
|
||||||
$lang['JAVASCRIPT_ON_REGISTER'] = 'Для регистрации необходимо включить JavaScript';
|
$lang['JAVASCRIPT_ON_REGISTER'] = 'Для регистрации необходимо включить JavaScript';
|
||||||
$lang['REGISTERED_IN_TIME'] = "В данный момент регистрация закрыта<br /><br />вы можете зарегистрироваться с 01:00 до 17:00 MSK (сейчас ". date('H:i') ." MSK)<br /><br />Приносим извинения за это временное неудобство";
|
$lang['REGISTERED_IN_TIME'] = "В данный момент регистрация закрыта<br /><br />вы можете зарегистрироваться с 01:00 до 17:00 MSK (сейчас ". date('H:i') ." MSK)<br /><br />Приносим извинения за это временное неудобство";
|
||||||
$lang['AUTOCOMPLETE'] = "Сгенерировать пароль";
|
$lang['AUTOCOMPLETE'] = "Сгенерировать пароль";
|
||||||
|
$lang['AUTOCOMPLETE'] = "Сгенерировать пароль";
|
||||||
$lang['YOUR_NEW_PASSWORD'] = "Ваш пароль: ";
|
$lang['YOUR_NEW_PASSWORD'] = "Ваш пароль: ";
|
||||||
|
$lang['REGENERATE'] = "Перегенерировать";
|
||||||
|
|
||||||
|
|
||||||
// Debug
|
// Debug
|
||||||
|
|
|
@ -1391,15 +1391,27 @@ div#autocomplete_popup div.title {
|
||||||
|
|
||||||
div#autocomplete_popup div.close {
|
div#autocomplete_popup div.close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 6px;
|
right: 7px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
top: 2px;
|
top: 7px;
|
||||||
color: red;
|
color: red;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background: url("/images/bad.gif") transparent no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#autocomplete_popup input {
|
div#autocomplete_popup input {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin: 20px 0 0;
|
margin: 20px 0 0;
|
||||||
width: 83px;
|
width: 83px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#autocomplete_popup span.regenerate {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin: 24px 0 0 8px;
|
||||||
|
background: url("/images/pic_loading.gif") transparent no-repeat;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
|
@ -13,23 +13,33 @@
|
||||||
return Math.floor(result);
|
return Math.floor(result);
|
||||||
|
|
||||||
};
|
};
|
||||||
jQuery(document).ready(function () {
|
|
||||||
jQuery("span#autocomplete").click(function () {
|
|
||||||
var string_result = ""; // Empty string
|
|
||||||
for (var i = 1; i <= 8; i++) {
|
|
||||||
string_result += array_for_rand_pass[array_rand(array_for_rand_pass)];
|
|
||||||
}
|
|
||||||
|
|
||||||
var _popup_left = (Math.ceil(window.screen.availWidth / 2) - 150);
|
var autocomplete = function (noCenter) {
|
||||||
var _popup_top = (Math.ceil(window.screen.availHeight / 2) - 50);
|
var string_result = ""; // Empty string
|
||||||
|
for (var i = 1; i <= 8; i++) {
|
||||||
|
string_result += array_for_rand_pass[array_rand(array_for_rand_pass)];
|
||||||
|
}
|
||||||
|
|
||||||
|
var _popup_left = (Math.ceil(window.screen.availWidth / 2) - 150);
|
||||||
|
var _popup_top = (Math.ceil(window.screen.availHeight / 2) - 50);
|
||||||
|
|
||||||
|
if (!noCenter) {
|
||||||
jQuery("div#autocomplete_popup").css({
|
jQuery("div#autocomplete_popup").css({
|
||||||
left:_popup_left + "px",
|
left:_popup_left + "px",
|
||||||
top:_popup_top + "px"
|
top:_popup_top + "px"
|
||||||
}).show(1000);
|
}).show(1000);
|
||||||
|
} else {
|
||||||
|
jQuery("div#autocomplete_popup").show(1000);
|
||||||
|
}
|
||||||
|
|
||||||
jQuery("input#pass, input#pass_confirm, div#autocomplete_popup input").each(function () {
|
jQuery("input#pass, input#pass_confirm, div#autocomplete_popup input").each(function () {
|
||||||
jQuery(this).val(string_result);
|
jQuery(this).val(string_result);
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
jQuery(document).ready(function () {
|
||||||
|
jQuery("span#autocomplete").click(function() {
|
||||||
|
autocomplete();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,7 +75,6 @@
|
||||||
|
|
||||||
_X = event.clientX;
|
_X = event.clientX;
|
||||||
_Y = event.clientY;
|
_Y = event.clientY;
|
||||||
console.log("X: " + _X + " Y: " + _Y);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -80,9 +89,13 @@
|
||||||
</script>
|
</script>
|
||||||
<div id="autocomplete_popup">
|
<div id="autocomplete_popup">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<div class="close" onclick="jQuery('div#autocomplete_popup').hide();">x</div>
|
<div class="close" onclick="jQuery('div#autocomplete_popup').hide();"></div>
|
||||||
<div class="title">{L_YOUR_NEW_PASSWORD}</div>
|
<div class="title">{L_YOUR_NEW_PASSWORD}</div>
|
||||||
<input value="" autocomplete="off" type="text"/>
|
<div>
|
||||||
|
<input value="" autocomplete="off" type="text"/>
|
||||||
|
<span class="regenerate" title="{L_REGENERATE}" onclick="autocomplete(true)"
|
||||||
|
title=""></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="pagetitle">{PAGE_TITLE}</h1>
|
<h1 class="pagetitle">{PAGE_TITLE}</h1>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue