added delete func from rbxlegacy site code

This commit is contained in:
Michael Hart 2018-05-11 12:00:13 -07:00 committed by GitHub
parent 96da58b83e
commit 12b80b4bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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 " ";