diff --git a/admin/admin.php b/admin/admin.php
index c486c6c..48d4b5e 100644
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -145,7 +145,11 @@ if ($_POST['sbr_par']) {
// while($row = mysql_fetch_array($aligns)) {
$aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
while ($row = $aligns->fetch_assoc()): ?>
-
| {$row['align']} | {$row['name']} |
+ "; document.all.ali.value="=$row['align']?>"; document.all.txt.value="=$row['name']?>";'>
+ |
+ =$row['align']?> |
+ =$row['name']?> |
+
Добавить |
diff --git a/post.php b/post.php
index 67c60a2..31661b8 100644
--- a/post.php
+++ b/post.php
@@ -20,7 +20,6 @@ $razdelId = filter_input(INPUT_GET, 'razdel');
$_SESSION['receiverName'] = filter_input(INPUT_POST, 'receiverName');
$receiverId = null;
$queryItems = null;
-$allowOperations = false;
if ($_SESSION['receiverName']) {
$receiver = db::c()->query('SELECT `id`, `level`, `login` FROM `users` WHERE `login` = "?s"', $_SESSION['receiverName'])->fetch_assoc();
@@ -65,7 +64,7 @@ if ($_SESSION['receiverName']) {
}
$queryItems = db::c()->query('SELECT * FROM `inventory` WHERE `owner` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `present` = "?s" AND `artefact` = 0 ORDER BY `update` DESC', $_SESSION['uid'], null);
}
-}
+} else $allowOperations = false;
?>