endq((int)$_GET['end_qst_now'], 'end', $user); } if (!empty($_GET['end_qst'])) { $q->winqst((int)$_GET['end_qst'], $user); } $qsee = null; $error = ''; $q = new Quests(); Template::header('module_quest'); ?> fetchall('select vars from actions where vars like ? and vals = ? and uid = ? limit 100', ['%start_quest%', 'go', User::getInstance()->getId()]); //foreach ($sp as $row) { // $questId = str_replace('start_quest', '', $pl['vars']); // $pq = \Battles\Database\Db::getInstance()->fetch('select id, name, info from quests where is = ?', $questId); // $qsee .= sprintf(' %sВыполнить