menu.php (partial code)
Code: Select all
<html>
<?php
session_start();
?>
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<tr>
<td width="800" colspan="2"> <img src="http://weprint4you.com/images/topbar.jpg"> </td>
</tr>
<TR >
<TD width="200" height="30">
<IMG SRC="http://weprint4you.com/images/menu_01.gif" ALT="menu_01.gif"></TD>
<TD background="http://weprint4you.com/images/menu_02.gif" align="center" width="600" height="30"> |
<?php if ($_SESSION['customerLoggedIn'] == 1){ ?>
<a href="https://weprint4you.com/customerorders.php">Customer Orders</a> |
<a href="http://weprint4you.com/createorder.php">Purchase New Print</a> |
<a href="http://weprint4you.com/pricing.php">Products & Pricing</a> |
<a href="http://weprint4you.com/contact.php">Contact Us</a> |
<?php } else if ($_SESSION['employeeLoggedIn'] == 1) { ?>
<a href="../httpdocs/employeeSales.php">Employee Sales</a> |
<a href="../httpdocs/employeePromos.php">Promotional Codes</a> |
<?php } else {?>
<a href="http://weprint4you.com/createorder.php">Purchase New Print</a> |
<a href="http://weprint4you.com/pricing.php">Products & Pricing</a> |
<a href="http://weprint4you.com/contact.php">Contact Us</a> |
<?php } ?>
</td>Code: Select all
<?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Customer Account</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php include("http://weprint4you.com/menu.php"); ?>
<p>Went Through</p>
<?php if ($_SESSION['customerLoggedIn'] == 1)
{
echo 'customer logged in';
}
else
{
echo 'customer not logged in';
}
?>
</body>
</html>