AntiBK/admin/module/hpmp.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

26 lines
943 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?
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 "Смена маны и здоровья прошли успешно";
}
?>