Fixed index.php errors

This commit is contained in:
jcreek
2014-11-08 01:55:04 +00:00
parent 21f2aa14f6
commit 68c3aaf140
+262 -235
View File
@@ -14,226 +14,254 @@ function GetNumberOfRows() {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Assassins Mission Control</title> <title>Assassins Mission Control</title>
<link rel="stylesheet" href="style.css" type="text/css" /> <link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine&amp;v1" /> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine&amp;v1" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" /> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" />
</head> </head>
<body> <body>
<div id="main"> <div id="main">
<div id="header"> <div id="header">
<div id="logo"> <div id="logo">
<h1>assassins<a href="#">MissionControl</a></h1> <h1>assassins<a href="#">MissionControl</a></h1>
<div class="slogan">Exeter University Hide & Seek Society</div> <div class="slogan">Exeter University Hide & Seek Society</div>
</div> </div>
<div id="site_content"> <div id="site_content">
<?php
if(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']) && $_SESSION['Status']=='Alive')
{
if (file_exists("upload/".$_SESSION['Username'].'.'.'gif') || file_exists("upload/".$_SESSION['Username'].'.'.'jpeg') || file_exists("upload/".$_SESSION['Username'].'.'.'jpg') || file_exists("upload/".$_SESSION['Username'].'.'.'png')) {
?>
<meta content="120;logout.php" http-equiv="refresh">
<div id="sidebar_container">
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<h3>Log Out</h3>
<form method="post" action="logout.php" id="logout">
<p style="padding: 0 0 0px 0;"></p>
<p><input class="subscribe" name="subscribe" type="submit" value="Log Out" /></p>
</form>
</div>
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<h3>The Rules</h3>
<form method="post" action="assassins-rules-d1.pdf" id="rules">
<p style="padding: 0 0 0px 0;"></p>
<p><input class="subscribe" name="subscribe" type="submit" value="View Rules" /></p>
</form>
</div>
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<!-- insert your sidebar items here -->
<h3>Latest Kills</h3>
<p><a class="twitter-timeline" href="https://twitter.com/search?q=%23exeassassins" data-widget-id="441062980285784064">Tweets about "#exeassassins"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p> <?php
</div> if(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']) && $_SESSION['Status']=='Alive')
</div>
<div id="content">
<h1>Your Info</h1>
<h2>Players Alive: <b><?=$_SESSION['NumberOfPlayersAlive']?>/<?=$_SESSION['NumberOfPlayers']?></h2>
<p>Thanks for logging in <b><?=$_SESSION['FullName']?></b>! You are <b><?=$_SESSION['Status']?></b>...</p>
<ul>
<?php
if (file_exists("upload/".$_SESSION['Username'].'.'.'gif')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'gif'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Username'].'.'.'jpeg')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'jpeg'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Username'].'.'.'jpg')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'jpg'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Username'].'.'.'png')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'png'."' class=\"targetphoto\"></li>";
}
?>
<li>Year Group: <b><?=$_SESSION['YearGroup']?></b></li>
<li>Email Address: <b><?=$_SESSION['Username']?>@exeter.ac.uk</b></li>
<li>Subject Studied: <b><?=$_SESSION['Subject']?></b></li>
<li>Societies: <b><?=$_SESSION['Societies']?></b></li>
<li>Regular Haunts: <b><?=$_SESSION['RegularHaunts']?></b></li>
<li>You live at: <b><?=$_SESSION['Address']?></b></li>
<li>Ninjaness Score: <b><?=$_SESSION['Ninjaness']?>/10</b></li>
<li>You have made <b><?=$_SESSION['Kills']?> kills</b></li>
</ul>
<?php
if(file_exists("admin-tools/game-begun"))
{
?>
<p>
<h1>Your Target</h1>
<ul>
<?php
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'gif')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'gif'."' class='targetphoto'></li>";
}
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'jpeg')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'jpeg'."' class='targetphoto'></li>";
}
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'jpg')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'jpg'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'png')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'png'."' class='targetphoto'></li>";
}
?>
<?php
if(file_exists("admin-tools/addresses-released"))
{
?>
<li><h2>They live at: <b><?=$_SESSION['Addresst']?></b></h2></li>
<?php
}
?>
<li>Full name: <b><?=$_SESSION['FullNamet']?></b></li>
<li>Year group: <b><?=$_SESSION['YearGroupt']?></b></li>
<li>Email Address: <b><?=$_SESSION['Usernamet']?>@exeter.ac.uk</b></li>
<li>Subject Studied: <b><?=$_SESSION['Subjectt']?></b></li>
<li>Societies: <b><?=$_SESSION['Societiest']?></b></li>
<li>Regular Haunts: <b><?=$_SESSION['RegularHauntst']?></b></li>
<li>Ninjaness Score <b><?=$_SESSION['Ninjanesst']?>/10</b></li>
<li>They have made <b><?=$_SESSION['Killst']?> kills</b></li>
</ul>
<br>
<h1>Submit Kill</h1>
<form action="submitkill.php" method="post" name="submitkill" id="submitkill">
<div class="form_settings">
<p><span>Kill Details</span><input type="text" name="killdetails" id="killmethod" value="" /></p>
<p style="padding-top: 15px"><span>&nbsp;</span><input class="submit" type="submit" name="submitkill" id="submitkill" value="Submit Kill" /></p>
</div>
</form>
<?php
}
?>
<?php
}
else {
?>
<div id="content">
<h1>Upload Photo</h1>
<p>Please <a href="uploadphoto.php">click here to add a photo</a>.</p>
<?php
}
}
elseif(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']) && $_SESSION['Status']=='Dead')
{ {
?> if (file_exists("upload/".$_SESSION['Username'].'.'.'gif') || file_exists("upload/".$_SESSION['Username'].'.'.'jpeg') || file_exists("upload/".$_SESSION['Username'].'.'.'jpg') || file_exists("upload/".$_SESSION['Username'].'.'.'png')) {
<div id="content"> ?>
<h1>YOU ARE DEAD</h1> <meta content="120;logout.php" http-equiv="refresh">
<h2>Players Alive: <b><?=$_SESSION['NumberOfPlayersAlive']?>/<?=$_SESSION['NumberOfPlayers']?></h2> <div id="sidebar_container">
<p>Thanks for logging in <b><?=$_SESSION['FullName']?></b>! </p> <img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<ul> <div class="sidebar">
<li>Year Group: <b><?=$_SESSION['YearGroup']?></b></li> <h3>Log Out</h3>
<li>Email Address: <b><?=$_SESSION['Username']?>@exeter.ac.uk</b></li> <form method="post" action="logout.php" id="logout">
<li>Subject Studied: <b><?=$_SESSION['Subject']?></b></li> <p style="padding: 0 0 0px 0;"></p>
<li>Societies: <b><?=$_SESSION['Societies']?></b></li> <p><input class="subscribe" name="subscribe" type="submit" value="Log Out" /></p>
<li>Regular Haunts: <b><?=$_SESSION['RegularHaunts']?></b></li> </form>
<li>You live at: <b><?=$_SESSION['Address']?></b></li> </div>
<li>Ninjaness Score: <b><?=$_SESSION['Ninjaness']?>/10</b></li> <img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<li>You have made <b><?=$_SESSION['Kills']?> kills</b></li> <div class="sidebar">
<br> <h3>The Rules</h3>
<li>You are <b><?=$_SESSION['Status']?></b></li> <form method="post" action="assassins-rules-d1.pdf" id="rules">
</ul> <p style="padding: 0 0 0px 0;"></p>
<p><a href="logout.php">Click here to log out.</a> <p><input class="subscribe" name="subscribe" type="submit" value="View Rules" /></p>
</form>
</div>
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<!-- insert your sidebar items here -->
<h3>Latest Kills</h3>
<p><a class="twitter-timeline" href="https://twitter.com/search?q=%23exeassassins" data-widget-id="441062980285784064">Tweets about "#exeassassins"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
</div>
</div>
<div id="content">
<h1>Your Info</h1>
<h2>Players Alive: <b><?=$_SESSION['NumberOfPlayersAlive']?>/<?=$_SESSION['NumberOfPlayers']?></h2>
<p>Thanks for logging in <b><?=$_SESSION['FullName']?></b>! You are <b><?=$_SESSION['Status']?></b>...</p>
<ul>
<?php
if (file_exists("upload/".$_SESSION['Username'].'.'.'gif')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'gif'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Username'].'.'.'jpeg')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'jpeg'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Username'].'.'.'jpg')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'jpg'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Username'].'.'.'png')) {
echo "<li><img src='"."upload/".$_SESSION['Username'].'.'.'png'."' class=\"targetphoto\"></li>";
}
?>
<li>Year Group: <b><?=$_SESSION['YearGroup']?></b></li>
<li>Email Address: <b><?=$_SESSION['Username']?>@exeter.ac.uk</b></li>
<li>Subject Studied: <b><?=$_SESSION['Subject']?></b></li>
<li>Societies: <b><?=$_SESSION['Societies']?></b></li>
<li>Regular Haunts: <b><?=$_SESSION['RegularHaunts']?></b></li>
<li>You live at: <b><?=$_SESSION['Address']?></b></li>
<li>Ninjaness Score: <b><?=$_SESSION['Ninjaness']?>/10</b></li>
<li>You have made <b><?=$_SESSION['Kills']?> kills</b></li>
</ul>
<?php <?php
} if(file_exists("admin-tools/game-begun"))
elseif(!empty($_POST['username']) && !empty($_POST['password']))
{
$username = mysql_real_escape_string($_POST['username']);
$password = md5(mysql_real_escape_string($_POST['password']));
$checklogin = mysql_query("SELECT * FROM users WHERE Username = '".$username."' AND Password = '".$password."'");
//Get the number of players and send it to a session variable
$numberofplayers = GetNumberOfRows();
$_SESSION['NumberOfPlayers'] = $numberofplayers;
//Get the number of players with 'Alive' as their 'Status' and send that to a session variable
$getplayersalive = mysql_query("SELECT * FROM users WHERE Status = 'Alive'");
$numberofplayersalive = mysql_num_rows($getplayersalive);
$_SESSION['NumberOfPlayersAlive'] = $numberofplayersalive;
if(mysql_num_rows($checklogin) == 1)
{ {
?>
<p>
<h1>Your Target</h1>
<ul>
<?php
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'gif')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'gif'."' class='targetphoto'></li>";
}
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'jpeg')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'jpeg'."' class='targetphoto'></li>";
}
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'jpg')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'jpg'."' class=\"targetphoto\"></li>";
}
if (file_exists("upload/".$_SESSION['Usernamet'].'.'.'png')) {
echo "<li><img src='"."upload/".$_SESSION['Usernamet'].'.'.'png'."' class='targetphoto'></li>";
}
?>
<?php
if(file_exists("admin-tools/addresses-released"))
{
?>
<li><h2>They live at: <b><?=$_SESSION['Addresst']?></b></h2></li>
<?php
}
?>
<li>Full name: <b><?=$_SESSION['FullNamet']?></b></li>
<li>Year group: <b><?=$_SESSION['YearGroupt']?></b></li>
<li>Email Address: <b><?=$_SESSION['Usernamet']?>@exeter.ac.uk</b></li>
<li>Subject Studied: <b><?=$_SESSION['Subjectt']?></b></li>
<li>Societies: <b><?=$_SESSION['Societiest']?></b></li>
<li>Regular Haunts: <b><?=$_SESSION['RegularHauntst']?></b></li>
<li>Ninjaness Score <b><?=$_SESSION['Ninjanesst']?>/10</b></li>
<li>They have made <b><?=$_SESSION['Killst']?> kills</b></li>
</ul>
<br>
<h1>Submit Kill</h1>
<form action="submitkill.php" method="post" name="submitkill" id="submitkill">
<div class="form_settings">
<p><span>Kill Details</span><input type="text" name="killdetails" id="killmethod" value="" /></p>
<p style="padding-top: 15px"><span>&nbsp;</span><input class="submit" type="submit" name="submitkill" id="submitkill" value="Submit Kill" /></p>
</div>
</form>
<?php
}
?>
<?php
}
else {
?>
<div id="content">
<h1>Upload Photo</h1>
<p>Please <a href="uploadphoto.php">click here to add a photo</a>.</p>
<?php
}
}
elseif(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']) && $_SESSION['Status']=='Dead')
{
?>
<meta content="120;logout.php" http-equiv="refresh">
<div id="sidebar_container">
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<h3>Log Out</h3>
<form method="post" action="logout.php" id="logout">
<p style="padding: 0 0 0px 0;"></p>
<p><input class="subscribe" name="subscribe" type="submit" value="Log Out" /></p>
</form>
</div>
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<h3>The Rules</h3>
<form method="post" action="assassins-rules-d1.pdf" id="rules">
<p style="padding: 0 0 0px 0;"></p>
<p><input class="subscribe" name="subscribe" type="submit" value="View Rules" /></p>
</form>
</div>
<img class="paperclip" src="style/paperclip.png" alt="paperclip" />
<div class="sidebar">
<!-- insert your sidebar items here -->
<h3>Latest Kills</h3>
<p><a class="twitter-timeline" href="https://twitter.com/search?q=%23exeassassins" data-widget-id="441062980285784064">Tweets about "#exeassassins"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
</div>
</div>
<div id="content">
<h1>YOU ARE DEAD</h1>
<h2>Players Alive: <b><?=$_SESSION['NumberOfPlayersAlive']?>/<?=$_SESSION['NumberOfPlayers']?></h2>
<p>Thanks for logging in <b><?=$_SESSION['FullName']?></b>! </p>
<ul>
<li>Year Group: <b><?=$_SESSION['YearGroup']?></b></li>
<li>Email Address: <b><?=$_SESSION['Username']?>@exeter.ac.uk</b></li>
<li>Subject Studied: <b><?=$_SESSION['Subject']?></b></li>
<li>Societies: <b><?=$_SESSION['Societies']?></b></li>
<li>Regular Haunts: <b><?=$_SESSION['RegularHaunts']?></b></li>
<li>You live at: <b><?=$_SESSION['Address']?></b></li>
<li>Ninjaness Score: <b><?=$_SESSION['Ninjaness']?>/10</b></li>
<li>You have made <b><?=$_SESSION['Kills']?> kills</b></li>
<br>
<li>You are <b><?=$_SESSION['Status']?></b></li>
</ul>
<p><a href="logout.php">Click here to log out.</a>
<?php
}
elseif(!empty($_POST['username']) && !empty($_POST['password']))
{
$username = mysql_real_escape_string($_POST['username']);
$password = md5(mysql_real_escape_string($_POST['password']));
$checklogin = mysql_query("SELECT * FROM usersfinal WHERE Username = '".$username."' AND Password = '".$password."'");
//Get the number of players and send it to a session variable
$numberofplayers = GetNumberOfRows();
$_SESSION['NumberOfPlayers'] = $numberofplayers;
//Get the number of players with 'Alive' as their 'Status' and send that to a session variable
$getplayersalive = mysql_query("SELECT * FROM usersfinal WHERE Status = 'Alive'");
$numberofplayersalive = mysql_num_rows($getplayersalive);
$_SESSION['NumberOfPlayersAlive'] = $numberofplayersalive;
if(mysql_num_rows($checklogin) == 1)
{
//Set the Assassin's Information //Set the Assassin's Information
$row = mysql_fetch_array($checklogin); $row = mysql_fetch_array($checklogin);
$assassinid = $row['AssassinID']; $assassinid = $row['AssassinID'];
$targetid = $row['TargetID']; $targetid = $row['TargetID'];
$fullname = $row['FullName']; $fullname = $row['FullName'];
$yeargroup = $row['YearGroup']; $yeargroup = $row['YearGroup'];
$subject = $row['Subject']; $subject = $row['Subject'];
$societies = $row['Societies']; $societies = $row['Societies'];
$regularhaunts = $row['RegularHaunts']; $regularhaunts = $row['RegularHaunts'];
$ninjaness = $row['Ninjaness']; $ninjaness = $row['Ninjaness'];
$address = $row['Address']; $address = $row['Address'];
$kills = $row['Kills']; $kills = $row['Kills'];
$status = $row['Status']; $status = $row['Status'];
$_SESSION['AssassinID'] = $assassinid; $_SESSION['AssassinID'] = $assassinid;
$_SESSION['TargetID'] = $targetid; $_SESSION['TargetID'] = $targetid;
$_SESSION['Username'] = $username; $_SESSION['Username'] = $username;
$_SESSION['FullName'] = $fullname; $_SESSION['FullName'] = $fullname;
$_SESSION['YearGroup'] = $yeargroup; $_SESSION['YearGroup'] = $yeargroup;
$_SESSION['Subject'] = $subject; $_SESSION['Subject'] = $subject;
$_SESSION['Societies'] = $societies; $_SESSION['Societies'] = $societies;
$_SESSION['RegularHaunts'] = $regularhaunts; $_SESSION['RegularHaunts'] = $regularhaunts;
$_SESSION['Ninjaness'] = $ninjaness; $_SESSION['Ninjaness'] = $ninjaness;
$_SESSION['Address'] = $address; $_SESSION['Address'] = $address;
$_SESSION['Kills'] = $kills; $_SESSION['Kills'] = $kills;
$_SESSION['Status'] = $status; $_SESSION['Status'] = $status;
$_SESSION['LoggedIn'] = 1; $_SESSION['LoggedIn'] = 1;
//Now set the Target Information //Now set the Target Information
//Query the database for the user with 'AssassinID'=$targetID and then //Query the database for the user with 'AssassinID'=$targetID and then
$targetinfo = mysql_query("SELECT * FROM users WHERE AssassinID = '".$targetid."'"); $targetinfo = mysql_query("SELECT * FROM usersfinal WHERE AssassinID = '".$targetid."'");
if(mysql_num_rows($targetinfo) == 1) if(mysql_num_rows($targetinfo) == 1)
{ {
//Set the Assassin's Information //Set the Assassin's Information
$rowt = mysql_fetch_array($targetinfo); //rowt=Row of Target $rowt = mysql_fetch_array($targetinfo); //rowt=Row of Target
$usernamet = $rowt['Username']; $usernamet = $rowt['Username'];
$assassinidt = $rowt['AssassinID']; $assassinidt = $rowt['AssassinID'];
@@ -247,8 +275,8 @@ function GetNumberOfRows() {
$ninjanesst = $rowt['Ninjaness']; $ninjanesst = $rowt['Ninjaness'];
$killst = $rowt['Kills']; $killst = $rowt['Kills'];
$statust = $rowt['Status']; $statust = $rowt['Status'];
$_SESSION['Usernamet'] = $usernamet; $_SESSION['Usernamet'] = $usernamet;
$_SESSION['AssassinIDt'] = $assassinidt; $_SESSION['AssassinIDt'] = $assassinidt;
$_SESSION['TargetIDt'] = $targetidt; $_SESSION['TargetIDt'] = $targetidt;
@@ -263,9 +291,9 @@ function GetNumberOfRows() {
$_SESSION['Killst'] = $killst; $_SESSION['Killst'] = $killst;
$_SESSION['Statust'] = $statust; $_SESSION['Statust'] = $statust;
} }
//Start the HTML stuff //Start the HTML stuff
echo "<h1>Success</h1>"; echo "<h1>Success</h1>";
echo "<p>We are now redirecting you to the member area.</p>"; echo "<p>We are now redirecting you to the member area.</p>";
echo '<meta content="3;index.php" http-equiv="refresh">'; echo '<meta content="3;index.php" http-equiv="refresh">';
@@ -279,25 +307,24 @@ function GetNumberOfRows() {
else else
{ {
?> ?>
<div id="content"> <div id="content">
<h1>Member Login</h1> <h1>Member Login</h1>
<p>Thanks for visiting! Please either login below, or <a href="register.php">click here to register</a>.</p> <p>Thanks for visiting! Please either login below, or <a href="register.php">click here to register</a>.</p>
<form action="index.php" method="post" name="loginform" id="loginform"> <form action="index.php" method="post" name="loginform" id="loginform">
<div class="form_settings"> <div class="form_settings">
<p><span>Username</span><input type="text" name="username" id="username" value="" /></p> <p><span>Username</span><input type="text" name="username" id="username" value="" /></p>
<p><span>Password</span><input type="password" name="password" id="password" value="" /></p> <p><span>Password</span><input type="password" name="password" id="password" value="" /></p>
<p style="padding-top: 15px"><span>&nbsp;</span><input class="submit" type="submit" name="login" id="login" value="Login" /></p> <p style="padding-top: 15px"><span>&nbsp;</span><input class="submit" type="submit" name="login" id="login" value="Login" /></p>
</div> </div>
</form> </form>
<?php <?php
} }
?> ?>
</div> </div>
</body> </body>
</html> </html>