<?php

@setcookie("CookiesOn","on",time()+(100000), "/", "", 0); //check for cookies
if (strlen($_REQUEST["cat"])>0) {
 $_REQUEST["cat"]=is_numeric($_REQUEST["cat"])?$_REQUEST["cat"]:-1;
}

if (strlen($_GET["cat"])>0) {
 $_GET["cat"]=is_numeric($_GET["cat"])?$_GET["cat"]:-1;
}

if (strlen($_POST["cat"])>0) {
 $_POST["cat"]=is_numeric($_POST["cat"])?$_POST["cat"]:-1;
}

if (strlen($cat)>0) {
 $cat=is_numeric($cat)?$cat:-1;
}

$admin = 0;
$thisfile="index";
include_once("includes/config.php");
include_once("includes/templ_lib.php");
$html="<HTML>No Template</HTML>";
$html = strlen($t)? parse($t) : parse("index");

eval("?>$html");

if(!$pconnect)
	$conn->Close();
?>
