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/displayStatic.php
<?
session_start();
$id = addslashes($_GET[id]); 
include('admin/db.php');
$cacheName = "static".$id;
$cacheResult = getCache($cacheName);
if($cacheResult) {
	$row = $cacheResult;
} else {
	$result = mysql_query("SELECT * FROM static WHERE filename = '$id'") or die(mysql_error());	
	$row = mysql_fetch_assoc($result); 
}	
if(is_array($row)) { 
	$title = $row[title];
	$headertitle = $row[headertitle]; 
	$metakeywords = $row[metakw];
	$metadescription = $row[metadesc];
	include($basepath.'/templates/template.overall_header.php'); 
	echo $row[body];
    include($basepath.'/templates/template.overall_footer.php'); 
}
else {
	header("Location: /404.php");
	exit();
}
?>