Finobe!
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Alphaland JS Utilities 2021
|
||||
Finobe JS Utilities 2021
|
||||
*/
|
||||
|
||||
//utility for populating HTML with data from object OR calling a function with the objects current position and replacing the marker with returned data
|
||||
|
|
@ -222,7 +222,7 @@ class Comments {
|
|||
this.messageDelay = messageDelay;
|
||||
this.newObject = newObject;
|
||||
|
||||
var gameInfo = "https://api.alphaland.cc/game/info?id=" + this.assetid;
|
||||
var gameInfo = "https://api.idk16.xyz/game/info?id=" + this.assetid;
|
||||
var self = this;
|
||||
getJSONCDS(gameInfo)
|
||||
.done(function(jsonData) {
|
||||
|
|
@ -250,11 +250,11 @@ class Comments {
|
|||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
multiPageHelper(this.newObject + ".commentsPage", [], "https://api.alphaland.cc/comments/", "https://api.alphaland.cc/logo", this.commentscontainer, this.buttonscontainer, html, page, 10, "", "No comments", "&assetId=" + this.assetid);
|
||||
multiPageHelper(this.newObject + ".commentsPage", [], "https://api.idk16.xyz/comments/", "https://api.idk16.xyz/logo", this.commentscontainer, this.buttonscontainer, html, page, 10, "", "No comments", "&assetId=" + this.assetid);
|
||||
}
|
||||
submitComment(comment) {
|
||||
var self = this;
|
||||
postJSONCDS("https://api.alphaland.cc/comments/newcomment?assetId=" + this.assetid, JSON.stringify({"comment": comment}))
|
||||
postJSONCDS("https://api.idk16.xyz/comments/newcomment?assetId=" + this.assetid, JSON.stringify({"comment": comment}))
|
||||
.done(function(object) {
|
||||
var alert = object.alert;
|
||||
var messageid = self.errorid;
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
//vars
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$thumbalive = false;
|
||||
$gamealive = false;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Alphaland Website
|
||||
# Finobe Website
|
||||
|
||||
Official repo for everything related to the Alphaland website.
|
||||
Official repo for everything related to the Finobe website.
|
||||
|
||||
Everything commited to this project is for personal use.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
kinda shit but its meant for background render processes so not really a concern
|
||||
*/
|
||||
|
||||
use Alphaland\Assets\Render as AssetRender;
|
||||
use Alphaland\Users\Render as UserRender;
|
||||
use Finobe\Assets\Render as AssetRender;
|
||||
use Finobe\Users\Render as UserRender;
|
||||
|
||||
$assetid = $argv[1];
|
||||
$type = $argv[2];
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Administration {
|
||||
namespace Finobe\Administration {
|
||||
|
||||
use Alphaland\Grid\RccServiceHelper;
|
||||
use Finobe\Grid\RccServiceHelper;
|
||||
use PDO;
|
||||
|
||||
class Maintenance
|
||||
{
|
||||
public static function Enable($text = "Alphaland is currently under maintenance, check back later.")
|
||||
public static function Enable($text = "Finobe is currently under maintenance, check back later.")
|
||||
{
|
||||
$setmaintenance = $GLOBALS['pdo']->prepare("UPDATE websettingsdeprecated SET maintenance = 1, maintenance_text = :t");
|
||||
$setmaintenance->bindParam(":t", $text, PDO::PARAM_STR);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Administration {
|
||||
namespace Finobe\Administration {
|
||||
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use PDO;
|
||||
|
||||
class SignupKey
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Assets {
|
||||
namespace Finobe\Assets {
|
||||
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use PDO;
|
||||
|
||||
class Asset
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Assets {
|
||||
namespace Finobe\Assets {
|
||||
class AssetType
|
||||
{
|
||||
public function IsPurchasable($id)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Assets {
|
||||
namespace Finobe\Assets {
|
||||
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Alphaland\Grid\RccServiceHelper;
|
||||
use Alphaland\UI\ImageHelper;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use Finobe\Grid\RccServiceHelper;
|
||||
use Finobe\UI\ImageHelper;
|
||||
use PDO;
|
||||
|
||||
class Render
|
||||
|
|
@ -16,7 +16,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderHat(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." hat", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." hat", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -28,8 +28,8 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Hat ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"750",
|
||||
"750"
|
||||
|
|
@ -47,7 +47,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderTShirt(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." tshirt", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." tshirt", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -59,9 +59,9 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render TShirt ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=38",
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/asset/?id=38",
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"750",
|
||||
"750"
|
||||
|
|
@ -79,7 +79,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderShirt(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." shirt", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." shirt", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -91,9 +91,9 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Shirt ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=38",
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/asset/?id=38",
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"750",
|
||||
"750"
|
||||
|
|
@ -111,7 +111,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderPants(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." pants", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." pants", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -123,9 +123,9 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Pants ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=38",
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/asset/?id=38",
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"750",
|
||||
"750"
|
||||
|
|
@ -143,7 +143,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderFace(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." face", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." face", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -155,8 +155,8 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Face ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"750",
|
||||
"750"
|
||||
|
|
@ -174,7 +174,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderHead(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." head", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." head", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -186,9 +186,9 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Head ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=38",
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/asset/?id=38",
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"750",
|
||||
"750"
|
||||
|
|
@ -206,7 +206,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderGear(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." gear", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." gear", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -218,11 +218,11 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Gear ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"png",
|
||||
"750",
|
||||
"750",
|
||||
"https://www.alphaland.cc/"
|
||||
"https://www.idk16.xyz/"
|
||||
))
|
||||
);
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderPackage(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." package", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." package", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -249,10 +249,10 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Package ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=27112025;https://www.alphaland.cc/asset/?id=27112039;https://www.alphaland.cc/asset/?id=27112052",
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.alphaland.cc/asset/?id=38",
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=27112025;https://www.idk16.xyz/asset/?id=27112039;https://www.idk16.xyz/asset/?id=27112052",
|
||||
"https://www.idk16.xyz/",
|
||||
"https://www.idk16.xyz/asset/?id=38",
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"768",
|
||||
"432"
|
||||
|
|
@ -270,7 +270,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderModel(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." model", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." model", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -282,8 +282,8 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Model ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"768",
|
||||
"432"
|
||||
|
|
@ -301,7 +301,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderMesh(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." mesh", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." mesh", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -313,8 +313,8 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Mesh ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"768",
|
||||
"432"
|
||||
|
|
@ -332,7 +332,7 @@ namespace Alphaland\Assets {
|
|||
public static function RenderPlace(int $assetid, bool $fork=false)
|
||||
{
|
||||
if ($fork) {
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." place", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$assetid." place", "r"); //throwaway background process
|
||||
if ($job !== FALSE); {
|
||||
pclose($job);
|
||||
return true;
|
||||
|
|
@ -344,8 +344,8 @@ namespace Alphaland\Assets {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Place ".$assetid, $thumbnailScript, array(
|
||||
$assetid,
|
||||
"https://www.alphaland.cc/asset/?id=".$assetid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://www.idk16.xyz/asset/?id=".$assetid,
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"768",
|
||||
"432"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* Open an issue if you want to see the values returned as their respective types and not as strings.
|
||||
*
|
||||
* Licensed to Austin "Astrologies" of Alphaland, they are the owners of the code.
|
||||
* Licensed to Austin "Astrologies" of Finobe, they are the owners of the code.
|
||||
*/
|
||||
|
||||
// Note: This could be shortened slightly.
|
||||
|
|
@ -21,9 +21,9 @@
|
|||
/*
|
||||
Usage:
|
||||
|
||||
use Alphaland\Client\ClientSettings;
|
||||
use Alphaland\Client\ClientSettingsApplications;
|
||||
use Alphaland\Client\ClientSettingsKind;
|
||||
use Finobe\Client\ClientSettings;
|
||||
use Finobe\Client\ClientSettingsApplications;
|
||||
use Finobe\Client\ClientSettingsKind;
|
||||
|
||||
require_once './globals/Dependencies/Client/ClientSettings.php';
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ echo "Get Application Bucket Test's settings, has dependencies '" . implode(', '
|
|||
|
||||
*/
|
||||
|
||||
namespace Alphaland\Client {
|
||||
namespace Finobe\Client {
|
||||
|
||||
use Error;
|
||||
use PDO;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Common {
|
||||
namespace Finobe\Common {
|
||||
class ContentDelivery
|
||||
{
|
||||
public static function ConstructRenderHashUrl(string $hash)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Common {
|
||||
namespace Finobe\Common {
|
||||
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Common {
|
||||
namespace Finobe\Common {
|
||||
use PDO;
|
||||
class HashingUtiltity
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Common {
|
||||
namespace Finobe\Common {
|
||||
|
||||
class Signing
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Common {
|
||||
namespace Finobe\Common {
|
||||
class System
|
||||
{
|
||||
public static function IsCommandLine()
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Economy {
|
||||
namespace Finobe\Economy {
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Finobe\Assets\Asset;
|
||||
use PDO;
|
||||
use Alphaland\Users\User;
|
||||
use Finobe\Users\User;
|
||||
use Exception;
|
||||
|
||||
class EconomyHelper
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Games {
|
||||
namespace Finobe\Games {
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Alphaland\Grid\RccServiceHelper;
|
||||
use Finobe\Assets\Asset;
|
||||
use Finobe\Grid\RccServiceHelper;
|
||||
use Exception;
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Games {
|
||||
namespace Finobe\Games {
|
||||
class Persistence
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Games {
|
||||
namespace Finobe\Games {
|
||||
|
||||
use Alphaland\Common\Signing;
|
||||
use Finobe\Common\Signing;
|
||||
|
||||
class Ticket
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
This is responsible for communicating to the specified Webservice
|
||||
Nikita TODO: ALPHA-22 (Response Models for things that definitely have a known response (like specific SOAP actions))
|
||||
https://jira.mfdlabs.local/browse/ALPHA-22
|
||||
*/
|
||||
|
||||
namespace Alphaland\Grid {
|
||||
namespace Finobe\Grid {
|
||||
|
||||
use stdClass;
|
||||
use PDO;
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Astro: Jesus christ this is big, probably due to a lot of whitespace as well. Perhaps reduce the size?
|
||||
Nikita: (YOUR DUMBASS COMMENT HERE)
|
||||
*/
|
||||
|
||||
namespace Alphaland\Groups {
|
||||
namespace Finobe\Groups {
|
||||
|
||||
use Alphaland\Economy\EconomyHelper;
|
||||
use Alphaland\UI\ImageHelper;
|
||||
use Alphaland\Users\User;
|
||||
use Finobe\Economy\EconomyHelper;
|
||||
use Finobe\UI\ImageHelper;
|
||||
use Finobe\Users\User;
|
||||
use Exception;
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Moderation {
|
||||
namespace Finobe\Moderation {
|
||||
use PDO;
|
||||
|
||||
class AssetModerationManager
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Moderation {
|
||||
namespace Finobe\Moderation {
|
||||
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Moderation {
|
||||
namespace Finobe\Moderation {
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
use PDO;
|
||||
|
||||
class UserModerationManager
|
||||
|
|
@ -62,12 +62,12 @@ namespace Alphaland\Moderation {
|
|||
$ban->bindParam(":wb", $GLOBALS['user']->id, PDO::PARAM_INT);
|
||||
$ban->execute();
|
||||
if ($ban->rowCount() > 0) {
|
||||
kickUserIfInGame($uid, "You've been banned from Alphaland, '".$reason."'");
|
||||
kickUserIfInGame($uid, "You've been banned from Finobe, '".$reason."'");
|
||||
UserModerationManager::LogAction("Banned User ".$uid);
|
||||
|
||||
//ban user from discord with bot
|
||||
if($bantype == 2) { //perm ban
|
||||
$discordid = $GLOBALS['pdo']->prepare("SELECT * FROM `alphaland_verification` WHERE `uid` = :id AND isactivated = 1");
|
||||
$discordid = $GLOBALS['pdo']->prepare("SELECT * FROM `finobe_verification` WHERE `uid` = :id AND isactivated = 1");
|
||||
$discordid->bindParam(":id", $uid, PDO::PARAM_INT);
|
||||
$discordid->execute();
|
||||
if ($discordid->rowCount() > 0) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\UI {
|
||||
namespace Finobe\UI {
|
||||
|
||||
use GdImage;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use PDO;
|
||||
|
||||
class Activation
|
||||
|
|
@ -17,7 +17,7 @@ namespace Alphaland\Users {
|
|||
do {
|
||||
$hash = HashingUtiltity::GenerateByteHash(32);
|
||||
|
||||
$keycheck = $GLOBALS['pdo']->prepare("SELECT COUNT(*) FROM `alphaland_verification` WHERE `activationcode` = :ac");
|
||||
$keycheck = $GLOBALS['pdo']->prepare("SELECT COUNT(*) FROM `finobe_verification` WHERE `activationcode` = :ac");
|
||||
$keycheck->bindParam(":ac", $hash, PDO::PARAM_STR);
|
||||
$keycheck->execute();
|
||||
} while($keycheck->fetchColumn(0) != 0);
|
||||
|
|
@ -26,7 +26,7 @@ namespace Alphaland\Users {
|
|||
|
||||
public static function GetUserActivationCode(int $userid)
|
||||
{
|
||||
$query = $GLOBALS['pdo']->prepare("SELECT `activationcode` FROM `alphaland_verification` WHERE `uid` = :uid");
|
||||
$query = $GLOBALS['pdo']->prepare("SELECT `activationcode` FROM `finobe_verification` WHERE `uid` = :uid");
|
||||
$query->bindParam(":uid", $userid, PDO::PARAM_INT);
|
||||
$query->execute();
|
||||
if ($query->rowCount() == 1) {
|
||||
|
|
@ -37,7 +37,7 @@ namespace Alphaland\Users {
|
|||
|
||||
public static function IsUserActivated(int $userid)
|
||||
{
|
||||
$query = $GLOBALS['pdo']->prepare("SELECT COUNT(*) FROM `alphaland_verification` WHERE `isactivated` = 1 AND `uid` = :uid");
|
||||
$query = $GLOBALS['pdo']->prepare("SELECT COUNT(*) FROM `finobe_verification` WHERE `isactivated` = 1 AND `uid` = :uid");
|
||||
$query->bindParam(":uid", $userid, PDO::PARAM_INT);
|
||||
$query->execute();
|
||||
if ($query->fetchColumn(0) > 0) {
|
||||
|
|
@ -51,7 +51,7 @@ namespace Alphaland\Users {
|
|||
if (!Activation::IsUserActivated($userid)) {
|
||||
$activationcode = Activation::GenerateActivationCode();
|
||||
|
||||
$n = $GLOBALS['pdo']->prepare("INSERT INTO `alphaland_verification`(`activationcode`,`uid`) VALUES(:ac, :userid)");
|
||||
$n = $GLOBALS['pdo']->prepare("INSERT INTO `finobe_verification`(`activationcode`,`uid`) VALUES(:ac, :userid)");
|
||||
$n->bindParam(":ac", $activationcode, PDO::PARAM_STR);
|
||||
$n->bindParam(":userid", $userid, PDO::PARAM_INT);
|
||||
$n->execute();
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use Alphaland\Users\User;
|
||||
use Alphaland\Users\Render;
|
||||
use Finobe\Users\User;
|
||||
use Finobe\Users\Render;
|
||||
use Exception;
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Alphaland\Groups\Group;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use Finobe\Groups\Group;
|
||||
use PDO;
|
||||
|
||||
class ReferralProgram
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Alphaland\Grid\RccServiceHelper;
|
||||
use Alphaland\UI\ImageHelper;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use Finobe\Grid\RccServiceHelper;
|
||||
use Finobe\UI\ImageHelper;
|
||||
use PDO;
|
||||
|
||||
class Render
|
||||
|
|
@ -81,7 +81,7 @@ namespace Alphaland\Users {
|
|||
{
|
||||
if ($fork)
|
||||
{
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$userid." avatarcloseup", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$userid." avatarcloseup", "r"); //throwaway background process
|
||||
if ($job !== FALSE);
|
||||
{
|
||||
pclose($job);
|
||||
|
|
@ -100,8 +100,8 @@ namespace Alphaland\Users {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Player Closeup ".$userid, $script, array(
|
||||
$userid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://api.alphaland.cc/users/avatar-accoutrements?userId=".$userid,
|
||||
"https://www.idk16.xyz/",
|
||||
"https://api.idk16.xyz/users/avatar-accoutrements?userId=".$userid,
|
||||
"png",
|
||||
"840",
|
||||
"840",
|
||||
|
|
@ -128,7 +128,7 @@ namespace Alphaland\Users {
|
|||
{
|
||||
if ($fork)
|
||||
{
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$userid." avatar", "r"); //throwaway background process
|
||||
$job = popen("cd D:/Finobe/WebserviceTools/RenderTools && start /B php backgroundRenderJob.php ".$userid." avatar", "r"); //throwaway background process
|
||||
if ($job !== FALSE);
|
||||
{
|
||||
pclose($job);
|
||||
|
|
@ -145,8 +145,8 @@ namespace Alphaland\Users {
|
|||
$soap = $soap->BatchJobEx(
|
||||
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Player ".$userid, $script, array(
|
||||
$userid,
|
||||
"https://api.alphaland.cc/users/avatar-accoutrements?userId=".$userid,
|
||||
"https://www.alphaland.cc/",
|
||||
"https://api.idk16.xyz/users/avatar-accoutrements?userId=".$userid,
|
||||
"https://www.idk16.xyz/",
|
||||
"png",
|
||||
"840",
|
||||
"840"
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
User session class
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users
|
||||
namespace Finobe\Users
|
||||
{
|
||||
|
||||
use Alphaland\Common\HashingUtiltity;
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Users\Activation;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Common\HashingUtiltity;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Users\Activation;
|
||||
use Finobe\Web\WebContextManager;
|
||||
use PDO;
|
||||
|
||||
class Session
|
||||
|
|
@ -77,7 +77,7 @@ namespace Alphaland\Users
|
|||
$session->bindParam(":i", $ip, PDO::PARAM_STR);
|
||||
$session->bindParam(":ua", $user_agent, PDO::PARAM_STR);
|
||||
if($session->execute()) {
|
||||
setcookie("token", $token, time() + (86400 * 30), "/", ".alphaland.cc"); //30 day expiration on token for (hopefully) all alphaland paths
|
||||
setcookie("token", $token, time() + (86400 * 30), "/", ".idk16.xyz"); //30 day expiration on token for (hopefully) all finobe paths
|
||||
$this->ValidateSession($token);
|
||||
return true;
|
||||
} else {
|
||||
|
|
@ -151,7 +151,7 @@ namespace Alphaland\Users
|
|||
}
|
||||
}
|
||||
//No valid session
|
||||
setcookie("token", null, time(), "/", ".alphaland.cc"); //delete (all token?) cookies
|
||||
setcookie("token", null, time(), "/", ".idk16.xyz"); //delete (all token?) cookies
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use PDO;
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ namespace Alphaland\Users {
|
|||
$username = getUsername($userid);
|
||||
if ($username) {
|
||||
$secret = TwoFactor::SafeGenerate2FASecret();
|
||||
$qrcode = $GLOBALS['authenticator']->getQRCodeGoogleUrl($username, $secret, "Alphaland");
|
||||
$qrcode = $GLOBALS['authenticator']->getQRCodeGoogleUrl($username, $secret, "Finobe");
|
||||
$new2fa = $GLOBALS['pdo']->prepare("INSERT INTO `twofactor`(`userid`, `secret`, `qr`, `whenGenerated`) VALUES (:uid, :secret, :qr, UNIX_TIMESTAMP())");
|
||||
$new2fa->bindParam(":uid", $userid, PDO::PARAM_INT);
|
||||
$new2fa->bindParam(":secret", $secret, PDO::PARAM_STR);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Users {
|
||||
namespace Finobe\Users {
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Finobe\Assets\Asset;
|
||||
use Exception;
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Example:
|
|||
|
||||
<?php
|
||||
|
||||
use Alphaland\Web\IpHelper;
|
||||
use Finobe\Web\IpHelper;
|
||||
|
||||
require_once './globals/Dependencies/Web/IpRange.php';
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ assert(IpHelper::IsIpInNetmask($baseAddress, $netmask));
|
|||
|
||||
*/
|
||||
|
||||
namespace Alphaland\Web {
|
||||
namespace Finobe\Web {
|
||||
/**
|
||||
* A class to help in the aid of IP address identification.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Alphaland\Web {
|
||||
namespace Finobe\Web {
|
||||
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
* Ported from MFDLABS/corp-integral/src/lib/web/settings.fx
|
||||
*/
|
||||
|
||||
namespace Alphaland\Web {
|
||||
namespace Finobe\Web {
|
||||
|
||||
use PDO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021 site configuration
|
||||
Finobe 2021 site configuration
|
||||
This is extremely sensitive.
|
||||
TODO: not ideal to hardcode paths like this, clean up
|
||||
|
||||
|
|
@ -12,12 +12,12 @@
|
|||
TODO: kill nsg
|
||||
*/
|
||||
|
||||
use Alphaland\Users\Activation;
|
||||
use Alphaland\Users\TwoFactor;
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Alphaland\Common\System;
|
||||
use Alphaland\Users\Session;
|
||||
use Finobe\Users\Activation;
|
||||
use Finobe\Users\TwoFactor;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
use Finobe\Common\System;
|
||||
use Finobe\Users\Session;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
@ -33,14 +33,14 @@ try
|
|||
PDO::ATTR_PERSISTENT => true
|
||||
);
|
||||
//host //db name //db user //db password //options
|
||||
$pdo = new PDO("mysql:host=localhost;dbname=alphalanddatabase", "aa9205c5b776b2368833bec1e8b34e1c", "68adae776e087fb1b34baf439710cf94", $pdoOptions);
|
||||
$pdo = new PDO("mysql:host=localhost;dbname=finobedatabase", "aa9205c5b776b2368833bec1e8b34e1c", "68adae776e087fb1b34baf439710cf94", $pdoOptions);
|
||||
|
||||
//general vars
|
||||
$jsversion = "12.00"; //update this after updating JS, this will re-cache the latest js for users
|
||||
$cssversion = "12.00"; //update this after updating CSS, this will re-cache the latest css for users
|
||||
|
||||
$siteName = "Alphaland"; //site name
|
||||
$domain = "alphaland.cc";
|
||||
$siteName = "Finobe"; //site name
|
||||
$domain = "idk16.xyz";
|
||||
$url = "https://www.".$domain; //site URL
|
||||
$ws = $pdo->query("SELECT * FROM websettings WHERE id = 1")->fetch(PDO::FETCH_OBJ); //websettings
|
||||
$clientUserAgent = "Roblox/WinInet";
|
||||
|
|
@ -53,41 +53,41 @@ try
|
|||
$defaultHeadshotHash = "fb5d52c08aa538483647373c5a20fd73"; //default headshot render for characters
|
||||
|
||||
//cdn urls
|
||||
$renderCDN = "https://trcdn.alphaland.cc"; //endpoint for renders
|
||||
$assetCDN = "https://acdn.alphaland.cc"; //endpoint for assets
|
||||
$thumbnailCDN = "https://tcdn.alphaland.cc"; //endpoint for thumbnails
|
||||
$renderCDN = "https://trcdn.idk16.xyz"; //endpoint for renders
|
||||
$assetCDN = "https://acdn.idk16.xyz"; //endpoint for assets
|
||||
$thumbnailCDN = "https://tcdn.idk16.xyz"; //endpoint for thumbnails
|
||||
|
||||
//cdn paths
|
||||
$renderCDNPath = "C:/Webserver/nginx/Alphaland/html_renders_cdn/"; //path to where renders are stored
|
||||
$thumbnailCDNPath = "C:/Webserver/nginx/Alphaland/html_thumbs_cdn/"; //path to where thumbnails are stored
|
||||
$assetCDNPath = "C:/Webserver/nginx/Alphaland/html_assets_cdn/"; //path to where assets are stored
|
||||
$renderCDNPath = "D:/Finobe/html_renders_cdn/"; //path to where renders are stored
|
||||
$thumbnailCDNPath = "D:/Finobe/html_thumbs_cdn/"; //path to where thumbnails are stored
|
||||
$assetCDNPath = "D:/Finobe/html_assets_cdn/"; //path to where assets are stored
|
||||
|
||||
//lua script paths
|
||||
$avatarthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/AvatarScript.lua";
|
||||
$facethumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/FaceScript.lua";
|
||||
$hatthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/HatScript.lua";
|
||||
$tshirtthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/TShirtScript.lua";
|
||||
$shirtthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/ShirtScript.lua";
|
||||
$pantsthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/PantsScript.lua";
|
||||
$headthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/HeadScript.lua";
|
||||
$placethumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/PlaceScript.lua";
|
||||
$modelthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/ModelScript.lua";
|
||||
$gearthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/GearScript.lua";
|
||||
$avatarcloseupthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/AvatarCloseupScript.lua";
|
||||
$meshthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/MeshScript.lua";
|
||||
$packagescript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/PackageScript.lua";
|
||||
$gameserverscript = "C:/Webserver/nginx/Alphaland/luascripts/game/gameserver.lua";
|
||||
$avatarthumbnailscript = "D:/Finobe/luascripts/thumbnails/AvatarScript.lua";
|
||||
$facethumbnailscript = "D:/Finobe/luascripts/thumbnails/FaceScript.lua";
|
||||
$hatthumbnailscript = "D:/Finobe/luascripts/thumbnails/HatScript.lua";
|
||||
$tshirtthumbnailscript = "D:/Finobe/luascripts/thumbnails/TShirtScript.lua";
|
||||
$shirtthumbnailscript = "D:/Finobe/luascripts/thumbnails/ShirtScript.lua";
|
||||
$pantsthumbnailscript = "D:/Finobe/luascripts/thumbnails/PantsScript.lua";
|
||||
$headthumbnailscript = "D:/Finobe/luascripts/thumbnails/HeadScript.lua";
|
||||
$placethumbnailscript = "D:/Finobe/luascripts/thumbnails/PlaceScript.lua";
|
||||
$modelthumbnailscript = "D:/Finobe/luascripts/thumbnails/ModelScript.lua";
|
||||
$gearthumbnailscript = "D:/Finobe/luascripts/thumbnails/GearScript.lua";
|
||||
$avatarcloseupthumbnailscript = "D:/Finobe/luascripts/thumbnails/AvatarCloseupScript.lua";
|
||||
$meshthumbnailscript = "D:/Finobe/luascripts/thumbnails/MeshScript.lua";
|
||||
$packagescript = "D:/Finobe/luascripts/thumbnails/PackageScript.lua";
|
||||
$gameserverscript = "D:/Finobe/luascripts/game/gameserver.lua";
|
||||
|
||||
//soap paths
|
||||
$RCCwsdl = "C:/Webserver/nginx/Alphaland/RCCService.wsdl"; //wsdl path for SOAP
|
||||
$RCCwsdl = "D:/Finobe/RCCService.wsdl"; //wsdl path for SOAP
|
||||
|
||||
//misc paths
|
||||
$pbsOverlayPath = "C:/Webserver/nginx/Alphaland/PersonalServerOverlay.png";
|
||||
$setupHtmlPath = "C:/Webserver/nginx/Alphaland/html_setup/";
|
||||
$defaultPlacesPath = "C:/Webserver/nginx/Alphaland/default_places/"; //path to where the default places are stored
|
||||
$defaultPbsPlacesPath = "C:/Webserver/nginx/Alphaland/default_pbs_places/"; //path to where the default pbs places are stored
|
||||
$defaultXmlsPath = "C:/Webserver/nginx/Alphaland/default_xmls/"; //path to where the default xmls stored
|
||||
$privateKeyPath = "C:/Webserver/nginx/Alphaland/AlphalandRawKey.txt"; //path to where the private key is stored
|
||||
$pbsOverlayPath = "D:/Finobe/PersonalServerOverlay.png";
|
||||
$setupHtmlPath = "D:/Finobe/html_setup/";
|
||||
$defaultPlacesPath = "D:/Finobe/default_places/"; //path to where the default places are stored
|
||||
$defaultPbsPlacesPath = "D:/Finobe/default_pbs_places/"; //path to where the default pbs places are stored
|
||||
$defaultXmlsPath = "D:/Finobe/default_xmls/"; //path to where the default xmls stored
|
||||
$privateKeyPath = "D:/Finobe/FinobeRawKey.txt"; //path to where the private key is stored
|
||||
|
||||
//machine ip's
|
||||
$gameMachine = "167.114.96.92"; //IP address of the machine that runs gameservers
|
||||
|
|
@ -98,35 +98,35 @@ try
|
|||
$thumbnailArbiter = $renderMachine.":64989"; //IP address/port of the Arbiter running on the render machine
|
||||
|
||||
//autoloader include
|
||||
require 'C:\Users\Administrator\vendor\autoload.php';
|
||||
require 'D:/Finobe/vendor/autoload.php';
|
||||
|
||||
//alphaland specfic dependencies (listing manually for now due to active rewrite of stuff)
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Activation.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/TwoFactor.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/ReferralProgram.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Moderation/UserModerationManager.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/HashingUtiltity.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Web/WebContextManager.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/System.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Assets/Asset.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Games/Game.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Grid/RccServiceHelper.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Assets/Render.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/UI/ImageHelper.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Render.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/Signing.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/Email.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Games/Ticket.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/User.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Session.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Outfit.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Moderation/Filter.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Badge.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Administration/SignupKey.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Economy/EconomyHelper.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Groups/Group.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Web/WebsiteSettings.php";
|
||||
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Web/IpRange.php";
|
||||
//finobe specfic dependencies (listing manually for now due to active rewrite of stuff)
|
||||
include "D:/Finobe/globals/Dependencies/Users/Activation.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/TwoFactor.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/ReferralProgram.php";
|
||||
include "D:/Finobe/globals/Dependencies/Moderation/UserModerationManager.php";
|
||||
include "D:/Finobe/globals/Dependencies/Common/HashingUtiltity.php";
|
||||
include "D:/Finobe/globals/Dependencies/Web/WebContextManager.php";
|
||||
include "D:/Finobe/globals/Dependencies/Common/System.php";
|
||||
include "D:/Finobe/globals/Dependencies/Assets/Asset.php";
|
||||
include "D:/Finobe/globals/Dependencies/Games/Game.php";
|
||||
include "D:/Finobe/globals/Dependencies/Grid/RccServiceHelper.php";
|
||||
include "D:/Finobe/globals/Dependencies/Assets/Render.php";
|
||||
include "D:/Finobe/globals/Dependencies/UI/ImageHelper.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/Render.php";
|
||||
include "D:/Finobe/globals/Dependencies/Common/Signing.php";
|
||||
include "D:/Finobe/globals/Dependencies/Common/Email.php";
|
||||
include "D:/Finobe/globals/Dependencies/Games/Ticket.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/User.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/Session.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/Outfit.php";
|
||||
include "D:/Finobe/globals/Dependencies/Moderation/Filter.php";
|
||||
include "D:/Finobe/globals/Dependencies/Users/Badge.php";
|
||||
include "D:/Finobe/globals/Dependencies/Administration/SignupKey.php";
|
||||
include "D:/Finobe/globals/Dependencies/Economy/EconomyHelper.php";
|
||||
include "D:/Finobe/globals/Dependencies/Groups/Group.php";
|
||||
include "D:/Finobe/globals/Dependencies/Web/WebsiteSettings.php";
|
||||
include "D:/Finobe/globals/Dependencies/Web/IpRange.php";
|
||||
|
||||
//authenticator
|
||||
$authenticator = new PHPGangsta_GoogleAuthenticator();
|
||||
|
|
@ -138,7 +138,7 @@ try
|
|||
$mail->SMTPSecure = "tls";
|
||||
$mail->Port = 587;
|
||||
$mail->Host = "smtp.gmail.com";
|
||||
$mail->Username = "alphalandtemp@gmail.com"; //google for now (easy and free)
|
||||
$mail->Username = "finobetemp@gmail.com"; //google for now (easy and free)
|
||||
$mail->Password = "117A7AE7CE40674453E00492CB699F54";
|
||||
|
||||
//cloudflare
|
||||
|
|
@ -233,5 +233,5 @@ try
|
|||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
die("Alphaland is currently unavailable.");
|
||||
die("Finobe is currently unavailable.");
|
||||
}
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
A bunch of global functions used sitewide
|
||||
TODO: clean up a lot of legacy code
|
||||
*/
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Alphaland\Assets\Render;
|
||||
use Alphaland\Games\Game;
|
||||
use Alphaland\Moderation\Filter;
|
||||
use Alphaland\Users\Render as UsersRender;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Assets\Asset;
|
||||
use Finobe\Assets\Render;
|
||||
use Finobe\Games\Game;
|
||||
use Finobe\Moderation\Filter;
|
||||
use Finobe\Users\Render as UsersRender;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
//safe generation utilities
|
||||
|
||||
|
|
@ -526,7 +526,7 @@ function submitRobloxAssetWorker($requestedassetid, $assettypeid, $assetname, $a
|
|||
$newassetid = uploadXML($xml, $assetname, $assetdescription, $price, $onsale, $assettypeid, 1);
|
||||
|
||||
if ($newassetid !== FALSE) {
|
||||
Asset::GiveAsset($newassetid, 1); //give the user Alphaland the created asset
|
||||
Asset::GiveAsset($newassetid, 1); //give the user Finobe the created asset
|
||||
$assettypeid = getAssetInfo($newassetid)->AssetTypeId;
|
||||
|
||||
switch ($assettypeid) {
|
||||
|
|
@ -606,13 +606,13 @@ function getRobloxProductInfo($assetid)
|
|||
|
||||
function ReturnAssetFromHash($hash) //asset CDN
|
||||
{
|
||||
//alphaland assets cdn
|
||||
//finobe assets cdn
|
||||
WebContextManager::Redirect(constructAssetHashUrl($hash));
|
||||
}
|
||||
|
||||
function ReturnThumbnailFromHash($hash) //thumb CDN (images)
|
||||
{
|
||||
//alphaland thumb (images) cdn
|
||||
//finobe thumb (images) cdn
|
||||
WebContextManager::Redirect(constructThumbnailHashUrl($hash));
|
||||
}
|
||||
|
||||
|
|
@ -1097,7 +1097,7 @@ function canJoinUser($uid) //
|
|||
|
||||
function sendMail($from, $recipient, $subject, $body, $altbody)
|
||||
{
|
||||
$job = popen("cd C:/Webserver/nginx/Alphaland && start /B php sendEmail.php ".$from." ".$recipient." ".base64_encode($subject)." ".base64_encode($body)." ".base64_encode($altbody), "r");
|
||||
$job = popen("cd D:/Finobe && start /B php sendEmail.php ".$from." ".$recipient." ".base64_encode($subject)." ".base64_encode($body)." ".base64_encode($altbody), "r");
|
||||
if ($job !== FALSE);
|
||||
{
|
||||
pclose($job);
|
||||
|
|
@ -1153,17 +1153,17 @@ function sendVerificationEmail($from, $recipient) //1 = success, 2 = cooldown, 3
|
|||
$email_html = '
|
||||
<div style="width:40rem;background-color:white;border:1px solid rgba(0,0,0,.125);border-radius:5px;padding:12px;margin:auto;">
|
||||
<div style="text-align:center;">
|
||||
<img src="https://alphaland.cc/alphaland/cdn/imgs/alphaland-1024.png" style="width:18rem;">
|
||||
<img src="https://idk16.xyz/finobe/cdn/imgs/finobe-1024.png" style="width:18rem;">
|
||||
</div>
|
||||
<div style="text-align:center;">
|
||||
<strong>Click the button below to verify your email!</strong>
|
||||
</div>
|
||||
<div style="text-align:center;margin-top:10px;">
|
||||
<a style="text-decoration:none;" href="https://alphaland.cc/verifyemail?token='.$t.'"><span style="border:none;color:white;background-color:#c82333;border-radius:4px;padding:10px;cursor:pointer;">Verify Email</span></a>
|
||||
<a style="text-decoration:none;" href="https://idk16.xyz/verifyemail?token='.$t.'"><span style="border:none;color:white;background-color:#c82333;border-radius:4px;padding:10px;cursor:pointer;">Verify Email</span></a>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
$email_altbody = 'https://alphaland.cc/verifyemail?token='.$t.'';
|
||||
$email_altbody = 'https://idk16.xyz/verifyemail?token='.$t.'';
|
||||
|
||||
$checkifverified = $GLOBALS['pdo']->prepare("SELECT * FROM users WHERE id = :u AND verified = 0");
|
||||
$checkifverified->bindParam(":u", $localuser, PDO::PARAM_INT);
|
||||
|
|
@ -1217,7 +1217,7 @@ function changeEmail($newemail) //1 = success, 2 = cooldown, 3 = fail
|
|||
{
|
||||
$localuser = $GLOBALS['user']->id;
|
||||
|
||||
$sendver = sendVerificationEmail("info@alphaland.cc", $newemail);
|
||||
$sendver = sendVerificationEmail("info@idk16.xyz", $newemail);
|
||||
|
||||
if ($sendver == 1) //all good
|
||||
{
|
||||
|
|
@ -1237,7 +1237,7 @@ function changeEmail($newemail) //1 = success, 2 = cooldown, 3 = fail
|
|||
$unverify->bindParam(":u", $localuser, PDO::PARAM_INT);
|
||||
if ($unverify->execute())
|
||||
{
|
||||
$sendver2 = sendVerificationEmail("info@alphaland.cc", $newemail);
|
||||
$sendver2 = sendVerificationEmail("info@idk16.xyz", $newemail);
|
||||
|
||||
if ($sendver2 == 1) //all good
|
||||
{
|
||||
|
|
@ -1318,17 +1318,17 @@ function sendPasswordReset($from, $recipient, $recipientuid) //1 = success, 2 =
|
|||
$email_html = '
|
||||
<div style="width:40rem;background-color:white;border:1px solid rgba(0,0,0,.125);border-radius:5px;padding:12px;margin:auto;">
|
||||
<div style="text-align:center;">
|
||||
<img src="https://alphaland.cc/alphaland/cdn/imgs/alphaland-1024.png" style="width:18rem;">
|
||||
<img src="https://idk16.xyz/finobe/cdn/imgs/finobe-1024.png" style="width:18rem;">
|
||||
</div>
|
||||
<div style="text-align:center;">
|
||||
<strong>Click the button below to reset your password!</strong>
|
||||
</div>
|
||||
<div style="text-align:center;margin-top:10px;">
|
||||
<a style="text-decoration:none;" href="https://alphaland.cc/settings/resetpassword?token='.$t.'"><span style="border:none;color:white;background-color:#c82333;border-radius:4px;padding:10px;cursor:pointer;">Reset Password</span></a>
|
||||
<a style="text-decoration:none;" href="https://idk16.xyz/settings/resetpassword?token='.$t.'"><span style="border:none;color:white;background-color:#c82333;border-radius:4px;padding:10px;cursor:pointer;">Reset Password</span></a>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
$email_altbody = 'https://alphaland.cc/settings/resetpassword?token='.$t.'';
|
||||
$email_altbody = 'https://idk16.xyz/settings/resetpassword?token='.$t.'';
|
||||
|
||||
$check = $GLOBALS['pdo']->prepare("SELECT * FROM password_reset_keys WHERE uid = :u AND valid = 1");
|
||||
$check->bindParam(":u", $recipientuid, PDO::PARAM_INT);
|
||||
|
|
@ -2568,47 +2568,47 @@ function getCurrentTheme() //returns the theme set (integer)
|
|||
}
|
||||
}
|
||||
|
||||
function getCurrentThemeLogo() //grabs the alphaland logo for the users selected theme
|
||||
function getCurrentThemeLogo() //grabs the finobe logo for the users selected theme
|
||||
{
|
||||
$currenttheme = getCurrentTheme();
|
||||
|
||||
//return $GLOBALS['url'] . "/alphaland/cdn/imgs/alpha-christmas/alphalandchristmas.png"; //force christmas logo
|
||||
//return $GLOBALS['url'] . "/finobe/cdn/imgs/alpha-christmas/finobechristmas.png"; //force christmas logo
|
||||
|
||||
if ($currenttheme == 0) //light theme dark logo
|
||||
{
|
||||
return $GLOBALS['url'] . "/alphaland/cdn/imgs/alphaland-logo.svg";
|
||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/finobe-logo.svg";
|
||||
}
|
||||
elseif ($currenttheme == 1) //dark theme light logo
|
||||
{
|
||||
return $GLOBALS['url'] . "/alphaland/cdn/imgs/alphaland-white-1024.png";
|
||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/finobe-white-1024.png";
|
||||
}
|
||||
}
|
||||
|
||||
function getCurrentThemeAlphabuxLogo() //grabs the alphaland alphabux logo for the users selected theme
|
||||
function getCurrentThemeAlphabuxLogo() //grabs the finobe alphabux logo for the users selected theme
|
||||
{
|
||||
$currenttheme = getCurrentTheme();
|
||||
|
||||
if ($currenttheme == 0) //light theme dark logo
|
||||
{
|
||||
return $GLOBALS['url'] . "/alphaland/cdn/imgs/alphabux-black-1024.png";
|
||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/alphabux-black-1024.png";
|
||||
}
|
||||
elseif ($currenttheme == 1) //dark theme light logo
|
||||
{
|
||||
return $GLOBALS['url'] . "/alphaland/cdn/imgs/alphabux-grey-1024.png";
|
||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/alphabux-grey-1024.png";
|
||||
}
|
||||
}
|
||||
|
||||
function getCurrentThemeAnimatedLogo() //grabs the alphaland animated logo for the users selected theme
|
||||
function getCurrentThemeAnimatedLogo() //grabs the finobe animated logo for the users selected theme
|
||||
{
|
||||
$currenttheme = getCurrentTheme();
|
||||
|
||||
if ($currenttheme == 0) //light theme dark logo
|
||||
{
|
||||
return $GLOBALS['url'] . "/alphaland/cdn/imgs/loading-dark.gif";
|
||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/loading-dark.gif";
|
||||
}
|
||||
elseif ($currenttheme == 1) //dark theme light logo
|
||||
{
|
||||
return $GLOBALS['url'] . "/alphaland/cdn/imgs/loading-light.gif";
|
||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/loading-light.gif";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2624,7 +2624,7 @@ function getCurrentThemeStyle() //grabs the style sheet for the users selected t
|
|||
|
||||
if ($currenttheme == 1) //dark theme
|
||||
{
|
||||
return '<link rel="stylesheet" type="text/css" href="https://www.alphaland.cc/alphaland/css/stylesheet-dark.css?version='.$GLOBALS['cssversion'].'">';
|
||||
return '<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/finobe/css/stylesheet-dark.css?version='.$GLOBALS['cssversion'].'">';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2638,16 +2638,16 @@ function getCSS($studio=false)
|
|||
}
|
||||
|
||||
return '
|
||||
<link rel="stylesheet" type="text/css" href="https://www.alphaland.cc/alphaland/css/stylesheet.css?version='.$GLOBALS['cssversion'].'">
|
||||
<link rel="stylesheet" type="text/css" href="https://www.alphaland.cc/alphaland/css/bootstrap.min.css?version='.$GLOBALS['cssversion'].'">
|
||||
<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/finobe/css/stylesheet.css?version='.$GLOBALS['cssversion'].'">
|
||||
<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/finobe/css/bootstrap.min.css?version='.$GLOBALS['cssversion'].'">
|
||||
'.$theme.'
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
|
||||
<script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js" data-search-pseudo-elements></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="https://www.alphaland.cc/alphaland/js/bootstrap.min.js?version='.$GLOBALS['jsversion'].'"></script>
|
||||
<script type="text/javascript" src="https://www.alphaland.cc/alphaland/js/utilities.js?version='.$GLOBALS['jsversion'].'"></script>';
|
||||
<script type="text/javascript" src="https://www.idk16.xyz/finobe/js/bootstrap.min.js?version='.$GLOBALS['jsversion'].'"></script>
|
||||
<script type="text/javascript" src="https://www.idk16.xyz/finobe/js/utilities.js?version='.$GLOBALS['jsversion'].'"></script>';
|
||||
|
||||
}
|
||||
//end theme stuff
|
||||
|
|
@ -2667,7 +2667,7 @@ function getFooter()
|
|||
<div class="container p-3">
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<strong>Alphaland</strong> | <a style="color:grey;">'.$year.'</a>
|
||||
<strong>Finobe</strong> | <a style="color:grey;">'.$year.'</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
@ -2677,13 +2677,13 @@ function getFooter()
|
|||
</div>
|
||||
<div class="row border-bottom pb-1">
|
||||
<div class="col-sm">
|
||||
<a>Alphaland is not affiliated with Lego, ROBLOX, MegaBloks, Bionicle, Pokemon, Nintendo, Lincoln Logs, Yu Gi Oh, K\'nex, Tinkertoys, Erector Set, or the Pirates of the Caribbean. ARrrr!</a>
|
||||
<a>Finobe is not affiliated with Lego, ROBLOX, MegaBloks, Bionicle, Pokemon, Nintendo, Lincoln Logs, Yu Gi Oh, K\'nex, Tinkertoys, Erector Set, or the Pirates of the Caribbean. ARrrr!</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<a style="font-size: 1.6rem;color:red;" href="https://www.youtube.com/channel/UC5o1iJC9wonCWPvTvtORklg"><i class="fab fa-youtube"></i></a>
|
||||
<a style="font-size: 1.6rem;color:#1DA1F2;" href="https://twitter.com/_Alphaland"><i class="fab fa-twitter"></i></a>
|
||||
<a style="font-size: 1.6rem;color:#1DA1F2;" href="https://twitter.com/_Finobe"><i class="fab fa-twitter"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -2789,7 +2789,7 @@ function getNav()
|
|||
'.$modbutton.'
|
||||
'.(($user->IsAdmin())? '
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://crackpot.alphaland.cc">Admin</a>
|
||||
<a class="nav-link" href="https://crackpot.idk16.xyz">Admin</a>
|
||||
</li>':'').'
|
||||
</ul>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
|
@ -2801,7 +2801,7 @@ function getNav()
|
|||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link mr-3" href=""><img style="width:1rem;" src="/alphaland/cdn/imgs/alphabux-grey-1024.png"> '.$user->currency.'</a>
|
||||
<a class="nav-link mr-3" href=""><img style="width:1rem;" src="/finobe/cdn/imgs/alphabux-grey-1024.png"> '.$user->currency.'</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">'.$user->name.'</a>
|
||||
|
|
@ -2820,7 +2820,7 @@ function getNav()
|
|||
'.$gameserverstatus.'
|
||||
</header>
|
||||
<script>
|
||||
setInterval(function(){ getJSONCDS("https://api.alphaland.cc/sitepresence/ping"); }, 60000); //ping every minute;
|
||||
setInterval(function(){ getJSONCDS("https://api.idk16.xyz/sitepresence/ping"); }, 60000); //ping every minute;
|
||||
</script>
|
||||
<br/>';
|
||||
}
|
||||
|
|
@ -2828,7 +2828,7 @@ function getNav()
|
|||
<header>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="padding-right:10%;padding-left:10%;">
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="/alphaland/cdn/imgs/alphaland-logo.svg" width="40" height="40" class="d-inline-block align-top" alt="" loading="lazy">
|
||||
<img src="/finobe/cdn/imgs/finobe-logo.svg" width="40" height="40" class="d-inline-block align-top" alt="" loading="lazy">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Easy utility for pages
|
||||
*/
|
||||
|
||||
class page_handler {
|
||||
public $siteName = "Alphaland";
|
||||
public $siteName = "Finobe";
|
||||
public $sheader;
|
||||
public $pagetitle;
|
||||
public $navbar;
|
||||
|
|
@ -26,7 +26,7 @@ class page_handler {
|
|||
<title>%s</title>
|
||||
%s
|
||||
</head>
|
||||
<body id="alphaland-main-body">
|
||||
<body id="finobe-main-body">
|
||||
%s
|
||||
%s
|
||||
%s
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Users\TwoFactor;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Users\TwoFactor;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (TwoFactor::IsSession2FAUnlocked()){
|
||||
WebContextManager::Redirect("/");
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ $body = <<<EOT
|
|||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-body text-center">
|
||||
<img style="width: 15rem;" src="https://api.alphaland.cc/logo">
|
||||
<img style="width: 15rem;" src="https://api.idk16.xyz/logo">
|
||||
<h2 class="mt-3">404 | Page not found</h2>
|
||||
<hr>
|
||||
<a onclick="javascript:history.back()"><button class="btn btn-danger">Back</button></a><h> </h><a onclick="location.href = '/';""><button class="btn btn-danger">Home</button></a>
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
//stuff for staff will be handled here
|
||||
|
||||
use Alphaland\Common\Signing;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Common\Signing;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
//the design choice here was to tie in clientpresence with recently played and visits and make it fully server-sided besides the client pings
|
||||
|
||||
use Alphaland\Economy\EconomyHelper;
|
||||
use Alphaland\Games\Game;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Economy\EconomyHelper;
|
||||
use Finobe\Games\Game;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Very messy but will clean up
|
||||
*/
|
||||
|
||||
use Alphaland\Common\Signing;
|
||||
use Alphaland\Games\Game;
|
||||
use Alphaland\Games\Ticket;
|
||||
use Finobe\Common\Signing;
|
||||
use Finobe\Games\Game;
|
||||
use Finobe\Games\Ticket;
|
||||
|
||||
header("Content-Type: text/plain");
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ if ($local)
|
|||
"CreatorTypeEnum" => "User",
|
||||
"ChatStyle" => "ClassicAndBubble",
|
||||
"PlaceId" => 186,
|
||||
"CharacterAppearance" => "https://api.alphaland.cc/users/avatar-accoutrements?userId=2",
|
||||
"CharacterAppearance" => "https://api.idk16.xyz/users/avatar-accoutrements?userId=2",
|
||||
//"IsRobloxPlace" => true,
|
||||
"ClientTicket" => "111",
|
||||
"BaseUrl" => $url . "/",
|
||||
|
|
@ -59,7 +59,7 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res
|
|||
$placeid = $gameInfo->id;
|
||||
$userid = $sInfo->uid;
|
||||
$username = getUsername($userid);
|
||||
$characterappearance = "https://api.alphaland.cc/users/avatar-accoutrements?userId=" . $userid;
|
||||
$characterappearance = "https://api.idk16.xyz/users/avatar-accoutrements?userId=" . $userid;
|
||||
$accountage = round((time()-userInfo($userid)->joindate)/86400);
|
||||
|
||||
$joinparams = json_encode(array(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@ if ($currenttoken->rowCount() > 0)
|
|||
if(($whenGenerated + (300)) > time()) //under the 3 minute interval
|
||||
{
|
||||
//remove previous cookies
|
||||
setcookie("token", null, time(), "/", "alphaland.cc"); //delete non www. cookie
|
||||
setcookie("token", null, time(), "/", "www.alphaland.cc"); //delete www. cookie
|
||||
setcookie("token", null, time(), "/", ".alphaland.cc"); //delete (all token?) cookies
|
||||
setcookie("token", null, time(), "/", "idk16.xyz"); //delete non www. cookie
|
||||
setcookie("token", null, time(), "/", "www.idk16.xyz"); //delete www. cookie
|
||||
setcookie("token", null, time(), "/", ".idk16.xyz"); //delete (all token?) cookies
|
||||
// ...
|
||||
|
||||
//set new cookie from auth ticket
|
||||
setcookie("token", $sessiontoken, time() + (86400 * 30), "/", ".alphaland.cc"); //30 day expiration on token for (hopefully) all alphaland paths
|
||||
setcookie("token", $sessiontoken, time() + (86400 * 30), "/", ".idk16.xyz"); //30 day expiration on token for (hopefully) all finobe paths
|
||||
// ...
|
||||
|
||||
//setcookie("token", $sessiontoken, time() + (86400 * 30), "/", false, true); //30 day expiration on token
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ This is used on the client (if the client has the session token set) to request
|
|||
TODO: Clean up
|
||||
*/
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Alphaland\Games\Game;
|
||||
use Alphaland\Grid\RccServiceHelper;
|
||||
use Finobe\Assets\Asset;
|
||||
use Finobe\Games\Game;
|
||||
use Finobe\Grid\RccServiceHelper;
|
||||
|
||||
$requesttype = $_GET['request'];
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ if ($requesttype == "RequestGame") //start new server or join existing one
|
|||
else
|
||||
{
|
||||
$newticket = genToken($sInfo->jobid);
|
||||
echo constructJson($sInfo->jobid."", 2, "https://alphaland.cc/Game/Join?ticket=" .$newticket, "", "", "");
|
||||
echo constructJson($sInfo->jobid."", 2, "https://idk16.xyz/Game/Join?ticket=" .$newticket, "", "", "");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -208,7 +208,7 @@ else if ($requesttype == "RequestFollowUser") //follow user
|
|||
else //job isnt full, join it
|
||||
{
|
||||
$newticket = genToken($playersgamejobid);
|
||||
echo constructJson($playersgamejobid."", 2, "https://alphaland.cc/Game/Join?ticket=" .$newticket, "", "", "");
|
||||
echo constructJson($playersgamejobid."", 2, "https://idk16.xyz/Game/Join?ticket=" .$newticket, "", "", "");
|
||||
}
|
||||
}
|
||||
else //user left game
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Grid\RccServiceHelper;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Grid\RccServiceHelper;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$fmt = $_GET['fmt'];
|
||||
$wd = $_GET['wd'];
|
||||
|
|
@ -40,7 +40,7 @@ $pendingid = $pendingid->fetch(PDO::FETCH_OBJ);
|
|||
$pendinghash = $pendingid->Hash;
|
||||
// ...
|
||||
|
||||
if ($check->rowCount() > 0) //asset exists on Alphaland
|
||||
if ($check->rowCount() > 0) //asset exists on Finobe
|
||||
{
|
||||
$check = $check->fetch(PDO::FETCH_OBJ);
|
||||
|
||||
|
|
@ -49,11 +49,11 @@ if ($check->rowCount() > 0) //asset exists on Alphaland
|
|||
//assuming its none of these asset types, redirect to ROBLOX
|
||||
if ($check->AssetTypeId == 4) //handle mesh asset, return default image for now (TODO: RENDER THESE)
|
||||
{
|
||||
WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash);
|
||||
WebContextManager::Redirect("https://tcdn.idk16.xyz/" . $defaultidhash);
|
||||
}
|
||||
elseif ($check->AssetTypeId == 40) //handle MeshPart asset, return default image for now (TODO: RENDER THESE)
|
||||
{
|
||||
WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash);
|
||||
WebContextManager::Redirect("https://tcdn.idk16.xyz/" . $defaultidhash);
|
||||
}
|
||||
elseif ($check->AssetTypeId == 10) //handle model asset, return default image for now (TODO: RENDER THESE)
|
||||
{
|
||||
|
|
@ -61,13 +61,13 @@ if ($check->rowCount() > 0) //asset exists on Alphaland
|
|||
{
|
||||
$thumbhash = $check->ThumbHash;
|
||||
|
||||
WebContextManager::Redirect("https://trcdn.alphaland.cc/" . $thumbhash);
|
||||
WebContextManager::Redirect("https://trcdn.idk16.xyz/" . $thumbhash);
|
||||
}
|
||||
WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash);
|
||||
WebContextManager::Redirect("https://tcdn.idk16.xyz/" . $defaultidhash);
|
||||
}
|
||||
elseif ($check->AssetTypeId == 39) //handle SolidModel asset, return default image for now (TODO: RENDER THESE)
|
||||
{
|
||||
WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash);
|
||||
WebContextManager::Redirect("https://tcdn.idk16.xyz/" . $defaultidhash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
|
||||
//headers
|
||||
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
|
||||
header("access-control-allow-credentials: true");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff())
|
||||
{
|
||||
|
|
@ -32,7 +32,7 @@ $body = <<<EOT
|
|||
var currentPage = 1;
|
||||
function moderateAsset(id)
|
||||
{
|
||||
getJSONCDS("https://www.alphaland.cc/MCP/moderateasset?id="+id)
|
||||
getJSONCDS("https://www.idk16.xyz/MCP/moderateasset?id="+id)
|
||||
.done(function(object)
|
||||
{
|
||||
var alert = object.alert;
|
||||
|
|
@ -54,7 +54,7 @@ function moderateAsset(id)
|
|||
}
|
||||
function approveAsset(id)
|
||||
{
|
||||
getJSONCDS("https://www.alphaland.cc/MCP/approveasset?id="+id)
|
||||
getJSONCDS("https://www.idk16.xyz/MCP/approveasset?id="+id)
|
||||
.done(function(object)
|
||||
{
|
||||
var alert = object.alert;
|
||||
|
|
@ -96,7 +96,7 @@ function assetPage(num, keyword = "")
|
|||
html +='</ul>';
|
||||
html +='</div>';
|
||||
|
||||
multiPageHelper("assetPage", [], "https://www.alphaland.cc/MCP/pendingassets", "https://api.alphaland.cc/logo", "#assets-container", "#page-buttons", html, num, 10, "", "No pending assets");
|
||||
multiPageHelper("assetPage", [], "https://www.idk16.xyz/MCP/pendingassets", "https://api.idk16.xyz/logo", "#assets-container", "#page-buttons", html, num, 10, "", "No pending assets");
|
||||
}
|
||||
assetPage(currentPage);
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff())
|
||||
{
|
||||
|
|
@ -58,7 +58,7 @@ $body = <<<EOT
|
|||
</div>
|
||||
<script>
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
var usernamequery = "";
|
||||
|
|
@ -97,7 +97,7 @@ function logsPage(num)
|
|||
html+= '</div>';
|
||||
html+= '</div>';
|
||||
|
||||
multiPageHelper("logsPage", [], "https://www.alphaland.cc/MCP/chat-logs/loggedChats", "https://api.alphaland.cc/logo", "#message-container", "#page-buttons", html, num, 40, searchquery, "No Results", "&username="+usernamequery);
|
||||
multiPageHelper("logsPage", [], "https://www.idk16.xyz/MCP/chat-logs/loggedChats", "https://api.idk16.xyz/logo", "#message-container", "#page-buttons", html, num, 40, searchquery, "No Results", "&username="+usernamequery);
|
||||
}
|
||||
|
||||
logsPage(1);
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
//headers
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!($user->IsStaff()))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff())
|
||||
{
|
||||
|
|
@ -44,7 +44,7 @@ function activeKeys()
|
|||
html += '<td>{whenAccepted}</td>';
|
||||
html += '</tr>';
|
||||
|
||||
staticPageHelper("https://www.alphaland.cc/MCP/invite-logs/inviteLogs", "", "#invite_logs", html, "", 999999999999, "", "");
|
||||
staticPageHelper("https://www.idk16.xyz/MCP/invite-logs/inviteLogs", "", "#invite_logs", html, "", 999999999999, "", "");
|
||||
}
|
||||
activeKeys();
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff())
|
||||
{
|
||||
|
|
@ -8,7 +8,7 @@ if(!$user->IsStaff())
|
|||
}
|
||||
|
||||
//headers
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
header("Cache-Control: no-cache");
|
||||
header("Pragma: no-cache");
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
|
||||
//headers
|
||||
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
|
||||
header("access-control-allow-credentials: true");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff())
|
||||
{
|
||||
|
|
@ -12,7 +12,7 @@ if(!$user->IsStaff())
|
|||
}
|
||||
|
||||
//headers
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Closes an active report
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Report Data
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Active Reports
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff()) {
|
||||
WebContextManager::Redirect("/");
|
||||
|
|
@ -42,7 +42,7 @@ function populateReports()
|
|||
</ul>
|
||||
</div>`;
|
||||
|
||||
staticPageHelper("https://www.alphaland.cc/MCP/reports/data/reports", "https://api.alphaland.cc/logo", "#reports-container", html, "", 1000, "", "No active reports");
|
||||
staticPageHelper("https://www.idk16.xyz/MCP/reports/data/reports", "https://api.idk16.xyz/logo", "#reports-container", html, "", 1000, "", "No active reports");
|
||||
}
|
||||
populateReports();
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
Report viewer
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff()) {
|
||||
WebContextManager::Redirect("/");
|
||||
|
|
@ -49,12 +49,12 @@ $body = <<<EOT
|
|||
</div>
|
||||
<script>
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
var getparam = new URLSearchParams(window.location.search).get("id");
|
||||
|
||||
function populateReport() {
|
||||
getJSONCDS("https://www.alphaland.cc/MCP/reports/data/?id="+getparam)
|
||||
getJSONCDS("https://www.idk16.xyz/MCP/reports/data/?id="+getparam)
|
||||
.done(function(jsonData) {
|
||||
$("#reporter-id").html("Reporter UID: "+jsonData.ReporterUid);
|
||||
$("#place-id").html("Place ID: "+jsonData.PlaceId);
|
||||
|
|
@ -84,7 +84,7 @@ function populateReport() {
|
|||
}
|
||||
|
||||
function closeReport() {
|
||||
getJSONCDS("https://www.alphaland.cc/MCP/reports/data/close?id="+getparam)
|
||||
getJSONCDS("https://www.idk16.xyz/MCP/reports/data/close?id="+getparam)
|
||||
.done(function(jsonData) {
|
||||
var alert = jsonData.alert;
|
||||
if(jsonData.alert == "Closed Report") {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff()) {
|
||||
WebContextManager::Redirect("/");
|
||||
|
|
@ -13,7 +13,7 @@ if(!$user->IsStaff()) {
|
|||
|
||||
//headers
|
||||
header('Content-Type: application/json');
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
|
||||
$data = json_decode(file_get_contents('php://input'));
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$body = '';
|
||||
if(!($user->IsStaff())) {
|
||||
|
|
@ -120,7 +120,7 @@ function unbanUser()
|
|||
return;
|
||||
}
|
||||
|
||||
postJSONCDS("https://www.alphaland.cc/MCP/user-management/unban", JSON.stringify({
|
||||
postJSONCDS("https://www.idk16.xyz/MCP/user-management/unban", JSON.stringify({
|
||||
"username":unbanusername
|
||||
}))
|
||||
.done(function(object) {
|
||||
|
|
@ -162,7 +162,7 @@ function banUser()
|
|||
return;
|
||||
}
|
||||
|
||||
postJSONCDS("https://www.alphaland.cc/MCP/user-management/ban", JSON.stringify({
|
||||
postJSONCDS("https://www.idk16.xyz/MCP/user-management/ban", JSON.stringify({
|
||||
"username":banusername,
|
||||
"reason":banreason,
|
||||
"expiration":expiration,
|
||||
|
|
@ -188,7 +188,7 @@ function getBanlist()
|
|||
<td>{banExpiration}</td>
|
||||
</tr>`;
|
||||
|
||||
staticPageHelper("https://www.alphaland.cc/MCP/user-management/banlist", "", "#user_ban_list", html, "", 100, "", "");
|
||||
staticPageHelper("https://www.idk16.xyz/MCP/user-management/banlist", "", "#user_ban_list", html, "", 100, "", "");
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!$user->IsStaff()) {
|
||||
WebContextManager::Redirect("/");
|
||||
|
|
@ -13,7 +13,7 @@ if(!$user->IsStaff()) {
|
|||
|
||||
//headers
|
||||
header('Content-Type: application/json');
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
header("access-control-allow-credentials: true");
|
||||
|
||||
// if it's static you don't need to instantiate the class
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
This is for uploading data from studio, this requires the user to have access to the asset.
|
||||
*/
|
||||
|
||||
use Alphaland\Assets\Render;
|
||||
use Finobe\Assets\Render;
|
||||
|
||||
$id = (int)$_GET['id'];
|
||||
|
||||
$iteminfo = getAssetInfo($id);
|
||||
|
||||
if($iteminfo !== FALSE) //asset id exists in alphaland db
|
||||
if($iteminfo !== FALSE) //asset id exists in finobe db
|
||||
{
|
||||
if ($iteminfo->AssetTypeId == 9) //place
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
The purpose of this is to upload Images from studio
|
||||
*/;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
The purpose of this is to upload Meshes from studio
|
||||
*/;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
The purpose of this is to upload MeshParts from studio
|
||||
*/;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
The purpose of this is to upload SolidModels (Unions) from studio, since studio does not serialize the actual Union
|
||||
*/
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Alphaland\Assets\Render;
|
||||
use Finobe\Assets\Asset;
|
||||
use Finobe\Assets\Render;
|
||||
|
||||
$assetTypeName = $_GET['assetTypeName'];
|
||||
$name = $_GET['name'];
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ $body = <<<EOT
|
|||
<script>
|
||||
function updateGame(id)
|
||||
{
|
||||
if (window.external.SaveUrl('https://www.alphaland.cc/Studio/Data/UploadData?id=' + id + '\''))
|
||||
if (window.external.SaveUrl('https://www.idk16.xyz/Studio/Data/UploadData?id=' + id + '\''))
|
||||
{
|
||||
alert("Uploaded");
|
||||
window.close();
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ foreach($owned as $asset)
|
|||
|
||||
$body = <<<EOT
|
||||
<div class="container mt-2" id="update_model_dialog">
|
||||
<h5>Upload Model to Alphaland:</h5>
|
||||
<h5>Upload Model to Finobe:</h5>
|
||||
<hr>
|
||||
<div class="catalog-container">
|
||||
<ul>
|
||||
|
|
@ -33,7 +33,7 @@ $body = <<<EOT
|
|||
<div class="studio-upload-card text-center" style="cursor: pointer;" onclick="showNewModelDialog()">
|
||||
<a>
|
||||
<div class="studio-upload-card-img">
|
||||
<img class="img-fluid" src="/alphaland/cdn/imgs/addmodelicon.png">
|
||||
<img class="img-fluid" src="/finobe/cdn/imgs/addmodelicon.png">
|
||||
</div>
|
||||
<p class="no-overflow">Create New</p>
|
||||
</a>
|
||||
|
|
@ -98,7 +98,7 @@ function showNewModelDialog()
|
|||
|
||||
function updateAsset(assetid)
|
||||
{
|
||||
window.external.WriteSelection().Upload('https://www.alphaland.cc/Studio/Data/UploadData?id=' + assetid + '\'');
|
||||
window.external.WriteSelection().Upload('https://www.idk16.xyz/Studio/Data/UploadData?id=' + assetid + '\'');
|
||||
alert("Updated Model");
|
||||
window.close();
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ function newAsset()
|
|||
|
||||
if (checkParameters(modelname, modeldescription))
|
||||
{
|
||||
window.external.WriteSelection().Upload("https://www.alphaland.cc/Studio/IDE/Publish/uploadnewasset?assetTypeName=Model&name="+modelname+"&description="+modeldescription+"&isPublic="+ispublic+"&allowComments=false");
|
||||
window.external.WriteSelection().Upload("https://www.idk16.xyz/Studio/IDE/Publish/uploadnewasset?assetTypeName=Model&name="+modelname+"&description="+modeldescription+"&isPublic="+ispublic+"&allowComments=false");
|
||||
alert("Created Model");
|
||||
window.close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ $body = <<<EOT
|
|||
<script>
|
||||
|
||||
/*
|
||||
Alphaland Ghetto Toolbox 2021
|
||||
Finobe Ghetto Toolbox 2021
|
||||
Luckily MOST of jquery works with qt 4
|
||||
|
||||
0 = Current User Models
|
||||
|
|
@ -40,11 +40,11 @@ $body = <<<EOT
|
|||
*/
|
||||
|
||||
var category = "";
|
||||
var api = "https://www.alphaland.cc/studio/ide/toolbox/items";
|
||||
var api = "https://www.idk16.xyz/studio/ide/toolbox/items";
|
||||
|
||||
function insertAsset(assetid)
|
||||
{
|
||||
window.external.Insert("https://www.alphaland.cc/asset/?id="+assetid);
|
||||
window.external.Insert("https://www.idk16.xyz/asset/?id="+assetid);
|
||||
}
|
||||
|
||||
function setType(type)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
//headers
|
||||
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||
|
||||
header("access-control-allow-credentials: true");
|
||||
header('Content-Type: application/json');
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if(!isLoggedIn())
|
||||
{
|
||||
WebContextManager::Redirect("../login?referral=" . "https://www.alphaland.cc/Studio/Places");
|
||||
WebContextManager::Redirect("../login?referral=" . "https://www.idk16.xyz/Studio/Places");
|
||||
}
|
||||
|
||||
$games_html = "";
|
||||
|
|
@ -42,7 +42,7 @@ $body = <<<EOT
|
|||
<script>
|
||||
function openGame(id)
|
||||
{
|
||||
if (!window.external.StartGame("","","game:Load('https://www.alphaland.cc/asset/?id=" + id + "') game:SetPlaceId(" + id + ")"))
|
||||
if (!window.external.StartGame("","","game:Load('https://www.idk16.xyz/asset/?id=" + id + "') game:SetPlaceId(" + id + ")"))
|
||||
{
|
||||
alert("Failed to open place, please report this");
|
||||
window.close();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Users\Activation;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Users\Activation;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (Activation::IsUserActivated($user->id)) {
|
||||
WebContextManager::Redirect("/");
|
||||
|
|
@ -18,7 +18,7 @@ $body = '
|
|||
<div class="card-body">
|
||||
<h4>Activation Required</h4>
|
||||
<hr>
|
||||
<h5>To play Alphaland, you must activate this account in the <a href=https://discord.gg/RDj4aVh8VS>Discord Server</a>.</h5>
|
||||
<h5>To play Finobe, you must activate this account in the <a href=https://discord.gg/RDj4aVh8VS>Discord Server</a>.</h5>
|
||||
<h5>After joining, send the activation code below in the activation channel and refresh this page.</h5>
|
||||
<h5>It is required to be in the Discord Server, after activation leaving the Discord will deactivate your account.</h5>
|
||||
<hr>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
header("Cache-Control: no-cache");
|
||||
header("Pragma: no-cache");
|
||||
|
|
@ -40,7 +40,7 @@ $websettings = $websettings->fetch(PDO::FETCH_OBJ);
|
|||
if ($id)
|
||||
{
|
||||
$iteminfo = getAssetInfo($id);
|
||||
if($iteminfo !== FALSE) //asset id exists in alphaland db
|
||||
if($iteminfo !== FALSE) //asset id exists in finobe db
|
||||
{
|
||||
if (isAssetApproved($id) and !isAssetModerated($id)) //if the asset is approved and not moderated
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
5 = Right Leg
|
||||
*/
|
||||
|
||||
use Alphaland\Users\Render;
|
||||
use Finobe\Users\Render;
|
||||
|
||||
$bcdb = array("0" => "h", "1" => "t", "2" => "la", "3" => "ra", "4" => "ll", "5" => "rl");
|
||||
$cbc = (int)$_POST['bct'];
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ $body = '
|
|||
<div class="col-sm-4">
|
||||
<div class="card mb-2">
|
||||
<div class="card-body text-center">
|
||||
<img id="character" class="card-img-top" src="https://api.alphaland.cc/users/thumbnail">
|
||||
<img id="character" class="card-img-top" src="https://api.idk16.xyz/users/thumbnail">
|
||||
<button onclick="updateCharacter()" class="btn btn-danger" style="float:right;">Refresh</button>
|
||||
<button onclick="getAvatarSettings()" type="button" data-toggle="modal" data-target="#avatarsettingspopup" class="btn btn-danger" style="float:left;">Settings</button>
|
||||
</div>
|
||||
|
|
@ -298,7 +298,7 @@ $body = '
|
|||
|
||||
function updateCharacter() {
|
||||
$("#character").removeClass("loading-rotate");
|
||||
$("#character").attr("src", "https://api.alphaland.cc/users/thumbnail?timestamp="+new Date().getTime());
|
||||
$("#character").attr("src", "https://api.idk16.xyz/users/thumbnail?timestamp="+new Date().getTime());
|
||||
}
|
||||
function handleRender() {
|
||||
$.get("/avatar/renderstatus", function(data) {
|
||||
|
|
@ -314,7 +314,7 @@ $body = '
|
|||
function characterloading()
|
||||
{
|
||||
document.getElementById("character").src = "";
|
||||
document.getElementById("character").src = "https://api.alphaland.cc/logo";
|
||||
document.getElementById("character").src = "https://api.idk16.xyz/logo";
|
||||
document.getElementById("character").className = "loading-rotate card-img-top";
|
||||
//handleRender();
|
||||
}
|
||||
|
|
@ -360,7 +360,7 @@ $body = '
|
|||
}
|
||||
function updateBodyColors()
|
||||
{
|
||||
getJSONCDS("https://api.alphaland.cc/user/avatar/bodycolors")
|
||||
getJSONCDS("https://api.idk16.xyz/user/avatar/bodycolors")
|
||||
.done(function(jsonData)
|
||||
{
|
||||
var data = jsonData;
|
||||
|
|
@ -378,11 +378,11 @@ $body = '
|
|||
|
||||
function equipItem(assetId)
|
||||
{
|
||||
avatarChange("https://api.alphaland.cc/user/avatar/assets/wear?assetId=" + assetId);
|
||||
avatarChange("https://api.idk16.xyz/user/avatar/assets/wear?assetId=" + assetId);
|
||||
}
|
||||
function deequipItem(assetId)
|
||||
{
|
||||
avatarChange("https://api.alphaland.cc/user/avatar/assets/remove?assetId=" + assetId)
|
||||
avatarChange("https://api.idk16.xyz/user/avatar/assets/remove?assetId=" + assetId)
|
||||
}
|
||||
|
||||
function inventoryPage(page, assettype, keyword)
|
||||
|
|
@ -407,7 +407,7 @@ $body = '
|
|||
html += "</a>";
|
||||
html += "</li>";
|
||||
|
||||
multiPageHelper("inventoryPage", [assettype,keyword], "https://api.alphaland.cc/users/profile/inventory", "https://api.alphaland.cc/logo", "#itemsDiv", "#page-buttons", html, page, limit, keyword, "You don\'t own any items of this type", "&assetTypeId="+assettype);
|
||||
multiPageHelper("inventoryPage", [assettype,keyword], "https://api.idk16.xyz/users/profile/inventory", "https://api.idk16.xyz/logo", "#itemsDiv", "#page-buttons", html, page, limit, keyword, "You don\'t own any items of this type", "&assetTypeId="+assettype);
|
||||
}
|
||||
|
||||
$(".headshot_checkbox_check").click(function() {
|
||||
|
|
@ -416,7 +416,7 @@ $body = '
|
|||
|
||||
function getAvatarSettings()
|
||||
{
|
||||
getJSONCDS("https://api.alphaland.cc/user/avatar/settings")
|
||||
getJSONCDS("https://api.idk16.xyz/user/avatar/settings")
|
||||
.done(function(jsonData)
|
||||
{
|
||||
var data = jsonData;
|
||||
|
|
@ -440,7 +440,7 @@ $body = '
|
|||
|
||||
$("#avatar_settings_updating_notify").show();
|
||||
|
||||
getJSONCDS("https://api.alphaland.cc/user/avatar/updatesettings"+headshotStyleGetParam)
|
||||
getJSONCDS("https://api.idk16.xyz/user/avatar/updatesettings"+headshotStyleGetParam)
|
||||
.done(function(jsonData)
|
||||
{
|
||||
$("#avatarsettingspopup").modal("toggle");
|
||||
|
|
@ -462,7 +462,7 @@ $body = '
|
|||
var editingOutfitId = 0;
|
||||
function newOutfit(name)
|
||||
{
|
||||
postJSONCDS("https://api.alphaland.cc/user/avatar/outfits/create", JSON.stringify({"name": name}))
|
||||
postJSONCDS("https://api.idk16.xyz/user/avatar/outfits/create", JSON.stringify({"name": name}))
|
||||
.done(function(object) {
|
||||
var alert = object.alert;
|
||||
var messageid = "#error_alert";
|
||||
|
|
@ -485,7 +485,7 @@ $body = '
|
|||
}
|
||||
function applyOutfit(outfitid)
|
||||
{
|
||||
postJSONCDS("https://api.alphaland.cc/user/avatar/outfits/apply", JSON.stringify({"id": outfitid}))
|
||||
postJSONCDS("https://api.idk16.xyz/user/avatar/outfits/apply", JSON.stringify({"id": outfitid}))
|
||||
.done(function(object) {
|
||||
var alert = object.alert;
|
||||
var messageid = "#error_alert";
|
||||
|
|
@ -509,7 +509,7 @@ $body = '
|
|||
}
|
||||
function updateOutfit(name)
|
||||
{
|
||||
postJSONCDS("https://api.alphaland.cc/user/avatar/outfits/update?update=true", JSON.stringify({"id": editingOutfitId, "name": name}))
|
||||
postJSONCDS("https://api.idk16.xyz/user/avatar/outfits/update?update=true", JSON.stringify({"id": editingOutfitId, "name": name}))
|
||||
.done(function(object) {
|
||||
var alert = object.alert;
|
||||
var messageid = "#error_alert";
|
||||
|
|
@ -532,7 +532,7 @@ $body = '
|
|||
}
|
||||
function deleteOutfit()
|
||||
{
|
||||
postJSONCDS("https://api.alphaland.cc/user/avatar/outfits/update?delete=true", JSON.stringify({"id": editingOutfitId}))
|
||||
postJSONCDS("https://api.idk16.xyz/user/avatar/outfits/update?delete=true", JSON.stringify({"id": editingOutfitId}))
|
||||
.done(function(object) {
|
||||
var alert = object.alert;
|
||||
var messageid = "#error_alert";
|
||||
|
|
@ -578,7 +578,7 @@ $body = '
|
|||
html += "</div>";
|
||||
html += "</li>";
|
||||
|
||||
multiPageHelper("outfitPage", [], "https://api.alphaland.cc/users/profile/outfits", "https://api.alphaland.cc/logo", "#itemsDiv", "#page-buttons", html, page, limit, "", "You don\'t have any outfits", "&assetTypeId=");
|
||||
multiPageHelper("outfitPage", [], "https://api.idk16.xyz/users/profile/outfits", "https://api.idk16.xyz/logo", "#itemsDiv", "#page-buttons", html, page, limit, "", "You don\'t have any outfits", "&assetTypeId=");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -591,7 +591,7 @@ $body = '
|
|||
html += "</a>";
|
||||
html += "</li>";
|
||||
|
||||
staticPageHelper("https://api.alphaland.cc/users/profile/wearing", "https://api.alphaland.cc/logo", "#curWear", html, "", 12, "", "Not wearing any Items");
|
||||
staticPageHelper("https://api.idk16.xyz/users/profile/wearing", "https://api.idk16.xyz/logo", "#curWear", html, "", 12, "", "Not wearing any Items");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Users\Render;
|
||||
use Finobe\Users\Render;
|
||||
|
||||
if (Render::PendingRender($user->id))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$body = "";
|
||||
if(isset($_GET['id']))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
if (UserModerationManager::IsBanned($user->id))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Assets\Render;
|
||||
use Alphaland\Moderation\UserModerationManager;
|
||||
use Alphaland\Users\User;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Assets\Render;
|
||||
use Finobe\Moderation\UserModerationManager;
|
||||
use Finobe\Users\User;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$body = '';
|
||||
$alert = "";
|
||||
|
|
@ -369,7 +369,7 @@ $body = <<<EOT
|
|||
</div>
|
||||
<div class="container input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><img style="width:1rem;" src="/alphaland/cdn/imgs/alphabux-grey-1024.png"></span>
|
||||
<span class="input-group-text"><img style="width:1rem;" src="/finobe/cdn/imgs/alphabux-grey-1024.png"></span>
|
||||
</div>
|
||||
<input type="text" name="item_price" class="form-control" value="{$itemprice}">
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -122,12 +122,12 @@ function getCatalogPage(assettype, page, limit, keyword) {
|
|||
html += '</div>';
|
||||
html += '<p class="no-overflow">{name}</p>';
|
||||
html += '<p>By: {creatorName}</p>';
|
||||
html += '<p><img src="/alphaland/cdn/imgs/alphabux-grey-1024.png"> {price}</p>';
|
||||
html += '<p><img src="/finobe/cdn/imgs/alphabux-grey-1024.png"> {price}</p>';
|
||||
html += '</a>';
|
||||
html += '</div>';
|
||||
html += '</li>';
|
||||
|
||||
multiPageHelper("catalogPage", [assetTypeId,keyword], "https://api.alphaland.cc/catalog/items", "https://api.alphaland.cc/logo", "#catalogitems", "#catalogpages", html, page, limit, keyword, "No results", "&assetTypeId="+assettype);
|
||||
multiPageHelper("catalogPage", [assetTypeId,keyword], "https://api.idk16.xyz/catalog/items", "https://api.idk16.xyz/logo", "#catalogitems", "#catalogpages", html, page, limit, keyword, "No results", "&assetTypeId="+assettype);
|
||||
}
|
||||
|
||||
$('#keyword_input').keypress(function(event) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Alphaland\Economy\EconomyHelper;
|
||||
use Alphaland\Users\User;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Economy\EconomyHelper;
|
||||
use Finobe\Users\User;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$body = "";
|
||||
if(isset($_GET['id']))
|
||||
|
|
@ -107,9 +107,9 @@ if(isset($_GET['id']))
|
|||
else
|
||||
{
|
||||
//aw, its paid
|
||||
$buy_button = '<button type="button" data-toggle="modal" data-target="#buyitem" class="btn btn-danger w-100"><img style="max-width:20px;" src="/alphaland/cdn/imgs/alphabux-white-1024.png"> <b>'.cleanOutput($i->PriceInAlphabux).'</b></button>';
|
||||
$buy_button = '<button type="button" data-toggle="modal" data-target="#buyitem" class="btn btn-danger w-100"><img style="max-width:20px;" src="/finobe/cdn/imgs/alphabux-white-1024.png"> <b>'.cleanOutput($i->PriceInAlphabux).'</b></button>';
|
||||
|
||||
$confirmbuy_button = '<button type="submit" name="buyitem" class="btn btn-danger" style="width:12rem;"><img style="max-width:20px;" src="/alphaland/cdn/imgs/alphabux-white-1024.png"> <b>'.cleanOutput($i->PriceInAlphabux).'</b></button>';
|
||||
$confirmbuy_button = '<button type="submit" name="buyitem" class="btn btn-danger" style="width:12rem;"><img style="max-width:20px;" src="/finobe/cdn/imgs/alphabux-white-1024.png"> <b>'.cleanOutput($i->PriceInAlphabux).'</b></button>';
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Alphaland 2021
|
||||
Finobe 2021
|
||||
*/
|
||||
|
||||
use Alphaland\Assets\Asset;
|
||||
use Alphaland\Economy\EconomyHelper;
|
||||
use Alphaland\Web\WebContextManager;
|
||||
use Finobe\Assets\Asset;
|
||||
use Finobe\Economy\EconomyHelper;
|
||||
use Finobe\Web\WebContextManager;
|
||||
|
||||
$body = '';
|
||||
$alert = '';
|
||||
|
|
@ -424,7 +424,7 @@ if (isset($_POST['SubmitPlace']))
|
|||
<button class="btn btn-danger w-100" type="button" data-toggle="collapse" data-target="#assettemp" aria-expanded="false" aria-controls="assettemp">Shirt/Pants Template</button>
|
||||
</p>
|
||||
<div class="collapse" id="assettemp">
|
||||
<img class="img-fluid" src="/alphaland/cdn/imgs/asset-template.png">
|
||||
<img class="img-fluid" src="/finobe/cdn/imgs/asset-template.png">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
|
@ -433,7 +433,7 @@ if (isset($_POST['SubmitPlace']))
|
|||
<hr>
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><img style="width:1rem;" src="/alphaland/cdn/imgs/alphabux-grey-1024.png"></span>
|
||||
<span class="input-group-text"><img style="width:1rem;" src="/finobe/cdn/imgs/alphabux-grey-1024.png"></span>
|
||||
</div>
|
||||
<input type="text" name="asset_price" class="form-control" placeholder="Price">
|
||||
</div>
|
||||
|
|
@ -499,7 +499,7 @@ if (isset($_POST['SubmitPlace']))
|
|||
<li>
|
||||
<div id="PBSIDSuperflat" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Superflat')">
|
||||
<a class="text-center">
|
||||
<img class="img-fluid" src="/alphaland/cdn/imgs/Previews/Superflat.png">
|
||||
<img class="img-fluid" src="/finobe/cdn/imgs/Previews/Superflat.png">
|
||||
<span><p>Superflat</p></span>
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -507,7 +507,7 @@ if (isset($_POST['SubmitPlace']))
|
|||
<li>
|
||||
<div id="PBSIDRugged" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Rugged')">
|
||||
<a class="text-center">
|
||||
<img class="img-fluid" src="/alphaland/cdn/imgs/Previews/Rugged.png">
|
||||
<img class="img-fluid" src="/finobe/cdn/imgs/Previews/Rugged.png">
|
||||
<span><p>Rugged</p></span>
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -515,7 +515,7 @@ if (isset($_POST['SubmitPlace']))
|
|||
<li>
|
||||
<div id="PBSIDHappyHome" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('HappyHome')">
|
||||
<a class="text-center">
|
||||
<img class="img-fluid" src="/alphaland/cdn/imgs/Previews/Happy Home.png">
|
||||
<img class="img-fluid" src="/finobe/cdn/imgs/Previews/Happy Home.png">
|
||||
<span><p>Happy Home</p></span>
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -523,7 +523,7 @@ if (isset($_POST['SubmitPlace']))
|
|||
<li>
|
||||
<div id="PBSIDBaseplate" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Baseplate')">
|
||||
<a class="text-center">
|
||||
<img class="img-fluid" src="/alphaland/cdn/imgs/Previews/Baseplate.png">
|
||||
<img class="img-fluid" src="/finobe/cdn/imgs/Previews/Baseplate.png">
|
||||
<span><p>Baseplate</p></span>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ $alert = '';
|
|||
<div class="container-fluid">
|
||||
<div class="container">
|
||||
<h3>If you found this page, now you know the upcoming donation rewards</h3>
|
||||
<h4>Help keep Alphaland alive with a donation!</h4>
|
||||
<h4>Help keep Finobe alive with a donation!</h4>
|
||||
<h5>Perks:</h5>
|
||||
<h5>Instant reward of Alphabux, 300</h5>
|
||||
<h5>More Alphabux rewarded daily, increased to 40</h5>
|
||||
|
|
|
|||
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
if (isset($_POST['SubmitClient']))
|
||||
{
|
||||
$loc = $GLOBALS['setupHtmlPath'].$ws->AlphalandVersion."-AlphalandLauncher.exe";
|
||||
$loc = $GLOBALS['setupHtmlPath'].$ws->FinobeVersion."-FinobeLauncher.exe";
|
||||
header("Content-type: application/octet-stream");
|
||||
header("Content-Disposition: attachment; filename=AlphalandLauncher.exe");
|
||||
header("Content-Disposition: attachment; filename=FinobeLauncher.exe");
|
||||
echo file_get_contents($loc);
|
||||
}
|
||||
|
||||
if (isset($_POST['SubmitStudio']))
|
||||
{
|
||||
$loc = $GLOBALS['setupHtmlPath'].$ws->AlphalandStudioVersion."-AlphalandStudioLauncher.exe";
|
||||
$loc = $GLOBALS['setupHtmlPath'].$ws->FinobeStudioVersion."-FinobeStudioLauncher.exe";
|
||||
header("Content-type: application/octet-stream");
|
||||
header("Content-Disposition: attachment; filename=AlphalandStudioLauncher.exe");
|
||||
header("Content-Disposition: attachment; filename=FinobeStudioLauncher.exe");
|
||||
echo file_get_contents($loc);
|
||||
}
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ body, html {
|
|||
}
|
||||
|
||||
body {
|
||||
background-image: url("/alphaland/cdn/imgs/download-bg.png");
|
||||
background-image: url("/finobe/cdn/imgs/download-bg.png");
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
|
|
@ -34,8 +34,8 @@ body {
|
|||
<div class="container">
|
||||
<div class="jumbotron" style="background-color:rgb(200,200,200,0.8);backdrop-filter:blur(10px);">
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Download Alphaland</h1>
|
||||
<img width="400" class="img-fluid" src="https://api.alphaland.cc/logo">
|
||||
<h1 class="display-4">Download Finobe</h1>
|
||||
<img width="400" class="img-fluid" src="https://api.idk16.xyz/logo">
|
||||
<form action="" method="post">
|
||||
<button type="SubmitClient" name="SubmitClient" class="btn btn-lg btn-danger" type="button">Download Client</button>
|
||||
<button type="SubmitStudio" name="SubmitStudio" class="btn btn-lg btn-danger" type="button">Download Studio</button>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 443 KiB After Width: | Height: | Size: 443 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 859 KiB After Width: | Height: | Size: 859 KiB |
|
Before Width: | Height: | Size: 860 KiB After Width: | Height: | Size: 860 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 181 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |