diff --git a/module_quest.php b/module_quest.php index b8f4fb6..01186e9 100644 --- a/module_quest.php +++ b/module_quest.php @@ -7,16 +7,16 @@ include('config.php'); include('functions.php'); include('classes/quests_class.php'); -if ($_GET['end_qst_now']) { - echo $q->endq((int)$_GET['end_qst_now'], 'end', $user); -} +$qEndNow = filter_input(INPUT_GET, 'end_qst_now'); +$qEnd = filter_input(INPUT_GET, 'end_qst'); -if ($_GET['end_qst']) { - echo $q->winqst((int)$_GET['end_qst'], $user); -} +if ($qEndNow) echo $q->endq((int)$_GET['end_qst_now'], 'end', $user); + +if ($qEnd) echo $q->winqst((int)$_GET['end_qst'], $user); $qsee = ''; $qx = 0; +$error = ''; ?> @@ -24,7 +24,7 @@ $qx = 0; 404 - +