again update
This commit is contained in:
parent
70d8c0e467
commit
f69d44538a
|
|
@ -12,6 +12,36 @@ require dirname(__DIR__).'/Assemblies/Roblox/Grid/Rcc/Status.php';
|
|||
$RCCServiceSoap = new Roblox\Grid\Rcc\RCCServiceSoap($soapcfg["ip"],$soapcfg["port"]);
|
||||
// end soap
|
||||
|
||||
/**
|
||||
* Name: Script Signer
|
||||
* Description: This function returns the "rbxsig" signature and the script.
|
||||
* Parameters: [
|
||||
* "script" => "The script to sign",
|
||||
* "privatekey" => "Private key used to sign"
|
||||
* ]
|
||||
*/
|
||||
function scriptsign($script, $privatekey) {
|
||||
$signature;
|
||||
$script = "\n".$script;
|
||||
openssl_sign($script, $signature, $privatekey, OPENSSL_ALGO_SHA1);
|
||||
return "--rbxsig" . sprintf("%%%s%%%s", base64_encode($signature), $script);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name: Array Signer
|
||||
* Description: This function returns the "rbxsig" signature and the array.
|
||||
* Parameters: [
|
||||
* "array" => "The array to sign",
|
||||
* "privatekey" => "Private key used to sign"
|
||||
* ]
|
||||
*/
|
||||
function arraysign($array, $privatekey) {
|
||||
$signature;
|
||||
$jsonarray = "\n".json_encode($array);
|
||||
openssl_sign("\r\n" . $jsonarray, $signature, $privatekey, OPENSSL_ALGO_SHA1);
|
||||
return "--rbxsig" . sprintf("%%%s%%%s", base64_encode($signature), $jsonarray);
|
||||
}
|
||||
|
||||
function discordmsg($msg, $webhook) {
|
||||
if($webhook != "") {
|
||||
$ch = curl_init( $webhook );
|
||||
|
|
|
|||
|
|
@ -59,40 +59,6 @@ $site = [
|
|||
"url" => "https://".$_SERVER["HTTP_HOST"]
|
||||
];
|
||||
|
||||
/**
|
||||
* Name: Script Signer
|
||||
* Description: This function returns the "rbxsig" signature and the script.
|
||||
* Parameters: [
|
||||
* "script" => "The script to sign",
|
||||
* "privatekey" => "Private key used to sign"
|
||||
* ]
|
||||
*/
|
||||
function scriptsign($script) {
|
||||
global $gameSettings;
|
||||
$privatekey = $gameSettings["privatekey"];
|
||||
$signature;
|
||||
$script = "\n".$script;
|
||||
openssl_sign($script, $signature, $privatekey, OPENSSL_ALGO_SHA1);
|
||||
return "--rbxsig" . sprintf("%%%s%%%s", base64_encode($signature), $script);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name: Array Signer
|
||||
* Description: This function returns the "rbxsig" signature and the array.
|
||||
* Parameters: [
|
||||
* "array" => "The array to sign",
|
||||
* "privatekey" => "Private key used to sign"
|
||||
* ]
|
||||
*/
|
||||
function arraysign($array) {
|
||||
global $gameSettings;
|
||||
$privatekey = $gameSettings["privatekey"];
|
||||
$signature;
|
||||
$jsonarray = "\n".json_encode($array);
|
||||
openssl_sign("\r\n" . $jsonarray, $signature, $privatekey, OPENSSL_ALGO_SHA1);
|
||||
return "--rbxsig" . sprintf("%%%s%%%s", base64_encode($signature), $jsonarray);
|
||||
}
|
||||
|
||||
//pagenam
|
||||
$pagename = ucwords(str_replace("_", " ", str_replace(".php", "", str_replace("/", " ", $_SERVER['DOCUMENT_URI'] ?? $_SERVER['PHP_SELF']))));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue