include("includes.php");?>
switch ($_GET["location"]) {
case "myaccount":
if ($userID >= 0) {
$loggedIn = "Y";
}
else {
header("Location: /login");
//exit;
}
break;
case "addfavorite":
if ($userID >= 0) {
$loggedIn = "Y";
}
else {
header("Location: /login");
//exit;
}
break;
case "remfavorite":
if ($userID >= 0) {
$loggedIn = "Y";
}
else {
header("Location: /login");
//exit;
}
break;
case "rateitem":
if ($userID >= 0) {
$loggedIn = "Y";
include("dorate.php");
}
else {
header("Location: /login");
//exit;
}
break;
case "submit":
if ($userID >= 0) {
$loggedIn = "Y";
}
else {
setcookie("redirectTo","/submit", NULL, "/");
header("Location: /login");
//exit;
}
break;
case "processsubmit":
if ($userID >= 0) {
$loggedIn = "Y";
}
else {
header("Location: /login");
exit;
}
break;
case "tellafriend":
if ($userID >= 0) {
$loggedIn = "Y";
}
else {
$loggedIn = "N";
}
break;
case "register":
$loggedIn = "N";
include ("ec_register.php");
if ($errMsg == "") {
include ("db_register.php");
SETCOOKIE("LoginUserID",$lastID, NULL, "/");
SETCOOKIE("LoginUserNick",$_POST['txtRegNick'], NULL, "/");
SETCOOKIE("LoginUserName",$_POST['txtRegName'], NULL, "/");
SETCOOKIE("LoginUserEmail",$_POST['txtRegEmail'], NULL, "/");
SETCOOKIE("LoginUserPass",$_POST['txtRegPass'], NULL, "/");
header("Location: /redirect");
exit;
}
break;
case "login":
$loggedIn = "N";
break;
}
?>
include("header.php");?>
if ($_GET["location"] == myaccount) {
include("top_myaccount.php");
ECHO "
\r\n";
ECHO "\r\n";
}
else {
include("top.php");
ECHO "\r\n";
ECHO "| \r\n";
}
?>
include("ads_468x60.php");?>
include("error.php");?>
if ($loggedIn=="Y") {
switch ($_GET["location"]) {
case "myaccount":
include("myaccount.php");
break;
case "submit":
include("randomcode.php");
include("submit.php");
break;
case "processsubmit":
include("processsubmit.php");
break;
case "addfavorite":
include("addfav.php");
break;
case "remfavorite":
include("remfav.php");
break;
case "rate":
;
break;
case "tellafriend":
include("tellafriend.php");
break;
}
}
else {
switch ($_GET["location"]) {
case "register":
include("doregister.php");
break;
case "tellafriend":
include("tellafriend.php");
break;
case "contact":
include("contact.php");
break;
case "contactprocess":
include("contactprocess.php");
break;
default:
include("login.php");
break;
}
}
?>
|
if ($_GET["location"] == myaccount) {
ECHO "\r\n";
include("ads_250x250.php");
include ("ads_250x250.php");
include ("ads_250x250.php");
}
else {
ECHO " | \r\n";
include("rightside.php");
}
?>
|
include("footer.php");?>
|