code cleanind, delete deprecated files

This commit is contained in:
lopar
2019-01-15 01:47:13 +02:00
parent 94c221dfbc
commit eba7682608
23 changed files with 11 additions and 1544 deletions

View File

@@ -22,13 +22,13 @@ switch ($shopCategoryTypeNumber) {
$saleItems = true;
break;
case 1:
$shopCategoryType = "Кастеты и ножи";
$shopCategoryType = "Кинжалы";
break;
case 11:
$shopCategoryType = "Топоры";
break;
case 12:
$shopCategoryType = "Дубины и булавы";
$shopCategoryType = "Дубины";
break;
case 13:
$shopCategoryType = "Мечи";
@@ -192,7 +192,7 @@ if (!empty($_GET['buy'])) {
db::c()->query('INSERT INTO `inventory` SET ?A[?i,?i,"?s",?i,?i,?i,"?s",?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i,?i]', $newItem);
$inventoryItemId = db::c()->getLastInsertId();
if ($dress['count'] != -1) db::c()->query('UPDATE `shop` SET `count` = `count` - 1 WHERE `id` = ?i', $_GET['buy']);
$status = "Вы купили \"{$dress['name']}\".";
$status = "Вы купили «{$dress['name']}» за {$dress['cost']} кр.";
db::c()->query('UPDATE `users` set `money` = ?i WHERE `id` = ?i', $dress['cost'], $_SESSION['uid']);
$deloText = "{$user['login']} купил товар «{$dress['name']}» id:({$inventoryItemId}) в магазине за {$dress['cost']} кр.";
addToDelo($deloText);
@@ -210,9 +210,6 @@ if (!empty($_GET['buy'])) {
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.simplemodal.js"></script>
<script src="js/jquery.ui.js?100"></script>
<script src="js/mi.js"></script>
<link rel="stylesheet" href="css/bkstyle.css?101"/>
<link rel="stylesheet" href="css/mi.css"/>
<script>
function leave() {
top.frames['main'].location = 'city.php?cp'
@@ -274,9 +271,9 @@ if (!empty($_GET['buy'])) {
<a href="shop.php?otdel=sale&rnd=<?= mt_rand() ?>">Продать вещи</a>
<dl>
<dt><b>Оружие:</b></dt>
<dd><a href="shop.php?otdel=1&rnd=<?= mt_rand() ?>">кастеты,ножи</a></dd>
<dd><a href="shop.php?otdel=1&rnd=<?= mt_rand() ?>">кинжалы</a></dd>
<dd><a href="shop.php?otdel=11&rnd=<?= mt_rand() ?>">топоры</a></dd>
<dd><a href="shop.php?otdel=12&rnd=<?= mt_rand() ?>">дубины,булавы</a></dd>
<dd><a href="shop.php?otdel=12&rnd=<?= mt_rand() ?>">дубины</a></dd>
<dd><a href="shop.php?otdel=13&rnd=<?= mt_rand() ?>">мечи</a></dd>
<dt><b>Одежда:</b></dt>
<dd><a href="shop.php?otdel=24&rnd=<?= mt_rand() ?>">шлемы</a></dd>