Back to home"); } $res = mysql_query("SELECT * FROM mods WHERE mod_id=$id",$handle) or SQLerror("MySQL Query Error","Error on searching database.mods.mod_id for '$id'"); $row = mysql_fetch_row($res) or die("row error"); $page_title="View mod - {$row[1]}"; // Substitute owner ID with owner name (by Phitherek_): $r = mysql_query("SELECT name FROM users WHERE id=".$row[3],$handle) or SQLerror("MySQL Query Error","Error on getting owner name from users"); $ra = mysql_fetch_array($r); $owner = $ra['name']; // End of Phitherek_' s code include "scripts/pageheader.php"; include "scripts/formatcode.php"; if (is_member_moderator($_SESSION['user']) || $_SESSION['user']==$row[3]){ //3m Release Increasing (by Phitherek_) $links="Edit Increase 3m Release Delete"; //End of Phitherek_' s change }else{ $links=""; } echo ""; // Title and User Link echo ""; // Version echo ""; // Description echo ""; // Likes echo ""; include "scripts/loadposts.php"; include "scripts/pagefooter.php"; ?>
Download"; // Download Link echo "

{$row[1]} - by {$owner}

{$row[2]}

".formatbb($row[4])."

+
$links