<?php
header("Expires: Thu, 17 May 2001 10:17:17 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
include_once("config_admin.php");
checkLoggedIn("no");
//.............finalised code......
$title="User Login Page";
if( isset( $_POST["login"] ) )
{
if( $row = checkPass($_POST["UserName"], $_POST["Password"]) )
{
}
else if( !($row = checkPass($_POST["UserName"], $_POST["Password"])) )
{
$messages[]="Incorrect login/password, try again";
}//First else if
if($messages)
{
doIndex();
exit;
}
else
{
//$level = 0;
cleanMemberSession($row["UserName"],$row["UserId"]);
//echo $_SESSION["team"]." " .$_SESSION["member"]. " ".$_SESSION["member2"]. " ";
header("Location: ./index.php");
}//Second else if
}
else
{
doIndex();
}
function doIndex() {
global $messages;
global $title;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Name : Premium Series
Description: A three-column, fixed-width blog design.
Version : 1.0
Released : 20090303
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<?php /*doCSS();*/ ?>
<title>Premium Series by Free CSS Templates</title>
<meta name="keywords" content="" />
<meta name="Premium Series" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
<link type="text/css" href="menu.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript" src="ajaxfunction.js"></script>
</head>
<body>
<!-- start header -->
<div id="header">
<div id="logo">
<h1><a href="#"><span>Easy</span>Fest</a></h1>
</div>
<div id="menu">
<ul class="menu">
</ul>
</div>
</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<ul>
<li>
<h2>Login</h2>
<ul>
<li>
<div class="loginBox">
<form action="<?php print $_SERVER["PHP_SELF"]; ?>" method="POST">
<table align="center" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#000000;">
<tr>
<td>UserName:</td>
<td><input type="text" name="UserName" value="" maxlength="40"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="Password" value="" maxlength="15"></td>
</tr>
<tr>
<td> </td>
<td><input name="login" type="submit" value="login"></td>
</tr>
</table>
</form>
<p><?php if(isset($_POST["login"])) echo "Incorrect login/password, try again";?></p>
</div>»»<a href="forgetPassword_admin.php">Forgot Password</a><br />
»»<a href="user_login.php">User Login</a>
</li>
</ul>
</li>
</ul>
</div>
<!-- start content -->
<div id="prtCnt" align="center">
<div id="content" align="center">
<div class="flower"></div><marquee behavior="scroll" direction="up" scrolldelay="100">
<div class="post">
<h1 class="title"><a href="#">Welcome to EasyFest</a></h1><div class="entry">
<p align="justify"><strong>College festivals have emerged as a booming business opportunity for prominent brands to establish their presence in a predominantly youth driven market. As the magnitude and level of fests increases with each passing year there grows a need for a system that centralizes the various aspects of a fest be it accounts, public relations or hospitality. So here is a one stop solution to all your management needs - EasyFest festival management system. </strong></p>
<br/>
<br/>
<br/>
<br/>
<p> Contact us at hide@address.com </p>
</div>
</marquee>
</div>
</div>
</div>
<!-- end content -->
<!-- start sidebars -->
<!-- end sidebars -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</div>
<div id="menu">
<ul class="menu">
</ul>
</div>
<div id="footer">
<p class="copyright">© 2010 All Rights Reserved • Designed by Group 18</p>
<p class="link"><a href="#">Privacy Policy</a> • <a href="#">Terms of Use</a></p>
<div id="copyright">Copyright © 2010 <a href="http://apycom.com/">Apycom jQuery Menus</a></div>
</div>
</body>
</html>
<?php
}
?>