и главное, что оно делает? зачем оно нужно?

This commit is contained in:
Igor Barkov [iwork] 2019-01-16 16:32:03 +02:00
parent afc15a384f
commit da0aed9ffc
2 changed files with 558 additions and 548 deletions

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@ if ($get == 'hps') {
if (isset($_GET['quid'])) { if (isset($_GET['quid'])) {
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `delete` = "0" AND `min_lvl` <= "' . $user['level'] . '" AND `max_lvl` >= "' . $user['level'] . '" AND `id` = "' . mysql_real_escape_string($_GET['quid']) . '" LIMIT 1')); $pl = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `delete` = "0" AND `min_lvl` <= "' . $user['level'] . '" AND `max_lvl` >= "' . $user['level'] . '" AND `id` = "' . mysql_real_escape_string($_GET['quid']) . '" LIMIT 1'));
if (isset($pl['id']) && $q->testGood($pl, $user['id']) == 1) { if (isset($pl['id']) && $q->testGood($pl, $user['id']) == 1) {
echo $q->startq($pl['id'], null, $user['id']); echo $q->startq($pl['id'], $user['id']);
} elseif ($q->testGood($pl, $user['id']) == 2) { } elseif ($q->testGood($pl, $user['id']) == 2) {
$status = 'У вас уже есть такое задание ...'; $status = 'У вас уже есть такое задание ...';
} elseif ($q->testGood($pl, $user['id']) == 3) { } elseif ($q->testGood($pl, $user['id']) == 3) {