Merge branch 'master' of https://github.com/Bitl/other-roblox-projects-src
This commit is contained in:
commit
2ca4218ea5
|
|
@ -58,6 +58,13 @@ $url = "Origins06://".$encryptstring;
|
|||
echo "<form action='".$url."'>";
|
||||
echo "<div id='JoinButton'><input type='submit' value='Join'/></div>";
|
||||
echo "</form>";
|
||||
$ip = base64_decode($row['ip']);
|
||||
if($_SERVER['REMOTE_ADDR'] == $ip)
|
||||
{
|
||||
echo "<form action='removeserver.php'>";
|
||||
echo "<div id='DeleteButton'><input type='submit' value='Delete'/></div>";
|
||||
echo "</form>";
|
||||
}
|
||||
echo "</center>";
|
||||
echo "</div>";
|
||||
echo " ";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,84 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" id="pee">
|
||||
<head>
|
||||
<title>Origins06</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/Origins06_normal.css" title="normal"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/Origins06_dark.css" title="dark">
|
||||
<link rel="stylesheet" type="text/css" href="css/Origins06_classic.css" title="classic">
|
||||
<link rel="stylesheet" type="text/css" href="css/Origins06_classicdark.css" title="classicdark">
|
||||
<link rel="Shortcut Icon" type="image/ico" href="images/icon.ico"/>
|
||||
<script type="text/javascript" src="js/js_funcs.js"></script>
|
||||
</head>
|
||||
<body onload="set_style_from_cookie()">
|
||||
<?php
|
||||
$con = new mysqli("localhost", "origins0_root", "", "origins0_games");
|
||||
|
||||
if (mysqli_connect_errno())
|
||||
{
|
||||
printf("Connect failed: %s\n", mysqli_connect_error());
|
||||
}
|
||||
|
||||
$sql="SELECT * FROM games";
|
||||
|
||||
$result=$con->query($sql);
|
||||
if (!$result)
|
||||
{
|
||||
printf("Error: %s\n", $con->error);
|
||||
}
|
||||
|
||||
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC))
|
||||
{
|
||||
$ip = base64_decode($row['ip']);
|
||||
if($_SERVER['REMOTE_ADDR'] == $ip)
|
||||
{
|
||||
$delsql="DELETE FROM games
|
||||
WHERE id = $row[id]";
|
||||
|
||||
$resultdel=$con->query($delsql);
|
||||
if (!$resultdel)
|
||||
{
|
||||
printf("Error: %s\n", $con->error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$con->close();
|
||||
?>
|
||||
<div id="Container">
|
||||
<div id="Header">
|
||||
<div id="Banner">
|
||||
<center><div id="Logo"><a id="logo" title="Origins06" href="index.php" style="display:inline-block;cursor:pointer;"><img src="images/Logo.png" border="0" id="img" alt="Origins06"/></a></div></center>
|
||||
</div>
|
||||
<div class="Navigation">
|
||||
<span><a id="Games" class="MenuItem" href="games.php">Games</a></span>
|
||||
<span class="Separator"> | </span>
|
||||
<span><a id="HostServer" class="MenuItem" href="hostserver.php">Host Server</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="Body">
|
||||
|
||||
<div id="SplashContainer">
|
||||
<div id="MainPanel">
|
||||
<center>
|
||||
<div id="genlink"><b>alert text</b></div>
|
||||
</center>
|
||||
</div>
|
||||
<div id="MainPanel">
|
||||
<center>
|
||||
<h2>Games</h2>
|
||||
<div id="ElementInsert">
|
||||
<center>
|
||||
<h3>Server has been deleted.</h3>
|
||||
</center>
|
||||
</div>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="Footer">
|
||||
Origins06 does not knowingly host copyrighted content. If you host a server, we store your IP address, but it is not publicly distributed to users on the site.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,6 +5,6 @@ public static class GlobalVars
|
|||
public static string Name = "Player";
|
||||
public static int UserID = 0;
|
||||
public static bool ReadyToLaunch = false;
|
||||
public static string JoinLink = "http://or06.000webhostapp.com/functions.php";
|
||||
public static string JoinLink = "http://o06.000webhostapp.com/functions";
|
||||
public static string ClientMD5 = "BA8B6DEE0BFD27D2D716F4122F8D6C6E";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue