Ivor Barhansky
36bf662112
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>
26 lines
943 B
PHP
26 lines
943 B
PHP
<?
|
||
defined('AntiBK') or die ("Доступ запрещен!");
|
||
|
||
$r_login = (isset($_POST['r_login'])) ?$_POST['r_login'] :"";
|
||
$hp = (isset($_POST['hp'])) ?$_POST['hp'] :"";
|
||
$mp = (isset($_POST['mp'])) ?$_POST['mp'] :"";
|
||
?>
|
||
<form method="post" action="">
|
||
<strong>Логин</strong><br>
|
||
<input type="text" name="r_login" size="25"><br>
|
||
<strong>НР</strong><br>
|
||
<input type="text" name="hp" size="25"><br>
|
||
<strong>Манна</strong><br>
|
||
<input type="text" name="mp" size="25"><br>
|
||
<input type="submit" name="submit" value="Вылечить"></form>
|
||
<?
|
||
if (isset($_POST['r_login']) && isset($_POST['hp']) && isset($_POST['mp']))
|
||
{
|
||
$sql = $adb->query(" UPDATE `characters`
|
||
SET `hp` = '$hp',
|
||
`mp` = '$mp'
|
||
WHERE `login` = '$login';
|
||
");
|
||
echo "Смена маны и здоровья прошли успешно";
|
||
}
|
||
?>
|