if(!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on")
{
//Tell the browser to redirect to the HTTPS URL.
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], true, 301);
//Prevent the rest of the script from executing.
exit;
}
if(substr($_SERVER['SERVER_NAME'],0,3)!="www")
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.surveillance-spy-cameras.com");
exit;
}
if("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" == "http://www.surveillance-spy-cameras.com/index.htm")
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.surveillance-spy-cameras.com");
exit;
}
if(1)
{
include("index.php");
exit;
}
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$url = preg_replace('/\?.*/', '', $url);
$string = md5($url).".txt";
$cache_file = "staticcache/".$string;
include_once("connectdb.php");
ob_start();
function CategoryOrder($productId)
{
$query = "SELECT orderFromCat, pageUrl FROM products WHERE id = '$productId'";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
$row = mysql_fetch_object($result);
$prodUrl=$row->pageUrl;
if($row->orderFromCat)
{
$thisUrl=$_SERVER['PHP_SELF'];
$thisUrl=substr($thisUrl, 1);
echo '
include("header-new.php"); ?>
Your Source For Home And Business Security Cameras
include("indextop.php");
ShowTopProducts();
?>
What's New
$query65 = "SELECT * FROM blogEntries WHERE active = '1' ORDER BY year DESC, month DESC, day DESC, hours DESC, minutes DESC LIMIT 5";
$result65 = mysql_query($query65) or die ("Error in query65: $query65. " . mysql_error());
while($row65=mysql_fetch_object($result65))
{
?>
- month,"/", $row65->day,"/", str_replace(" ", "-", $row65->title); ?>/">
echo $row65->title; ?>
-
echo $row65->year,"/", $row65->month,"/", $row65->day; ?>
}
?>
include("indexbottom.php");
?>
include("leftside-new.php");
?>
include("rightside.php");
?>
$thePage=ob_get_flush();
file_put_contents($cache_file,$thePage);
?>