dev-lopar #45

Merged
lopar merged 2 commits from dev-lopar into dev 2023-02-14 11:10:09 +00:00
Showing only changes of commit 075165d37d - Show all commits

View File

@ -1,5 +1,7 @@
<?php
/* Главный игровой файл. */
use Core\Config;
use Core\Database;
use Core\Db;
@ -93,8 +95,9 @@ $u->stats = $u->getStats($u->info['id'], 0);
lafstReg = {},
enterUse = 0;
// Проверка на совпедение города.
function ctest(city) {
if (city != c['city']) {
if (city !== c['city']) {
top.location = '/bk';
}
}
@ -585,41 +588,7 @@ $u->stats = $u->getStats($u->info['id'], 0);
});
$(window).resize();
}
</script>
<?php
if ($u->info['bithday'] == '01.01.1800') {
?>
<script>
function startRegistration() {
$.post('reg.php', {
'ajax_reg': true,
'reg_login': $('#reg_login').val(),
'reg_mail': $('#reg_mail').val(),
'reg_dd': $('#reg_dd').val(),
'reg_mm': $('#reg_mm').val(),
'reg_yy': $('#reg_yy').val(),
'reg_sex': $('#reg_sex').val(),
'reg_pass': $('#reg_pass').val(),
'reg_pass2': $('#reg_pass2').val(),
'mail_post': $('#mail_post').attr('checked')
}, function (data) {
$('#errorreg').html(data);
});
}
cc('#regblock');
</script>
<?php
} elseif (!empty($u->info['active']) && $u->info['mail'] == 'No E-mail') {
if (!empty($error)) {
echo '<script>alert("' . $error . '");</script>';
}
?>
<!-- ACTIVE -->
<?php
}
?>
<script>
var lasts = [-1, -1];
function myexpLineTop27(e1, e2) {