diff --git a/WebInterface/master-site/common.php b/WebInterface/master-site/common.php index 119e180..2312882 100755 --- a/WebInterface/master-site/common.php +++ b/WebInterface/master-site/common.php @@ -210,7 +210,7 @@ function get_fourm_threads($fourm) { include('config.php'); $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'"); - $stmt = $connect->prepare("SELECT * FROM FourmThread WHERE Fourm=?"); + $stmt = $connect->prepare("SELECT * FROM FourmThread WHERE Fourm=? ORDER BY CreationTime DESC"); $stmt->bind_param("s", $fourm); $stmt->execute(); $result = $stmt->get_result(); diff --git a/WebInterface/master-site/web/forums.php b/WebInterface/master-site/web/forums.php index 95de95f..d41f9b4 100755 --- a/WebInterface/master-site/web/forums.php +++ b/WebInterface/master-site/web/forums.php @@ -5,6 +5,7 @@ include("header.php"); ?> Forum thread not found!?'); - exit(); + $nope = 1; + goto ex; } create_fourm_reply($threadId, $_SESSION['USERNAME'], $text, $forum, $_SESSION['ADMIN']); @@ -49,6 +60,13 @@ if(!is_logged_in()){ } ?>
SUPPORT ( topics) | BUGS ( topics) | GENERAL ( topics) | HORSES ( topics) | GAME ( topics) |