File: /home/httpd/html/baretube.com/pornstar_bio.php
<?
session_start();
include('admin/db.php');
if(!is_numeric($_GET[id])) {
header("Location: /404.php");
exit();
}
$id = $_GET[id];
@mysql_query("UPDATE pornstars SET views = (views + 1) WHERE record_num = '$id'");
$cacheName = "pornstar".$id;
$cacheResult = getCache($cacheName);
if($cacheResult) {
$rrow = $cacheResult;
} else {
$result = mysql_query("SELECT * FROM pornstars WHERE record_num = '$id'") or die(mysql_error());
if(mysql_num_rows($result) < 1) {
header("Location: /404.php");
exit();
}
$rrow = mysql_fetch_assoc($result);
setCache($cacheName,$row,$overall_cache_time);
}
//EOF CACHING
$thispornstars = true;
$title = "$rrow[name] Bio";
$headertitle = "$rrow[name] Bio";
if($isMobile) {
include($basepath.'/templates/mobile.overall_header.php');
include($basepath.'/templates/mobile.pornstar_bio.php');
include($basepath.'/templates/mobile.overall_footer.php');
}
else {
include($basepath.'/templates/template.overall_header.php');
include($basepath.'/templates/template.pornstar_bio.php');
include($basepath.'/templates/template.overall_footer.php');
}
?>