Fixes, edits, etc...
This commit is contained in:
parent
1fe292698a
commit
5fab28cb5d
|
|
@ -1 +1 @@
|
|||
BwIAAACkAABSU0EyAAQAAAEAAQCBkEcup1VE5QqMNond57r9eTvrNp716Zi5tiaGiIMU6GWmEXJARnr9ZAJQR+r8MDmMEf8YfVlCHADFCfFqn4lDICfJVdYW3OliqAgUL9Dndp73J+sZ11V4qtBwHxyzuaTuRADpXrd0F+5VgG+c3vbcFXuuNsSu66GIQJfNvJZbugt1BrEB4YcQjJOTdTvCmFVP//uJP7exfHlzYPIDd9An5IquR8S8xFCgiLeNL6lj8alUNFyS8wQazUjygt+PIcgjsIqW+HBy3VBxvNUKtAi0TxWCJoZfJ1rvsjvawl9OwsYgLPVmhzvw984L/KzPENUucoftrU8nJoZuvWn6tWHus595XuAiAlIjk5AOK32jJzbyWzbWcR5p8mew5nQuK2mL4gcSRnucMZ0KPFuMZDpHKNfwlVRjsSPNonixRJbWZQOfQ4FTHp2y9rLKFoAfHCfWH+jIJxIE8xPAjrLt0Y88LjCjVhJ5cZwZOKkz9yVQQZOiKniGy68+ODvAUQuQs2iJlW8ZJOu2V2+mlN3rGUHS+pynN0rfLccyYPArfHtZEeh0YrpnczRcYak4cCYosS/JkhL117AXRdZfWqU0d65S/WD7REliC01XFhKIBFe1HMDNCJRPMu2Wrz2Hs5rOTicLLAmSY0inGW3EdVi0igsBmTpYZRXZjYcJuNJv89N397gPSCWOHTnxW96w/c+YXCCDrHquMO93VE8terSlqvR1VdN9zJVMvJIVXlK+Eu47iM7WfIEF21iwvw2/5kk4jmM=
|
||||
MIICWwIBAAKBgQC6W5a8zZdAiKHrrsQ2rnsV3PbenG+AVe4XdLde6QBE7qS5sxwfcNCqeFXXGesn955259AvFAioYuncFtZVyScgQ4mfavEJxQAcQll9GP8RjDkw/OpHUAJk/XpGQHIRpmXoFIOIhia2uZjp9Z426zt5/brn3Yk2jArlRFWnLkeQgQIDAQABAoGAY444Sea/Db+wWNsFgXzWzog77hK+Ul4VkrxMlcx901V19KqltHotT1R37zCueqyDIFyYz/2w3lvxOR2OJUgPuPd30/Nv0rgJh43ZFWVYOpkBC4q0WHXEbRmnSGOSCSwLJ07OmrOHPa+W7TJPlAjNwBy1VwSIEhZXTQtiSUT7YP0CQQDIIY/fgvJIzRoE85JcNFSp8WOpL423iKBQxLzER66K5CfQdwPyYHN5fLG3P4n7/09VmMI7dZOTjBCH4QGxBnULAkEA7mG1+mm9boYmJ0+t7YdyLtUQz6z8C8738DuHZvUsIMbCTl/C2juy71onX4YmghVPtAi0CtW8cVDdcnD4loqwIwJAZdaWRLF4os0jsWNUlfDXKEc6ZIxbPAqdMZx7RhIH4otpKy505rBn8mkecdY2W/I2J6N9Kw6QkyNSAiLgXnmfswJAaLOQC1HAOzg+r8uGeCqik0FQJfczqTgZnHF5ElajMC48j9Htso7AE/MEEifI6B/WJxwfgBbKsvaynR5TgUOfAwJAUq53NKVaX9ZFF7DX9RKSyS+xKCZwOKlhXDRzZ7pidOgRWXt8K/BgMsct30o3p5z60kEZ692Upm9XtuskGW+ViQ==
|
||||
|
|
@ -30,7 +30,7 @@ namespace Finobe\Games {
|
|||
$characterappearance &&
|
||||
$jobid) {
|
||||
$timestamp = date("m/d/Y h:m:s A", time());
|
||||
$sig1 = Signing::SignData($userid . "\n" . $accountage . "\n" . $username . "\n" . $characterappearance . "\n" . $jobid . "\n" . $timestamp, false);
|
||||
$sig1 = Signing::SignData($userid . "\n" . $username . "\n" . $characterappearance . "\n" . $jobid . "\n" . $timestamp, false);
|
||||
$sig2 = Signing::SignData($userid . "\n" . $jobid . "\n" . $timestamp, false);
|
||||
$ticket = $timestamp.";".$sig1.";".$sig2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Finobe\Grid {
|
|||
private function LogFault($soap, $description)
|
||||
{
|
||||
$theFault = print_r($soap, TRUE); //soap object fault to human readable string (ghetto?)
|
||||
$fault = $GLOBALS['pdo']->prepare("INSERT INTO soap_faults(description, fault, whenOccurred) VALUES(:jd, :f, UNIX_TIMESTAMP())");
|
||||
$fault = $GLOBALS['pdo']->prepare("INSERT INTO soap_faults(jobdescription, fault, whenOccurred) VALUES(:jd, :f, UNIX_TIMESTAMP())");
|
||||
$fault->bindParam(":jd", $description, PDO::PARAM_STR);
|
||||
$fault->bindParam(":f", $theFault, PDO::PARAM_STR);
|
||||
$fault->execute();
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ if ($_SERVER['HTTP_USER_AGENT'] != $GLOBALS['clientUserAgent']) //user agent res
|
|||
die("Invalid request");
|
||||
}
|
||||
|
||||
header('Cache-Control: no-cache');
|
||||
|
||||
$userid = (int)$_GET['UserID'];
|
||||
$placeid = (int)$_GET['PlaceID'];
|
||||
|
||||
|
|
|
|||
|
|
@ -16,25 +16,51 @@ $local = $_GET['local'];
|
|||
|
||||
if ($local)
|
||||
{
|
||||
$joinparams = json_encode(array(
|
||||
"MachineAddress" => "localhost",
|
||||
"ServerPort" => "65535",
|
||||
$userid = 2;
|
||||
$accountage = 1337;
|
||||
$username = "Raymonf";
|
||||
$characterappearance = "https://api.idk16.xyz/users/avatar-accoutrements?userId=" . $userid;
|
||||
$jobid = "Test";
|
||||
$joinparams = json_encode(array(
|
||||
"ClientPort" => 0,
|
||||
"UserName" => "Astrologies",
|
||||
"UserId" => 2,
|
||||
"CreatorId" => 2,
|
||||
"CreatorTypeEnum" => "User",
|
||||
"ChatStyle" => "ClassicAndBubble",
|
||||
"PlaceId" => 186,
|
||||
"CharacterAppearance" => "https://api.idk16.xyz/users/avatar-accoutrements?userId=2",
|
||||
//"IsRobloxPlace" => true,
|
||||
"ClientTicket" => "111",
|
||||
"MachineAddress" => "127.0.0.1",
|
||||
"ServerPort" => "65535",
|
||||
"PingUrl" => "",
|
||||
"PingInterval" => 45,
|
||||
"UserName" => $username,
|
||||
"SeleniumTestMode" => false, //always false, dont need this
|
||||
"UserId" => $userid,
|
||||
"SuperSafeChat" => false, //always false, dont need this
|
||||
"CharacterAppearance" => $characterappearance,
|
||||
"ClientTicket" => Ticket::ClientTicket(array(
|
||||
$userid,
|
||||
$accountage,
|
||||
$username,
|
||||
$characterappearance,
|
||||
$jobid
|
||||
)),
|
||||
"GameId" => '00000000-0000-0000-0000-000000000000', //not set rn?
|
||||
"PlaceId" => 0,
|
||||
"BaseUrl" => $url . "/",
|
||||
"PingUrl" => $url . "",
|
||||
"PingInterval" => 45
|
||||
"ChatStyle" => "ClassicAndBubble", //TODO: make an option for this
|
||||
"VendorId" => 0, //0, dont need this rn?
|
||||
"ScreenShotInfo" => "", //blank, dont need this rn?
|
||||
"VideoInfo" => "", //blank, dont need this rn?
|
||||
"CreatorId" => 2,
|
||||
"CreatorTypeEnum" => "User", //only player places, dont need this
|
||||
"MembershipType" => "None", //no memberships rn
|
||||
"AccountAge" => $accountage,
|
||||
"CookieStoreEnabled" => false, //always false, dont need this
|
||||
"IsRobloxPlace" => false, //dont this this rn?
|
||||
"GenerateTeleportJoin" => false, //dont need this rn?
|
||||
"IsUnknownOrUnder13" => false, //dont need this rn?
|
||||
"SessionId" => "", //blank, dont need this rn?
|
||||
"DataCenterId" => 0, //0, dont need this rn?
|
||||
"UniverseId" => 0, //0, dont need this rn?
|
||||
"BrowserTrackerId" => "" //blank, dont need this rn?
|
||||
), JSON_UNESCAPED_SLASHES);
|
||||
|
||||
die(Signing::SignData($joinparams));
|
||||
die(Signing::SignData("\r\n".$joinparams));
|
||||
}
|
||||
|
||||
if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent restricted
|
||||
|
|
@ -101,7 +127,7 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res
|
|||
"BrowserTrackerId" => "" //blank, dont need this rn?
|
||||
), JSON_UNESCAPED_SLASHES);
|
||||
|
||||
die(Signing::SignData($joinparams));
|
||||
die(Signing::SignData("\r\n".$joinparams));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,14 +23,14 @@ if(getBC($clr) != "-")
|
|||
{
|
||||
if (isThumbnailerAlive())
|
||||
{
|
||||
if (!Render::RenderCooldown($user->id))
|
||||
if (!Render::RenderCooldown($GLOBALS['user']->id))
|
||||
{
|
||||
$upd = $pdo->prepare("UPDATE body_colours SET {$bcdb[$cbc]} = :b WHERE uid = :u");
|
||||
$upd->bindParam(":u", $user->id, PDO::PARAM_INT);
|
||||
$upd->bindParam(":u", $GLOBALS['user']->id, PDO::PARAM_INT);
|
||||
$upd->bindParam(":b", $clr, PDO::PARAM_INT);
|
||||
$upd->execute();
|
||||
|
||||
Render::RenderPlayer($localuser);
|
||||
Render::RenderPlayer($GLOBALS['user']->id);
|
||||
|
||||
echo "s";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ function playGame(id) {
|
|||
$("#linfo").html("Starting Finobe...");
|
||||
$("#launching").modal("show");
|
||||
$("#closediv").hide();
|
||||
location.href = "finobe-player-cc:1+launchmode:play+gameinfo:" + data + "+placelauncherurl:https://www.idk16.xyz/Game/PlaceLauncher?request=RequestGame&placeid=" + id;
|
||||
location.href = "finobe-player:1+launchmode:play+gameinfo:" + data + "+placelauncherurl:https://www.idk16.xyz/Game/PlaceLauncher?request=RequestGame&placeid=" + id;
|
||||
setTimeout(function() {
|
||||
$("#launching").modal("hide");
|
||||
}, 2500);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
use Finobe\Moderation\Filter;
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$text = cleanInput($_POST['text']);
|
||||
$userid = $_POST['userId'];
|
||||
|
||||
if (!$text || !$userid)
|
||||
{
|
||||
die(json_encode(array("success" => false)));
|
||||
}
|
||||
|
||||
if (Filter::IsTextFiltered($text))
|
||||
{
|
||||
logChatMessage($userid, $text, true);
|
||||
|
||||
if (chatFilterInfractionLimit($userid, 3, 120)) //3 infraction within 2 minutes
|
||||
{
|
||||
die(kickUserIfInGame($userid, "'".$text."' is not appropriate on Finobe, continued infractions will lead to a ban."));
|
||||
}
|
||||
|
||||
$text = Filter::FilterText($text);
|
||||
//$text = "[ Content Deleted ]";
|
||||
}
|
||||
|
||||
$return = json_encode(array(
|
||||
"success" => true,
|
||||
"data" => array(
|
||||
"white" => $text,
|
||||
"black" => $text
|
||||
)
|
||||
), JSON_UNESCAPED_SLASHES);
|
||||
|
||||
echo $return;
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Finobe\Users\User;
|
||||
|
||||
//headers
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
|
|
@ -14,6 +15,7 @@ $userID = (int)$_GET['userId'];
|
|||
$assetID = (int)$_GET['assetId'];
|
||||
|
||||
$gInfo = getAssetInfo($assetID);
|
||||
$uInfo = User::GetUserInfo($userID);
|
||||
|
||||
function json($can)
|
||||
{
|
||||
|
|
@ -22,7 +24,7 @@ function json($can)
|
|||
|
||||
if($gInfo !== false)
|
||||
{
|
||||
if($gInfo->CreatorId == $userID || $userID == 2)
|
||||
if($gInfo->CreatorId == $userID || $uInfo->rank == 3)
|
||||
{
|
||||
die(json(true));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ if (!$userid)
|
|||
}
|
||||
|
||||
//get params
|
||||
$page = $_GET['page'];
|
||||
$page = (int)$_GET['page'];
|
||||
$limit = $_GET['limit'];
|
||||
$keyword = substr((string)$_GET['keyword'], 0, 32); //32 limit
|
||||
$keywordq = '%'.$keyword.'%'; //query
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Finobe\Groups\Group;
|
||||
|
||||
//so stuff doesnt cache
|
||||
header("Cache-Control: no-cache");
|
||||
header("Pragma: no-cache");
|
||||
|
|
@ -20,21 +22,21 @@ if ($method == "IsFriendsWith") {
|
|||
}
|
||||
} elseif ($method == "IsInGroup") {
|
||||
header('Content-Type: text/xml');
|
||||
if (isGroupMember($playerid, $groupid)) {
|
||||
if (Group::IsMember($playerid, $groupid)) {
|
||||
echo '<Value Type="boolean">true</Value>';
|
||||
} else {
|
||||
echo '<Value Type="boolean">false</Value>';
|
||||
}
|
||||
} elseif ($method == "GetGroupRank") {
|
||||
header('Content-Type: text/xml');
|
||||
if (isGroupMember($playerid, $groupid)) {
|
||||
echo '<Value Type="integer">'.getRank($playerid, $groupid).'</Value>';
|
||||
if (Group::IsMember($playerid, $groupid)) {
|
||||
echo '<Value Type="integer">'.Group::GetRank($playerid, $groupid).'</Value>';
|
||||
} else {
|
||||
echo '<Value Type="integer">0</Value>';
|
||||
}
|
||||
} elseif ($method == "GetGroupRole") {
|
||||
if (isGroupMember($playerid, $groupid)) {
|
||||
if (Group::IsMember($playerid, $groupid)) {
|
||||
header('Content-Type: text/xml');
|
||||
echo getUserRankName($playerid, $groupid);
|
||||
echo Group::GetUserRankName($playerid, $groupid);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
|
||||
echo '{"ExeVersion": "'.$ws->GameFileVersion.'", "ValidateInstalledExeVersion": "True", "ShowInstallSuccessPrompt": "True"}';
|
||||
|
|
@ -1 +0,0 @@
|
|||
setup.idk16.xyz
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
|
||||
echo $ws->FinobeVersion;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
|
||||
echo $ws->FinobeStudioVersion;
|
||||
Loading…
Reference in New Issue