session_start(); if (!isset($_SESSION['uid'])) { header('Location'); } include('config.php'); include('functions.php'); include('classes/quests_class.php'); $qEndNow = filter_input(INPUT_GET, 'end_qst_now'); $qEnd = filter_input(INPUT_GET, 'end_qst'); if ($qEndNow) $q->endq((int)$_GET['end_qst_now'], 'end', $user); if ($qEnd) $q->winqst((int)$_GET['end_qst'], $user); $qsee = ''; $qx = 0; $error = ''; ?>