Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49

This commit is contained in:
2023-12-05 03:01:04 +02:00
committed by Ivor Barhansky
parent c51dbaeae3
commit 8be1c6cd7e
79 changed files with 12178 additions and 12956 deletions
+6 -6
View File
@@ -18,7 +18,7 @@ if (!isset($an['id'])) {
echo '<font color="red">Зверь был выгнан...</font>';
mysql_query('UPDATE `users` SET `animal` = "0" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
mysql_query('UPDATE `users_animal` SET `delete` = "' . time() . '" WHERE `uid` = "' . $u->info['id'] . '" AND `id` = "' . $an['id'] . '" AND `delete` = "0" LIMIT 1');
} elseif (isset($_GET['anml_login']) && $an['rename'] == 0) {
} elseif (isset($_GET['anml_login']) && $an['renameArrayKeys'] == 0) {
$n = 1;
function en_ru($txt)
{
@@ -43,8 +43,8 @@ if (!isset($an['id'])) {
if ($n == 1) {
mysql_query('UPDATE `users_animal` SET `name` = "' . mysql_real_escape_string($nl) . '",`rename` = "1" WHERE `uid` = "' . $u->info['id'] . '" AND `id` = "' . $an['id'] . '" AND `delete` = "0" LIMIT 1');
$an['rename'] = 1;
mysql_query('UPDATE `users_animal` SET `name` = "' . mysql_real_escape_string($nl) . '",`renameArrayKeys` = "1" WHERE `uid` = "' . $u->info['id'] . '" AND `id` = "' . $an['id'] . '" AND `delete` = "0" LIMIT 1');
$an['renameArrayKeys'] = 1;
echo '<font color="red">Вы успешно переименовали питомца в &quot;' . $nl . '&quot;</font>';
} else {
echo '<font color="red">Эта кличка не подходит</font>';
@@ -216,9 +216,9 @@ if (!isset($an['id'])) {
</td>
<td valign="top">
<div>
<div style="float:left"><?php if ($an['rename'] == 0) { ?><input type="button" onclick="top.anren();" value="Кличка"/><?php } ?> <input type="button"
onclick="if(confirm('Выгнать зверя?')){top.frames['main'].location='main.php?pet=1&delete=<?= $an['id'] ?>&rnd=<?= $code ?>'}"
value="Выгнать"/></div>
<div style="float:left"><?php if ($an['renameArrayKeys'] == 0) { ?><input type="button" onclick="top.anren();" value="Кличка"/><?php } ?> <input type="button"
onclick="if(confirm('Выгнать зверя?')){top.frames['main'].location='main.php?pet=1&delete=<?= $an['id'] ?>&rnd=<?= $code ?>'}"
value="Выгнать"/></div>
<div style="float:right"><input type="button" onclick="top.frames['main'].location='main.php?pet=1&rnd=<?= $code ?>'" class="btn" value="Обновить"/> <input type="button"
onclick="top.frames['main'].location='main.php?rnd=<?= $code ?>'"
class="btn"