Сборос не нужен так как параметры изменены.
This commit is contained in:
parent
a4de6c51a3
commit
c181c8eb1e
@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
//require_once '../functions.php';
|
//require_once '../functions.php';
|
||||||
if (empty($user['admin'])) {
|
$user = new User($_SESSION['uid']);
|
||||||
|
if (!$user->admin) {
|
||||||
header("HTTP/1.0 404 Not Found");
|
header("HTTP/1.0 404 Not Found");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -63,21 +64,6 @@ if ($_POST['ali']) { //Что делает эта штука?
|
|||||||
db::c()->query('INSERT INTO `aligns` (`align`,`img`,`name`,`accses`) VALUES ("?s","?s","?s","?s") ON DUPLICATE KEY UPDATE `img` = "?s", `name` = "?s", `accses` = "?s"', $_POST['ali'], $_POST['im'], $_POST['txt'], imp($accs), $_POST['im'], $_POST['txt'], imp($accs));
|
db::c()->query('INSERT INTO `aligns` (`align`,`img`,`name`,`accses`) VALUES ("?s","?s","?s","?s") ON DUPLICATE KEY UPDATE `img` = "?s", `name` = "?s", `accses` = "?s"', $_POST['ali'], $_POST['im'], $_POST['txt'], imp($accs), $_POST['im'], $_POST['txt'], imp($accs));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_POST['sbr_par']) {
|
|
||||||
$sb_pers = db::c()->query('SELECT `id`, `nextup`, `level` FROM `users` WHERE `login` = "?s" LIMIT 1', $_POST['sbr_par'])->fetch_assoc_array();
|
|
||||||
undressall($sb_pers['id']);
|
|
||||||
$levelstats = statsat($sb_pers['nextup']);
|
|
||||||
//Ох боюсь я за этот запрос!
|
|
||||||
db::c()->query('
|
|
||||||
UPDATE `users`
|
|
||||||
SET `stats` = ?i, `sila` = ?i, `lovk` = ?i, `inta` = ?i, `intel` = ?i, `vinos` = ?i,
|
|
||||||
`maxhp` = ?i, `master` = ?i, `noj` = ?i, `mec` = ?i, `topor` = ?i, `dubina` = ?i,
|
|
||||||
`mlight` = ?i, `mgray` = ?i, `mdark` = ?i
|
|
||||||
WHERE `id` = ?i',
|
|
||||||
($levelstats['stats'] - 9), 3, 3, 3, 0, $levelstats['vinos'], ($levelstats['vinos'] * 6), $levelstats['master'], 0, 0, 0, 0, 0, 0, 0, $sb_pers['id']);
|
|
||||||
echo "<span class='success'>Все прошло удачно. Персонаж может перераспределить параметры.</span>";
|
|
||||||
}
|
|
||||||
|
|
||||||
$aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
|
$aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -247,10 +233,6 @@ $aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `al
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
<form method=post>
|
|
||||||
<legend>Сброс параметров персонажа</legend>
|
|
||||||
<input name='sbr_par' placeholder="Логин"> <input type=submit value='Применить'></form>
|
|
||||||
|
|
||||||
<form method=post>
|
<form method=post>
|
||||||
<legend><a href='#' onclick='show("sk2")'>Добавить вещь</a></legend>
|
<legend><a href='#' onclick='show("sk2")'>Добавить вещь</a></legend>
|
||||||
<div id=sk2 style='display:none;'>
|
<div id=sk2 style='display:none;'>
|
||||||
|
Loading…
Reference in New Issue
Block a user