AntiBK/admin/module/hpmp.php

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