ob_start("ob_gzhandler");
$oGalleryCount = $cookieGalleryCount;
if($oGalleryCount != 0 &&
$oGalleryCount != 1 &&
$oGalleryCount != 2 &&
$oGalleryCount != 3 &&
$oGalleryCount != 4 &&
$oGalleryCount != 5 &&
$oGalleryCount != 6 &&
$oGalleryCount != 7 &&
$oGalleryCount != 8)
{
// first access
setcookie ("cookieGalleryCount", 0, time()+(24*3600)); /* expire in 24 hours */
}
else
{
if($oGalleryCount > 50)
{
?>
Sorry, due to increased costs to run this site, we must limit access
to the gallery to 50 viewings per 24 hour period per visitor. |
exit;
}
setcookie ("cookieGalleryCount", $oGalleryCount + 1, time()+(24*3600)); /* expire in 24 hours */
}
session_start();
require("../common/database.php");
require("../common/utility.php");
require("../common/header_popper.php");
$objDatabase = new cDatabase();
$oBgColor = "#2288FF";
?>
// get record.
$id = $_GET['id'];
$oSql = "SELECT id, title, name, posted, filename, email, story FROM gallery_table WHERE id=$id";
$result = $objDatabase->mfQuery($oSql,"RECORDSET");
$row = mysql_fetch_array($result);
$row['title'] = stripslashes($row['title']);
$row['name'] = stripslashes($row['name']);
$row['email'] = stripslashes($row['email']);
$row['story'] = fProcess(stripslashes($row['story'])); // fProcess will convert line feeds to
tags.
$row['filename'] = stripslashes($row['filename']);
//$oUnixTime = strtotime($row['posted']);
$row['posted'] = fDate("M j, Y", $row['posted']);
?>
| echo $row['title'] ?> |
| Posted by echo $row['name'] ?>
if($row[email] != "")
echo ", ".$row['email'].", ";
?>
on echo $row['posted'] ?> |
|
if($row['story'] != "")
{
?>
|
}
?>
|