HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
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');
}

?>