AntiBK/admin/module/travm.php
Ivor Barhansky 36bf662112 code-upload (#1)
Upload code

Изменил(а) на 'README.md'

Изменил(а) на 'README.md'

Reviewed-on: https://src.lopar.us/lopar/AntiBK/pulls/1
Co-Authored-By: Ivor Barhansky <lopar@noreply.lopar.us>
Co-Committed-By: Ivor Barhansky <lopar@noreply.lopar.us>
2021-02-11 16:13:04 +00:00

22 lines
812 B
PHP

<?
defined('AntiBK') or die ("Доступ запрещен!");
$r_login = (isset($_POST['r_login'])) ?$_POST['r_login'] :"";
?>
<form method="post" action="">
<strong>Логин</strong><br>
<input type="text" name="r_login" size="25">
<input type="submit" name="submit" value="Далее"></form>
<?
if (isset($_POST['r_login']))
{
$data = $adb->selectRow("SELECT `travm_old_stat`, `travm_stat` FROM `characters` WHERE `login` = '$r_login';") or die ("Персонаж не найден!");
$o_stat = $data['travm_old_stat'];
$t_stat = $data['travm_stat'];
$sql = $adb->query(" UPDATE `characters`
SET `$t_stat` = '$o_stat',
`travm` = '0'
WHERE `login` = '$who';
");
}
?>