endq((int)$_GET['end_qst_now'], 'end', $user); } if ($qEnd) { $q->winqst((int)$_GET['end_qst'], $user); } $qsee = ''; $qx = 0; $error = ''; Template::header('module_quest'); ?> query('SELECT `vars` FROM `actions` WHERE `vars` LIKE "?S" AND `vals` = "?s" AND `uid` = ?i LIMIT 100', "%start_quest%", "go", $user->id); while ($pl = $sp->fetch_assoc()) { $questId = str_replace('start_quest', '', $pl['vars']); $pq = db::c()->query('SELECT `id`,`name`,`info` FROM `quests` WHERE `id` = ?i', $questId)->fetch_assoc(); $qsee .= sprintf(' %sВыполнить