From 12b80b4bf962f005afa8641eef2ce5f1656a67ef Mon Sep 17 00:00:00 2001 From: Michael Hart Date: Fri, 11 May 2018 12:00:13 -0700 Subject: [PATCH 1/3] added delete func from rbxlegacy site code --- Origins06/Origins06_site/games.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Origins06/Origins06_site/games.php b/Origins06/Origins06_site/games.php index 4720340..6113c6d 100644 --- a/Origins06/Origins06_site/games.php +++ b/Origins06/Origins06_site/games.php @@ -58,6 +58,13 @@ $url = "Origins06://".$encryptstring; echo "
"; echo "
"; echo "
"; +$ip = base64_decode($row['ip']); +if($_SERVER['REMOTE_ADDR'] == $ip) +{ +echo "
"; +echo "
"; +echo "
"; +} echo ""; echo ""; echo " "; From d83b593eb9c474abf61d7b96708fde37dbe4baa6 Mon Sep 17 00:00:00 2001 From: Michael Hart Date: Fri, 11 May 2018 12:01:26 -0700 Subject: [PATCH 2/3] added removeserver --- Origins06/Origins06_site/removeserver.php | 84 +++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Origins06/Origins06_site/removeserver.php diff --git a/Origins06/Origins06_site/removeserver.php b/Origins06/Origins06_site/removeserver.php new file mode 100644 index 0000000..3fb52d2 --- /dev/null +++ b/Origins06/Origins06_site/removeserver.php @@ -0,0 +1,84 @@ + + + +Origins06 + + + + + + + + +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(); +?> +
+ +
+ +
+
+
+ +
+
+
+
+

Games

+
+
+

Server has been deleted.

+
+
+
+
+
+
+ + +
+ + \ No newline at end of file From 56ab0c92a0aeeca2d891202343f555ce4c929178 Mon Sep 17 00:00:00 2001 From: Michael Hart Date: Fri, 11 May 2018 13:54:30 -0700 Subject: [PATCH 3/3] added new url --- Origins06/R06_Launcher/R06_Launcher/GlobalVars.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Origins06/R06_Launcher/R06_Launcher/GlobalVars.cs b/Origins06/R06_Launcher/R06_Launcher/GlobalVars.cs index d2de8b8..40b76c8 100644 --- a/Origins06/R06_Launcher/R06_Launcher/GlobalVars.cs +++ b/Origins06/R06_Launcher/R06_Launcher/GlobalVars.cs @@ -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"; }