diff --git a/html/Game/AdminScript.php b/html/Game/AdminScript.php
index a8a2362..9860489 100644
--- a/html/Game/AdminScript.php
+++ b/html/Game/AdminScript.php
@@ -2,6 +2,7 @@
//stuff for staff will be handled here
+use Alphaland\Common\Signing;
use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
@@ -40,4 +41,4 @@ end)
EOF;
-echo signData($script); //return the signature+script
\ No newline at end of file
+echo Signing::SignData($script);
\ No newline at end of file
diff --git a/html/Game/Join.ashx b/html/Game/Join.ashx
index 0445914..dc37d0f 100644
--- a/html/Game/Join.ashx
+++ b/html/Game/Join.ashx
@@ -5,7 +5,9 @@
Very messy but will clean up
*/
+use Alphaland\Common\Signing;
use Alphaland\Games\Game;
+use Alphaland\Games\Ticket;
header("Content-Type: text/plain");
@@ -32,7 +34,7 @@ if ($local)
"PingInterval" => 45
), JSON_UNESCAPED_SLASHES);
- die(signData($joinparams));
+ die(Signing::SignData($joinparams));
}
if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent restricted
@@ -99,7 +101,7 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res
"BrowserTrackerId" => "" //blank, dont need this rn?
), JSON_UNESCAPED_SLASHES);
- die(signData($joinparams));
+ die(Signing::SignData($joinparams));
}
}
}
diff --git a/html/secret/localtesting.php b/html/secret/localtesting.php
index 73b387e..5284488 100644
--- a/html/secret/localtesting.php
+++ b/html/secret/localtesting.php
@@ -1,5 +1,7 @@
"" //blank, dont need this rn?
), JSON_UNESCAPED_SLASHES);
- die(signData($joinparams));
+ die(Signing::SignData($joinparams));
}
elseif ($user == 2)
{
@@ -74,7 +76,7 @@ elseif ($user == 2)
"BrowserTrackerId" => "" //blank, dont need this rn?
), JSON_UNESCAPED_SLASHES);
- die(signData($joinparams));
+ die(Signing::SignData($joinparams));
}
elseif ($user == 3)
{
@@ -111,7 +113,7 @@ elseif ($user == 3)
"BrowserTrackerId" => "" //blank, dont need this rn?
), JSON_UNESCAPED_SLASHES);
- die(signData($joinparams));
+ die(Signing::SignData($joinparams));
}
else
{
diff --git a/html_assetgame/Game/Visit.ashx b/html_assetgame/Game/Visit.ashx
index c86e007..28064a9 100644
--- a/html_assetgame/Game/Visit.ashx
+++ b/html_assetgame/Game/Visit.ashx
@@ -1,4 +1,7 @@