function nextPage($next, $separator, $pages) { global $paged; if (empty($paged)) { $paged = 1; } if (empty($next)) { $next = '»'; } if ($paged != $pages) { echo ' ' . $separator . ' <a class="btn next" href="' . fixCategory(get_pagenum_link($paged + 1)) . '">' . $next . '</a>'; } }
$comment = htmlentities(htmlspecialchars($_POST["comment_details"])); $by = htmlentities(htmlspecialchars($_POST["comment_by"])); $topic = htmlentities(htmlspecialchars($_POST["topic"])); $topicid = htmlentities(htmlspecialchars($_POST["topicid"])); $reply = $forum->comment($comment, $by, $topicid, date("Y-m-d H:i:m", time())); if ($reply == true) { echo '<p class="center fancy error">Comment Posted succesfully</p>' . $forum->getTopicSpecView($topic, $topicid); } else { echo '<p class="center fancy error">Unable to post topic, an Error occured.</p>' . $forum->getTopicSpecView($topic, $topicid); } } if (isset($_POST["config"])) { $user_id = $_SESSION['user_id']; $qCount = htmlentities(htmlspecialchars($_POST["qCount"])); $qC = htmlentities(htmlspecialchars($_POST["qCategory"])); $qCat = fixCategory($qC); $qS = htmlentities(htmlspecialchars($_POST["qStyle"])); $qTime = htmlentities(htmlspecialchars($_POST["qTime"])); if ($qS == "Random") { $qStyle = 1; } else { $qStyle = 0; } $evaluation = new Evaluation(); //check if user has configured evaluation before if true, reset values, else configure new values //$evaluation->configureEValuation($user_id, $qCount, $qCat, $qStyle, $qTime); echo $evaluation->startEvaluation($user_id, $qCount, $qCat, $qStyle, $qTime); } if (isset($_POST["continueEval"])) { $evaluation = new Evaluation(); $user_id = $_SESSION['user_id'];