.
*/
define("MODULE_FAIL", "You cannot access this module directly.
\n",true);
if(!defined("MODULE_FILE"))
{
die(MODULE_FAIL);
}
global $db;
if(!isset($_GET['id']))
{
//ReportError("No page has been requested.
\n");
// return 1;
$id = 1; //makes it so that the default page is the home page
}else{
$id = $_GET['id'];
}
$result = $db->Query("SELECT u.username AS author, p.page_created, p.title, p.text FROM `bayonet_pages` AS p LEFT OUTER JOIN `bayonet_users` AS u ON u.user_id = p.author_id WHERE p.page_id = '$id'");
$proceed = mysql_num_rows($result);
if($proceed > 0)
{
while(($row = $db->Fetch($result))!==false)
{
$page = $row;
OpenTable();
echo "