Location: PHPKode > scripts > ImgPals Photo Host > pages.php
<?php
################################################################################################ 
################################################################################################
#                  ___           ___           ___         ___                         ___     #
#    ___          /__/\         /  /\         /  /\       /  /\                       /  /\    #
#   /  /\        |  |::\       /  /:/_       /  /::\     /  /::\                     /  /:/_   #
#  /  /:/        |  |:|:\     /  /:/ /\     /  /:/\:\   /  /:/\:\    ___     ___    /  /:/ /\  #
# /__/::\      __|__|:|\:\   /  /:/_/::\   /  /:/~/:/  /  /:/~/::\  /__/\   /  /\  /  /:/ /::\ #
# \__\/\:\__  /__/::::| \:\ /__/:/__\/\:\ /__/:/ /:/  /__/:/ /:/\:\ \  \:\ /  /:/ /__/:/ /:/\:\#
#    \  \:\/\ \  \:\~~\__\/ \  \:\ /~~/:/ \  \:\/:/   \  \:\/:/__\/  \  \:\  /:/  \  \:\/:/~/:/#
#     \__\::/  \  \:\        \  \:\  /:/   \  \::/     \  \::/        \  \:\/:/    \  \::/ /:/ #
#     /__/:/    \  \:\        \  \:\/:/     \  \:\      \  \:\         \  \::/      \__\/ /:/  #
#     \__\/      \  \:\        \  \::/       \  \:\      \  \:\         \__\/         /__/:/   #
#                 \__\/         \__\/         \__\/       \__\/                       \__\/    #
################################################################################################
################################################################################################
#                                                                                              #
# Version 1.0                                                                                  #
#                                                                                              #
# Copyright © 2012 ImgPals Photo Hosting                                                       #
#                                                                                              #
# Author Dean (Gravy)                                                                          #
#                                                                                              #
# Chat Module is NULLED CometChat                                                              #
#                                                                                              #
# File : pages.php                                                                             #
#                                                                                              #
################################################################################################
################################################################################################
include "header.php";
//Okay we need to grab the page set forth by the url id
if ($_GET['id'] == ''){
    echo "Sorry no page here, now go away!";
}else{
    if (!empty($_GET['id'])){
        $pid = $_GET['id'];
        $sql_page = mysql_query("SELECT * FROM pages WHERE id = '$pid'");
        $rp = mysql_fetch_array($sql_page);
        $pagename = $rp['linkname'];
        $active = $rp['active'];
        $pagebody = $rp['body'];
        $front = $rp['front'];
        $dateCreated = $rp['date_created'];
        $dateEdited = $rp['date_edited'];
        if ($active == '0'){
            echo "This page has been de-activated, go away!";
        }else{
          echo "<div id='div-pages'><h2>$pagename</h2><br /><br />$pagebody</div>";  
        }
    }
}
include "footer.php";
?>
Return current item: ImgPals Photo Host