From 3dc88acea4255880a7f0aa6c0fbb722ef35fea5c Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 12 Feb 2023 10:55:19 +0100 Subject: [PATCH 1/4] Update classes.php --- core/classes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/classes.php b/core/classes.php index 7ea6322..a6ce5b6 100644 --- a/core/classes.php +++ b/core/classes.php @@ -60,7 +60,8 @@ class PartyStarter { } else { $q = $con->prepare("UPDATE users SET lastPaid=:date WHERE id=:id"); $q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT); - $q->bindParam(':date',time(),PDO::PARAM_INT); + $time = time(); + $q->bindParam(':date',$time,PDO::PARAM_INT); $q->execute(); $q = $con->prepare("UPDATE users SET money=money+:price WHERE id=:id"); From 8d3eaea454f8a5c166b0fcb9de44e2e8686effaa Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 12 Feb 2023 11:08:22 +0100 Subject: [PATCH 2/4] h --- core/classes.php | 2 + core/classes/RCCServiceSoap.php | 74 +++++++++++++++++++++++++++++++++ core/config.php | 6 +++ 3 files changed, 82 insertions(+) create mode 100644 core/classes/RCCServiceSoap.php diff --git a/core/classes.php b/core/classes.php index a6ce5b6..de39aa7 100644 --- a/core/classes.php +++ b/core/classes.php @@ -1,6 +1,8 @@ ip = $ip; + $this->port = $port; + $this->url = $url; + } + + function request($xml) { + $curl = curl_init('http://'.$this->ip.':'.$this->port.'/'); + curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: text/xml")); + curl_setopt($curl, CURLOPT_POST, true); + curl_setopt($curl, CURLOPT_POSTFIELDS, $xml); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); + $result = curl_exec($curl); + $luashit = array("LUA_TSTRING", "LUA_TNUMBER", "LUA_TBOOLEAN", "LUA_TTABLE"); + $result = str_replace($luashit, "", $result); + $almost = strstr($result, ''); + $luashit = array('', "", "", "", "", "", "", "", "", "", "", ""); + $result = str_replace($luashit, "", $almost); + + return $result; + } + + function execScript($script, $jobId, $jobExpiration) { + /*$luashit = array("LUA_TSTRING", "LUA_TNUMBER", "LUA_TBOOLEAN", "LUA_TTABLE"); + $result = str_replace($luashit, "", $script); + $almost = strstr($result, ''); + $luashit = array('', "", "", "", "", "", "", "", "", "", "", ""); + $script = str_replace($luashit, "", $almost);*/ + + $xml = ' + + + + + '.$jobId.' + '.$jobExpiration.' + 1 + 321 + + + Script + + '.$script.' + + + + + '; + + return $this->request($xml); + } + + function isRccOn() { + $script = 'return "Hello World!"'; + if(empty($this->execScript($script, "isRccOnCheck".rand(1,getrandmax()), 10))) { + return false; + } else { + return true; + } + } +} \ No newline at end of file diff --git a/core/config.php b/core/config.php index c20ba4f..7870c92 100644 --- a/core/config.php +++ b/core/config.php @@ -31,6 +31,12 @@ MIICXQIBAAKBgQDhO7uhMz3jBLoSB/SHWhnE5tVxn7P6BlirPVrZEWVUxjyC5ybhZpyjL/r6KBlvhgyn -----END RSA PRIVATE KEY-----" ]; +$soapcfg = [ + "ip" => "127.0.0.1", + "port" => 64989, + "url" => "roblox.com" +]; + $site = [ "url" => "https://".$_SERVER["HTTP_HOST"] ]; From 127d9d4e76bcb2d710ac2d1889d7064fc2a46656 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 12 Feb 2023 11:09:15 +0100 Subject: [PATCH 3/4] Update config.php --- core/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.php b/core/config.php index 7870c92..2465f9c 100644 --- a/core/config.php +++ b/core/config.php @@ -34,7 +34,7 @@ MIICXQIBAAKBgQDhO7uhMz3jBLoSB/SHWhnE5tVxn7P6BlirPVrZEWVUxjyC5ybhZpyjL/r6KBlvhgyn $soapcfg = [ "ip" => "127.0.0.1", "port" => 64989, - "url" => "roblox.com" + "url" => "sierraf.tk" ]; $site = [ From baf037c71f5559a19909c9776765076fc6d64828 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 12 Feb 2023 11:12:20 +0100 Subject: [PATCH 4/4] Update config.php --- core/config.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/config.php b/core/config.php index 2465f9c..248f5bc 100644 --- a/core/config.php +++ b/core/config.php @@ -21,8 +21,8 @@ if($devmode) { // if ur gonna use the availablegameservers array please pick a random gameserver from the array or else we would put all stress on 1 gameserver $AvailableGameservers = [ - 1 => "ip goes here", - 2 => "ahh help!!" + "ip goes here", + "ahh help!!" ]; $gameSettings = [ @@ -31,8 +31,10 @@ MIICXQIBAAKBgQDhO7uhMz3jBLoSB/SHWhnE5tVxn7P6BlirPVrZEWVUxjyC5ybhZpyjL/r6KBlvhgyn -----END RSA PRIVATE KEY-----" ]; +$soapIp = $AvailableGameservers[array_rand($AvailableGameservers,1)]; + $soapcfg = [ - "ip" => "127.0.0.1", + "ip" => $soapIp, "port" => 64989, "url" => "sierraf.tk" ];