mirror of
https://github.com/jcreek/Assassins-Mission-Control.git
synced 2026-07-13 02:53:44 +00:00
Fixed index.php errors
This commit is contained in:
@@ -158,6 +158,34 @@ function GetNumberOfRows() {
|
|||||||
elseif(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']) && $_SESSION['Status']=='Dead')
|
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">
|
<div id="content">
|
||||||
<h1>YOU ARE DEAD</h1>
|
<h1>YOU ARE DEAD</h1>
|
||||||
<h2>Players Alive: <b><?=$_SESSION['NumberOfPlayersAlive']?>/<?=$_SESSION['NumberOfPlayers']?></h2>
|
<h2>Players Alive: <b><?=$_SESSION['NumberOfPlayersAlive']?>/<?=$_SESSION['NumberOfPlayers']?></h2>
|
||||||
@@ -182,14 +210,14 @@ function GetNumberOfRows() {
|
|||||||
$username = mysql_real_escape_string($_POST['username']);
|
$username = mysql_real_escape_string($_POST['username']);
|
||||||
$password = md5(mysql_real_escape_string($_POST['password']));
|
$password = md5(mysql_real_escape_string($_POST['password']));
|
||||||
|
|
||||||
$checklogin = mysql_query("SELECT * FROM users WHERE Username = '".$username."' AND Password = '".$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
|
//Get the number of players and send it to a session variable
|
||||||
$numberofplayers = GetNumberOfRows();
|
$numberofplayers = GetNumberOfRows();
|
||||||
$_SESSION['NumberOfPlayers'] = $numberofplayers;
|
$_SESSION['NumberOfPlayers'] = $numberofplayers;
|
||||||
|
|
||||||
//Get the number of players with 'Alive' as their 'Status' and send that to a session variable
|
//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'");
|
$getplayersalive = mysql_query("SELECT * FROM usersfinal WHERE Status = 'Alive'");
|
||||||
$numberofplayersalive = mysql_num_rows($getplayersalive);
|
$numberofplayersalive = mysql_num_rows($getplayersalive);
|
||||||
$_SESSION['NumberOfPlayersAlive'] = $numberofplayersalive;
|
$_SESSION['NumberOfPlayersAlive'] = $numberofplayersalive;
|
||||||
|
|
||||||
@@ -228,7 +256,7 @@ function GetNumberOfRows() {
|
|||||||
//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)
|
||||||
{
|
{
|
||||||
@@ -300,4 +328,3 @@ function GetNumberOfRows() {
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
Reference in New Issue
Block a user