roblonium-web/Game/LuaWebService/HandleSocialRequest.ashx

41 lines
664 B
Plaintext

<?php
//header('Content-Type: application/octet-stream');
header('Content-Type: text/html; charset=utf-8');
//admins
$admins = [
0,
1,
2,
3,
23,
29,
286,
370,
403,
181,
185,
193,
205,
227,
243
];
if ($_GET["method"] == "IsBestFriendsWith") {
echo '<Value Type="boolean">false</Value>';
}
if ($_GET["method"] == "IsFriendsWith") {
echo '<Value Type="boolean">false</Value>';
}
if ($_GET["method"] == "IsInGroup") {
if ($_GET['groupid'] == "1200769") {
if (in_array((int)$_GET['playerid'], $admins)) {
$value = 'true';
} else {
$value = 'false';
}
} else {
$value = 'false';
}
echo '<Value Type="boolean">'.$value.'</Value>';
}
?>