This commit is contained in:
Graphictoria 2022-06-22 20:32:35 -04:00
parent b8142fc96d
commit 6bffdc4bfa
286 changed files with 1016 additions and 1016 deletions

View File

@ -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 //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.messageDelay = messageDelay;
this.newObject = newObject; 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; var self = this;
getJSONCDS(gameInfo) getJSONCDS(gameInfo)
.done(function(jsonData) { .done(function(jsonData) {
@ -250,11 +250,11 @@ class Comments {
html += '</div>'; html += '</div>';
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) { submitComment(comment) {
var self = this; 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) { .done(function(object) {
var alert = object.alert; var alert = object.alert;
var messageid = self.errorid; var messageid = self.errorid;

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
//vars //vars
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$thumbalive = false; $thumbalive = false;
$gamealive = false; $gamealive = false;

View File

@ -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. Everything commited to this project is for personal use.

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
kinda shit but its meant for background render processes so not really a concern kinda shit but its meant for background render processes so not really a concern
*/ */
use Alphaland\Assets\Render as AssetRender; use Finobe\Assets\Render as AssetRender;
use Alphaland\Users\Render as UserRender; use Finobe\Users\Render as UserRender;
$assetid = $argv[1]; $assetid = $argv[1];
$type = $argv[2]; $type = $argv[2];

View File

@ -1,13 +1,13 @@
<?php <?php
namespace Alphaland\Administration { namespace Finobe\Administration {
use Alphaland\Grid\RccServiceHelper; use Finobe\Grid\RccServiceHelper;
use PDO; use PDO;
class Maintenance 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 = $GLOBALS['pdo']->prepare("UPDATE websettingsdeprecated SET maintenance = 1, maintenance_text = :t");
$setmaintenance->bindParam(":t", $text, PDO::PARAM_STR); $setmaintenance->bindParam(":t", $text, PDO::PARAM_STR);

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Alphaland\Administration { namespace Finobe\Administration {
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use PDO; use PDO;
class SignupKey class SignupKey

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Assets { namespace Finobe\Assets {
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use PDO; use PDO;
class Asset class Asset

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Assets { namespace Finobe\Assets {
class AssetType class AssetType
{ {
public function IsPurchasable($id) public function IsPurchasable($id)

View File

@ -1,14 +1,14 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Assets { namespace Finobe\Assets {
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use Alphaland\Grid\RccServiceHelper; use Finobe\Grid\RccServiceHelper;
use Alphaland\UI\ImageHelper; use Finobe\UI\ImageHelper;
use PDO; use PDO;
class Render class Render
@ -16,7 +16,7 @@ namespace Alphaland\Assets {
public static function RenderHat(int $assetid, bool $fork=false) public static function RenderHat(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -28,8 +28,8 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Hat ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Hat ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"750", "750",
"750" "750"
@ -47,7 +47,7 @@ namespace Alphaland\Assets {
public static function RenderTShirt(int $assetid, bool $fork=false) public static function RenderTShirt(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -59,9 +59,9 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render TShirt ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render TShirt ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/asset/?id=38", "https://www.idk16.xyz/asset/?id=38",
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"750", "750",
"750" "750"
@ -79,7 +79,7 @@ namespace Alphaland\Assets {
public static function RenderShirt(int $assetid, bool $fork=false) public static function RenderShirt(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -91,9 +91,9 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Shirt ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Shirt ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/asset/?id=38", "https://www.idk16.xyz/asset/?id=38",
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"750", "750",
"750" "750"
@ -111,7 +111,7 @@ namespace Alphaland\Assets {
public static function RenderPants(int $assetid, bool $fork=false) public static function RenderPants(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -123,9 +123,9 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Pants ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Pants ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/asset/?id=38", "https://www.idk16.xyz/asset/?id=38",
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"750", "750",
"750" "750"
@ -143,7 +143,7 @@ namespace Alphaland\Assets {
public static function RenderFace(int $assetid, bool $fork=false) public static function RenderFace(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -155,8 +155,8 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Face ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Face ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"750", "750",
"750" "750"
@ -174,7 +174,7 @@ namespace Alphaland\Assets {
public static function RenderHead(int $assetid, bool $fork=false) public static function RenderHead(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -186,9 +186,9 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Head ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Head ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/asset/?id=38", "https://www.idk16.xyz/asset/?id=38",
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"750", "750",
"750" "750"
@ -206,7 +206,7 @@ namespace Alphaland\Assets {
public static function RenderGear(int $assetid, bool $fork=false) public static function RenderGear(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -218,11 +218,11 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Gear ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Gear ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"png", "png",
"750", "750",
"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) public static function RenderPackage(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -249,10 +249,10 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Package ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Package ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=27112025;https://www.alphaland.cc/asset/?id=27112039;https://www.alphaland.cc/asset/?id=27112052", "https://www.idk16.xyz/asset/?id=27112025;https://www.idk16.xyz/asset/?id=27112039;https://www.idk16.xyz/asset/?id=27112052",
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"https://www.alphaland.cc/asset/?id=38", "https://www.idk16.xyz/asset/?id=38",
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"768", "768",
"432" "432"
@ -270,7 +270,7 @@ namespace Alphaland\Assets {
public static function RenderModel(int $assetid, bool $fork=false) public static function RenderModel(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -282,8 +282,8 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Model ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Model ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"768", "768",
"432" "432"
@ -301,7 +301,7 @@ namespace Alphaland\Assets {
public static function RenderMesh(int $assetid, bool $fork=false) public static function RenderMesh(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -313,8 +313,8 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Mesh ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Mesh ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"768", "768",
"432" "432"
@ -332,7 +332,7 @@ namespace Alphaland\Assets {
public static function RenderPlace(int $assetid, bool $fork=false) public static function RenderPlace(int $assetid, bool $fork=false)
{ {
if ($fork) { 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); { if ($job !== FALSE); {
pclose($job); pclose($job);
return true; return true;
@ -344,8 +344,8 @@ namespace Alphaland\Assets {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Place ".$assetid, $thumbnailScript, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Place ".$assetid, $thumbnailScript, array(
$assetid, $assetid,
"https://www.alphaland.cc/asset/?id=".$assetid, "https://www.idk16.xyz/asset/?id=".$assetid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"768", "768",
"432" "432"

View File

@ -12,7 +12,7 @@
* *
* Open an issue if you want to see the values returned as their respective types and not as strings. * 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. // Note: This could be shortened slightly.
@ -21,9 +21,9 @@
/* /*
Usage: Usage:
use Alphaland\Client\ClientSettings; use Finobe\Client\ClientSettings;
use Alphaland\Client\ClientSettingsApplications; use Finobe\Client\ClientSettingsApplications;
use Alphaland\Client\ClientSettingsKind; use Finobe\Client\ClientSettingsKind;
require_once './globals/Dependencies/Client/ClientSettings.php'; 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 Error;
use PDO; use PDO;

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Common { namespace Finobe\Common {
class ContentDelivery class ContentDelivery
{ {
public static function ConstructRenderHashUrl(string $hash) public static function ConstructRenderHashUrl(string $hash)

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Common { namespace Finobe\Common {
use PDO; use PDO;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\Common { namespace Finobe\Common {
use PDO; use PDO;
class HashingUtiltity class HashingUtiltity
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\Common { namespace Finobe\Common {
class Signing class Signing
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\Common { namespace Finobe\Common {
class System class System
{ {
public static function IsCommandLine() public static function IsCommandLine()

View File

@ -1,14 +1,14 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Economy { namespace Finobe\Economy {
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use PDO; use PDO;
use Alphaland\Users\User; use Finobe\Users\User;
use Exception; use Exception;
class EconomyHelper class EconomyHelper

View File

@ -1,13 +1,13 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Games { namespace Finobe\Games {
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use Alphaland\Grid\RccServiceHelper; use Finobe\Grid\RccServiceHelper;
use Exception; use Exception;
use PDO; use PDO;

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Games { namespace Finobe\Games {
class Persistence class Persistence
{ {

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Games { namespace Finobe\Games {
use Alphaland\Common\Signing; use Finobe\Common\Signing;
class Ticket class Ticket
{ {

View File

@ -1,13 +1,13 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
This is responsible for communicating to the specified Webservice 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)) 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 https://jira.mfdlabs.local/browse/ALPHA-22
*/ */
namespace Alphaland\Grid { namespace Finobe\Grid {
use stdClass; use stdClass;
use PDO; use PDO;

View File

@ -1,16 +1,16 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Astro: Jesus christ this is big, probably due to a lot of whitespace as well. Perhaps reduce the size? Astro: Jesus christ this is big, probably due to a lot of whitespace as well. Perhaps reduce the size?
Nikita: (YOUR DUMBASS COMMENT HERE) Nikita: (YOUR DUMBASS COMMENT HERE)
*/ */
namespace Alphaland\Groups { namespace Finobe\Groups {
use Alphaland\Economy\EconomyHelper; use Finobe\Economy\EconomyHelper;
use Alphaland\UI\ImageHelper; use Finobe\UI\ImageHelper;
use Alphaland\Users\User; use Finobe\Users\User;
use Exception; use Exception;
use PDO; use PDO;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\Moderation { namespace Finobe\Moderation {
use PDO; use PDO;
class AssetModerationManager class AssetModerationManager

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\Moderation { namespace Finobe\Moderation {
use PDO; use PDO;

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Alphaland\Moderation { namespace Finobe\Moderation {
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
use PDO; use PDO;
class UserModerationManager class UserModerationManager
@ -62,12 +62,12 @@ namespace Alphaland\Moderation {
$ban->bindParam(":wb", $GLOBALS['user']->id, PDO::PARAM_INT); $ban->bindParam(":wb", $GLOBALS['user']->id, PDO::PARAM_INT);
$ban->execute(); $ban->execute();
if ($ban->rowCount() > 0) { 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); UserModerationManager::LogAction("Banned User ".$uid);
//ban user from discord with bot //ban user from discord with bot
if($bantype == 2) { //perm ban 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->bindParam(":id", $uid, PDO::PARAM_INT);
$discordid->execute(); $discordid->execute();
if ($discordid->rowCount() > 0) { if ($discordid->rowCount() > 0) {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\UI { namespace Finobe\UI {
use GdImage; use GdImage;

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Users { namespace Finobe\Users {
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use PDO; use PDO;
class Activation class Activation
@ -17,7 +17,7 @@ namespace Alphaland\Users {
do { do {
$hash = HashingUtiltity::GenerateByteHash(32); $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->bindParam(":ac", $hash, PDO::PARAM_STR);
$keycheck->execute(); $keycheck->execute();
} while($keycheck->fetchColumn(0) != 0); } while($keycheck->fetchColumn(0) != 0);
@ -26,7 +26,7 @@ namespace Alphaland\Users {
public static function GetUserActivationCode(int $userid) 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->bindParam(":uid", $userid, PDO::PARAM_INT);
$query->execute(); $query->execute();
if ($query->rowCount() == 1) { if ($query->rowCount() == 1) {
@ -37,7 +37,7 @@ namespace Alphaland\Users {
public static function IsUserActivated(int $userid) 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->bindParam(":uid", $userid, PDO::PARAM_INT);
$query->execute(); $query->execute();
if ($query->fetchColumn(0) > 0) { if ($query->fetchColumn(0) > 0) {
@ -51,7 +51,7 @@ namespace Alphaland\Users {
if (!Activation::IsUserActivated($userid)) { if (!Activation::IsUserActivated($userid)) {
$activationcode = Activation::GenerateActivationCode(); $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(":ac", $activationcode, PDO::PARAM_STR);
$n->bindParam(":userid", $userid, PDO::PARAM_INT); $n->bindParam(":userid", $userid, PDO::PARAM_INT);
$n->execute(); $n->execute();

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Users { namespace Finobe\Users {
use PDO; use PDO;

View File

@ -1,13 +1,13 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Users { namespace Finobe\Users {
use Alphaland\Users\User; use Finobe\Users\User;
use Alphaland\Users\Render; use Finobe\Users\Render;
use Exception; use Exception;
use PDO; use PDO;

View File

@ -1,14 +1,14 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Users { namespace Finobe\Users {
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use Alphaland\Groups\Group; use Finobe\Groups\Group;
use PDO; use PDO;
class ReferralProgram class ReferralProgram

View File

@ -1,14 +1,14 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Users { namespace Finobe\Users {
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use Alphaland\Grid\RccServiceHelper; use Finobe\Grid\RccServiceHelper;
use Alphaland\UI\ImageHelper; use Finobe\UI\ImageHelper;
use PDO; use PDO;
class Render class Render
@ -81,7 +81,7 @@ namespace Alphaland\Users {
{ {
if ($fork) 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); if ($job !== FALSE);
{ {
pclose($job); pclose($job);
@ -100,8 +100,8 @@ namespace Alphaland\Users {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Player Closeup ".$userid, $script, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Player Closeup ".$userid, $script, array(
$userid, $userid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"https://api.alphaland.cc/users/avatar-accoutrements?userId=".$userid, "https://api.idk16.xyz/users/avatar-accoutrements?userId=".$userid,
"png", "png",
"840", "840",
"840", "840",
@ -128,7 +128,7 @@ namespace Alphaland\Users {
{ {
if ($fork) 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); if ($job !== FALSE);
{ {
pclose($job); pclose($job);
@ -145,8 +145,8 @@ namespace Alphaland\Users {
$soap = $soap->BatchJobEx( $soap = $soap->BatchJobEx(
$soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Player ".$userid, $script, array( $soap->ConstructGenericJob(gen_uuid(), 25, 0, 3, "Render Player ".$userid, $script, array(
$userid, $userid,
"https://api.alphaland.cc/users/avatar-accoutrements?userId=".$userid, "https://api.idk16.xyz/users/avatar-accoutrements?userId=".$userid,
"https://www.alphaland.cc/", "https://www.idk16.xyz/",
"png", "png",
"840", "840",
"840" "840"

View File

@ -1,17 +1,17 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
User session class User session class
*/ */
namespace Alphaland\Users namespace Finobe\Users
{ {
use Alphaland\Common\HashingUtiltity; use Finobe\Common\HashingUtiltity;
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Users\Activation; use Finobe\Users\Activation;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
use PDO; use PDO;
class Session class Session
@ -77,7 +77,7 @@ namespace Alphaland\Users
$session->bindParam(":i", $ip, PDO::PARAM_STR); $session->bindParam(":i", $ip, PDO::PARAM_STR);
$session->bindParam(":ua", $user_agent, PDO::PARAM_STR); $session->bindParam(":ua", $user_agent, PDO::PARAM_STR);
if($session->execute()) { 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); $this->ValidateSession($token);
return true; return true;
} else { } else {
@ -151,7 +151,7 @@ namespace Alphaland\Users
} }
} }
//No valid session //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; return false;
} }

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
namespace Alphaland\Users { namespace Finobe\Users {
use PDO; use PDO;
@ -110,7 +110,7 @@ namespace Alphaland\Users {
$username = getUsername($userid); $username = getUsername($userid);
if ($username) { if ($username) {
$secret = TwoFactor::SafeGenerate2FASecret(); $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 = $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(":uid", $userid, PDO::PARAM_INT);
$new2fa->bindParam(":secret", $secret, PDO::PARAM_STR); $new2fa->bindParam(":secret", $secret, PDO::PARAM_STR);

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Alphaland\Users { namespace Finobe\Users {
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use Exception; use Exception;
use PDO; use PDO;

View File

@ -10,7 +10,7 @@ Example:
<?php <?php
use Alphaland\Web\IpHelper; use Finobe\Web\IpHelper;
require_once './globals/Dependencies/Web/IpRange.php'; 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. * A class to help in the aid of IP address identification.
*/ */

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Alphaland\Web { namespace Finobe\Web {
use PDO; use PDO;

View File

@ -10,7 +10,7 @@
* Ported from MFDLABS/corp-integral/src/lib/web/settings.fx * Ported from MFDLABS/corp-integral/src/lib/web/settings.fx
*/ */
namespace Alphaland\Web { namespace Finobe\Web {
use PDO; use PDO;

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Alphaland 2021 site configuration Finobe 2021 site configuration
This is extremely sensitive. This is extremely sensitive.
TODO: not ideal to hardcode paths like this, clean up TODO: not ideal to hardcode paths like this, clean up
@ -12,12 +12,12 @@
TODO: kill nsg TODO: kill nsg
*/ */
use Alphaland\Users\Activation; use Finobe\Users\Activation;
use Alphaland\Users\TwoFactor; use Finobe\Users\TwoFactor;
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
use Alphaland\Common\System; use Finobe\Common\System;
use Alphaland\Users\Session; use Finobe\Users\Session;
try try
{ {
@ -33,14 +33,14 @@ try
PDO::ATTR_PERSISTENT => true PDO::ATTR_PERSISTENT => true
); );
//host //db name //db user //db password //options //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 //general vars
$jsversion = "12.00"; //update this after updating JS, this will re-cache the latest js for users $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 $cssversion = "12.00"; //update this after updating CSS, this will re-cache the latest css for users
$siteName = "Alphaland"; //site name $siteName = "Finobe"; //site name
$domain = "alphaland.cc"; $domain = "idk16.xyz";
$url = "https://www.".$domain; //site URL $url = "https://www.".$domain; //site URL
$ws = $pdo->query("SELECT * FROM websettings WHERE id = 1")->fetch(PDO::FETCH_OBJ); //websettings $ws = $pdo->query("SELECT * FROM websettings WHERE id = 1")->fetch(PDO::FETCH_OBJ); //websettings
$clientUserAgent = "Roblox/WinInet"; $clientUserAgent = "Roblox/WinInet";
@ -53,41 +53,41 @@ try
$defaultHeadshotHash = "fb5d52c08aa538483647373c5a20fd73"; //default headshot render for characters $defaultHeadshotHash = "fb5d52c08aa538483647373c5a20fd73"; //default headshot render for characters
//cdn urls //cdn urls
$renderCDN = "https://trcdn.alphaland.cc"; //endpoint for renders $renderCDN = "https://trcdn.idk16.xyz"; //endpoint for renders
$assetCDN = "https://acdn.alphaland.cc"; //endpoint for assets $assetCDN = "https://acdn.idk16.xyz"; //endpoint for assets
$thumbnailCDN = "https://tcdn.alphaland.cc"; //endpoint for thumbnails $thumbnailCDN = "https://tcdn.idk16.xyz"; //endpoint for thumbnails
//cdn paths //cdn paths
$renderCDNPath = "C:/Webserver/nginx/Alphaland/html_renders_cdn/"; //path to where renders are stored $renderCDNPath = "D:/Finobe/html_renders_cdn/"; //path to where renders are stored
$thumbnailCDNPath = "C:/Webserver/nginx/Alphaland/html_thumbs_cdn/"; //path to where thumbnails are stored $thumbnailCDNPath = "D:/Finobe/html_thumbs_cdn/"; //path to where thumbnails are stored
$assetCDNPath = "C:/Webserver/nginx/Alphaland/html_assets_cdn/"; //path to where assets are stored $assetCDNPath = "D:/Finobe/html_assets_cdn/"; //path to where assets are stored
//lua script paths //lua script paths
$avatarthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/AvatarScript.lua"; $avatarthumbnailscript = "D:/Finobe/luascripts/thumbnails/AvatarScript.lua";
$facethumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/FaceScript.lua"; $facethumbnailscript = "D:/Finobe/luascripts/thumbnails/FaceScript.lua";
$hatthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/HatScript.lua"; $hatthumbnailscript = "D:/Finobe/luascripts/thumbnails/HatScript.lua";
$tshirtthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/TShirtScript.lua"; $tshirtthumbnailscript = "D:/Finobe/luascripts/thumbnails/TShirtScript.lua";
$shirtthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/ShirtScript.lua"; $shirtthumbnailscript = "D:/Finobe/luascripts/thumbnails/ShirtScript.lua";
$pantsthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/PantsScript.lua"; $pantsthumbnailscript = "D:/Finobe/luascripts/thumbnails/PantsScript.lua";
$headthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/HeadScript.lua"; $headthumbnailscript = "D:/Finobe/luascripts/thumbnails/HeadScript.lua";
$placethumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/PlaceScript.lua"; $placethumbnailscript = "D:/Finobe/luascripts/thumbnails/PlaceScript.lua";
$modelthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/ModelScript.lua"; $modelthumbnailscript = "D:/Finobe/luascripts/thumbnails/ModelScript.lua";
$gearthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/GearScript.lua"; $gearthumbnailscript = "D:/Finobe/luascripts/thumbnails/GearScript.lua";
$avatarcloseupthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/AvatarCloseupScript.lua"; $avatarcloseupthumbnailscript = "D:/Finobe/luascripts/thumbnails/AvatarCloseupScript.lua";
$meshthumbnailscript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/MeshScript.lua"; $meshthumbnailscript = "D:/Finobe/luascripts/thumbnails/MeshScript.lua";
$packagescript = "C:/Webserver/nginx/Alphaland/luascripts/thumbnails/PackageScript.lua"; $packagescript = "D:/Finobe/luascripts/thumbnails/PackageScript.lua";
$gameserverscript = "C:/Webserver/nginx/Alphaland/luascripts/game/gameserver.lua"; $gameserverscript = "D:/Finobe/luascripts/game/gameserver.lua";
//soap paths //soap paths
$RCCwsdl = "C:/Webserver/nginx/Alphaland/RCCService.wsdl"; //wsdl path for SOAP $RCCwsdl = "D:/Finobe/RCCService.wsdl"; //wsdl path for SOAP
//misc paths //misc paths
$pbsOverlayPath = "C:/Webserver/nginx/Alphaland/PersonalServerOverlay.png"; $pbsOverlayPath = "D:/Finobe/PersonalServerOverlay.png";
$setupHtmlPath = "C:/Webserver/nginx/Alphaland/html_setup/"; $setupHtmlPath = "D:/Finobe/html_setup/";
$defaultPlacesPath = "C:/Webserver/nginx/Alphaland/default_places/"; //path to where the default places are stored $defaultPlacesPath = "D:/Finobe/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 $defaultPbsPlacesPath = "D:/Finobe/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 $defaultXmlsPath = "D:/Finobe/default_xmls/"; //path to where the default xmls stored
$privateKeyPath = "C:/Webserver/nginx/Alphaland/AlphalandRawKey.txt"; //path to where the private key is stored $privateKeyPath = "D:/Finobe/FinobeRawKey.txt"; //path to where the private key is stored
//machine ip's //machine ip's
$gameMachine = "167.114.96.92"; //IP address of the machine that runs gameservers $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 $thumbnailArbiter = $renderMachine.":64989"; //IP address/port of the Arbiter running on the render machine
//autoloader include //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) //finobe specfic dependencies (listing manually for now due to active rewrite of stuff)
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Activation.php"; include "D:/Finobe/globals/Dependencies/Users/Activation.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/TwoFactor.php"; include "D:/Finobe/globals/Dependencies/Users/TwoFactor.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/ReferralProgram.php"; include "D:/Finobe/globals/Dependencies/Users/ReferralProgram.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Moderation/UserModerationManager.php"; include "D:/Finobe/globals/Dependencies/Moderation/UserModerationManager.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/HashingUtiltity.php"; include "D:/Finobe/globals/Dependencies/Common/HashingUtiltity.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Web/WebContextManager.php"; include "D:/Finobe/globals/Dependencies/Web/WebContextManager.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/System.php"; include "D:/Finobe/globals/Dependencies/Common/System.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Assets/Asset.php"; include "D:/Finobe/globals/Dependencies/Assets/Asset.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Games/Game.php"; include "D:/Finobe/globals/Dependencies/Games/Game.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Grid/RccServiceHelper.php"; include "D:/Finobe/globals/Dependencies/Grid/RccServiceHelper.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Assets/Render.php"; include "D:/Finobe/globals/Dependencies/Assets/Render.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/UI/ImageHelper.php"; include "D:/Finobe/globals/Dependencies/UI/ImageHelper.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Render.php"; include "D:/Finobe/globals/Dependencies/Users/Render.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/Signing.php"; include "D:/Finobe/globals/Dependencies/Common/Signing.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Common/Email.php"; include "D:/Finobe/globals/Dependencies/Common/Email.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Games/Ticket.php"; include "D:/Finobe/globals/Dependencies/Games/Ticket.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/User.php"; include "D:/Finobe/globals/Dependencies/Users/User.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Session.php"; include "D:/Finobe/globals/Dependencies/Users/Session.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Outfit.php"; include "D:/Finobe/globals/Dependencies/Users/Outfit.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Moderation/Filter.php"; include "D:/Finobe/globals/Dependencies/Moderation/Filter.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Users/Badge.php"; include "D:/Finobe/globals/Dependencies/Users/Badge.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Administration/SignupKey.php"; include "D:/Finobe/globals/Dependencies/Administration/SignupKey.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Economy/EconomyHelper.php"; include "D:/Finobe/globals/Dependencies/Economy/EconomyHelper.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Groups/Group.php"; include "D:/Finobe/globals/Dependencies/Groups/Group.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Web/WebsiteSettings.php"; include "D:/Finobe/globals/Dependencies/Web/WebsiteSettings.php";
include "C:/Webserver/nginx/Alphaland/globals/Dependencies/Web/IpRange.php"; include "D:/Finobe/globals/Dependencies/Web/IpRange.php";
//authenticator //authenticator
$authenticator = new PHPGangsta_GoogleAuthenticator(); $authenticator = new PHPGangsta_GoogleAuthenticator();
@ -138,7 +138,7 @@ try
$mail->SMTPSecure = "tls"; $mail->SMTPSecure = "tls";
$mail->Port = 587; $mail->Port = 587;
$mail->Host = "smtp.gmail.com"; $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"; $mail->Password = "117A7AE7CE40674453E00492CB699F54";
//cloudflare //cloudflare
@ -233,5 +233,5 @@ try
} }
catch (Exception $e) catch (Exception $e)
{ {
die("Alphaland is currently unavailable."); die("Finobe is currently unavailable.");
} }

View File

@ -1,17 +1,17 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
A bunch of global functions used sitewide A bunch of global functions used sitewide
TODO: clean up a lot of legacy code TODO: clean up a lot of legacy code
*/ */
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use Alphaland\Assets\Render; use Finobe\Assets\Render;
use Alphaland\Games\Game; use Finobe\Games\Game;
use Alphaland\Moderation\Filter; use Finobe\Moderation\Filter;
use Alphaland\Users\Render as UsersRender; use Finobe\Users\Render as UsersRender;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
//safe generation utilities //safe generation utilities
@ -526,7 +526,7 @@ function submitRobloxAssetWorker($requestedassetid, $assettypeid, $assetname, $a
$newassetid = uploadXML($xml, $assetname, $assetdescription, $price, $onsale, $assettypeid, 1); $newassetid = uploadXML($xml, $assetname, $assetdescription, $price, $onsale, $assettypeid, 1);
if ($newassetid !== FALSE) { 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; $assettypeid = getAssetInfo($newassetid)->AssetTypeId;
switch ($assettypeid) { switch ($assettypeid) {
@ -606,13 +606,13 @@ function getRobloxProductInfo($assetid)
function ReturnAssetFromHash($hash) //asset CDN function ReturnAssetFromHash($hash) //asset CDN
{ {
//alphaland assets cdn //finobe assets cdn
WebContextManager::Redirect(constructAssetHashUrl($hash)); WebContextManager::Redirect(constructAssetHashUrl($hash));
} }
function ReturnThumbnailFromHash($hash) //thumb CDN (images) function ReturnThumbnailFromHash($hash) //thumb CDN (images)
{ {
//alphaland thumb (images) cdn //finobe thumb (images) cdn
WebContextManager::Redirect(constructThumbnailHashUrl($hash)); WebContextManager::Redirect(constructThumbnailHashUrl($hash));
} }
@ -1097,7 +1097,7 @@ function canJoinUser($uid) //
function sendMail($from, $recipient, $subject, $body, $altbody) 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); if ($job !== FALSE);
{ {
pclose($job); pclose($job);
@ -1153,17 +1153,17 @@ function sendVerificationEmail($from, $recipient) //1 = success, 2 = cooldown, 3
$email_html = ' $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="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;"> <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>
<div style="text-align:center;"> <div style="text-align:center;">
<strong>Click the button below to verify your email!</strong> <strong>Click the button below to verify your email!</strong>
</div> </div>
<div style="text-align:center;margin-top:10px;"> <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>
</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 = $GLOBALS['pdo']->prepare("SELECT * FROM users WHERE id = :u AND verified = 0");
$checkifverified->bindParam(":u", $localuser, PDO::PARAM_INT); $checkifverified->bindParam(":u", $localuser, PDO::PARAM_INT);
@ -1217,7 +1217,7 @@ function changeEmail($newemail) //1 = success, 2 = cooldown, 3 = fail
{ {
$localuser = $GLOBALS['user']->id; $localuser = $GLOBALS['user']->id;
$sendver = sendVerificationEmail("info@alphaland.cc", $newemail); $sendver = sendVerificationEmail("info@idk16.xyz", $newemail);
if ($sendver == 1) //all good 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); $unverify->bindParam(":u", $localuser, PDO::PARAM_INT);
if ($unverify->execute()) if ($unverify->execute())
{ {
$sendver2 = sendVerificationEmail("info@alphaland.cc", $newemail); $sendver2 = sendVerificationEmail("info@idk16.xyz", $newemail);
if ($sendver2 == 1) //all good if ($sendver2 == 1) //all good
{ {
@ -1318,17 +1318,17 @@ function sendPasswordReset($from, $recipient, $recipientuid) //1 = success, 2 =
$email_html = ' $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="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;"> <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>
<div style="text-align:center;"> <div style="text-align:center;">
<strong>Click the button below to reset your password!</strong> <strong>Click the button below to reset your password!</strong>
</div> </div>
<div style="text-align:center;margin-top:10px;"> <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>
</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 = $GLOBALS['pdo']->prepare("SELECT * FROM password_reset_keys WHERE uid = :u AND valid = 1");
$check->bindParam(":u", $recipientuid, PDO::PARAM_INT); $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(); $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 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 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(); $currenttheme = getCurrentTheme();
if ($currenttheme == 0) //light theme dark logo 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 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(); $currenttheme = getCurrentTheme();
if ($currenttheme == 0) //light theme dark logo 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 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 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 ' 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.idk16.xyz/finobe/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/bootstrap.min.css?version='.$GLOBALS['cssversion'].'">
'.$theme.' '.$theme.'
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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"/> <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://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://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 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.idk16.xyz/finobe/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/utilities.js?version='.$GLOBALS['jsversion'].'"></script>';
} }
//end theme stuff //end theme stuff
@ -2667,7 +2667,7 @@ function getFooter()
<div class="container p-3"> <div class="container p-3">
<div class="row"> <div class="row">
<div class="col-sm"> <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> </div>
<div class="row"> <div class="row">
@ -2677,13 +2677,13 @@ function getFooter()
</div> </div>
<div class="row border-bottom pb-1"> <div class="row border-bottom pb-1">
<div class="col-sm"> <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> </div>
<div class="row"> <div class="row">
<div class="col-sm"> <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: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> </div>
</div> </div>
@ -2789,7 +2789,7 @@ function getNav()
'.$modbutton.' '.$modbutton.'
'.(($user->IsAdmin())? ' '.(($user->IsAdmin())? '
<li class="nav-item"> <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>':'').' </li>':'').'
</ul> </ul>
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
@ -2801,7 +2801,7 @@ function getNav()
</a> </a>
</li> </li>
<li class="nav-item"> <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>
<li class="nav-item dropdown"> <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> <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.' '.$gameserverstatus.'
</header> </header>
<script> <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> </script>
<br/>'; <br/>';
} }
@ -2828,7 +2828,7 @@ function getNav()
<header> <header>
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="padding-right:10%;padding-left:10%;"> <nav class="navbar navbar-expand-lg navbar-light bg-light" style="padding-right:10%;padding-left:10%;">
<a class="navbar-brand" href="/"> <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> </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <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> <span class="navbar-toggler-icon"></span>

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Easy utility for pages Easy utility for pages
*/ */
class page_handler { class page_handler {
public $siteName = "Alphaland"; public $siteName = "Finobe";
public $sheader; public $sheader;
public $pagetitle; public $pagetitle;
public $navbar; public $navbar;
@ -26,7 +26,7 @@ class page_handler {
<title>%s</title> <title>%s</title>
%s %s
</head> </head>
<body id="alphaland-main-body"> <body id="finobe-main-body">
%s %s
%s %s
%s %s

View File

@ -1,7 +1,7 @@
<?php <?php
use Alphaland\Users\TwoFactor; use Finobe\Users\TwoFactor;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (TwoFactor::IsSession2FAUnlocked()){ if (TwoFactor::IsSession2FAUnlocked()){
WebContextManager::Redirect("/"); WebContextManager::Redirect("/");

View File

@ -5,7 +5,7 @@ $body = <<<EOT
<div class="container"> <div class="container">
<div class="card"> <div class="card">
<div class="card-body text-center"> <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> <h2 class="mt-3">404 | Page not found</h2>
<hr> <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> <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>

View File

@ -2,8 +2,8 @@
//stuff for staff will be handled here //stuff for staff will be handled here
use Alphaland\Common\Signing; use Finobe\Common\Signing;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader()) if (!WebContextManager::VerifyAccessKeyHeader())
{ {

View File

@ -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 //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 Finobe\Economy\EconomyHelper;
use Alphaland\Games\Game; use Finobe\Games\Game;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader()) if (!WebContextManager::VerifyAccessKeyHeader())
{ {

View File

@ -1,13 +1,13 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Very messy but will clean up Very messy but will clean up
*/ */
use Alphaland\Common\Signing; use Finobe\Common\Signing;
use Alphaland\Games\Game; use Finobe\Games\Game;
use Alphaland\Games\Ticket; use Finobe\Games\Ticket;
header("Content-Type: text/plain"); header("Content-Type: text/plain");
@ -26,7 +26,7 @@ if ($local)
"CreatorTypeEnum" => "User", "CreatorTypeEnum" => "User",
"ChatStyle" => "ClassicAndBubble", "ChatStyle" => "ClassicAndBubble",
"PlaceId" => 186, "PlaceId" => 186,
"CharacterAppearance" => "https://api.alphaland.cc/users/avatar-accoutrements?userId=2", "CharacterAppearance" => "https://api.idk16.xyz/users/avatar-accoutrements?userId=2",
//"IsRobloxPlace" => true, //"IsRobloxPlace" => true,
"ClientTicket" => "111", "ClientTicket" => "111",
"BaseUrl" => $url . "/", "BaseUrl" => $url . "/",
@ -59,7 +59,7 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res
$placeid = $gameInfo->id; $placeid = $gameInfo->id;
$userid = $sInfo->uid; $userid = $sInfo->uid;
$username = getUsername($userid); $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); $accountage = round((time()-userInfo($userid)->joindate)/86400);
$joinparams = json_encode(array( $joinparams = json_encode(array(

View File

@ -1,5 +1,5 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader()) if (!WebContextManager::VerifyAccessKeyHeader())
{ {

View File

@ -31,13 +31,13 @@ if ($currenttoken->rowCount() > 0)
if(($whenGenerated + (300)) > time()) //under the 3 minute interval if(($whenGenerated + (300)) > time()) //under the 3 minute interval
{ {
//remove previous cookies //remove previous cookies
setcookie("token", null, time(), "/", "alphaland.cc"); //delete non www. cookie setcookie("token", null, time(), "/", "idk16.xyz"); //delete non www. cookie
setcookie("token", null, time(), "/", "www.alphaland.cc"); //delete www. cookie setcookie("token", null, time(), "/", "www.idk16.xyz"); //delete www. cookie
setcookie("token", null, time(), "/", ".alphaland.cc"); //delete (all token?) cookies setcookie("token", null, time(), "/", ".idk16.xyz"); //delete (all token?) cookies
// ... // ...
//set new cookie from auth ticket //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 //setcookie("token", $sessiontoken, time() + (86400 * 30), "/", false, true); //30 day expiration on token

View File

@ -5,9 +5,9 @@ This is used on the client (if the client has the session token set) to request
TODO: Clean up TODO: Clean up
*/ */
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use Alphaland\Games\Game; use Finobe\Games\Game;
use Alphaland\Grid\RccServiceHelper; use Finobe\Grid\RccServiceHelper;
$requesttype = $_GET['request']; $requesttype = $_GET['request'];
@ -145,7 +145,7 @@ if ($requesttype == "RequestGame") //start new server or join existing one
else else
{ {
$newticket = genToken($sInfo->jobid); $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 else
@ -208,7 +208,7 @@ else if ($requesttype == "RequestFollowUser") //follow user
else //job isnt full, join it else //job isnt full, join it
{ {
$newticket = genToken($playersgamejobid); $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 else //user left game

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader()) if (!WebContextManager::VerifyAccessKeyHeader())
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
use Alphaland\Grid\RccServiceHelper; use Finobe\Grid\RccServiceHelper;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader()) if (!WebContextManager::VerifyAccessKeyHeader())
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$fmt = $_GET['fmt']; $fmt = $_GET['fmt'];
$wd = $_GET['wd']; $wd = $_GET['wd'];
@ -40,7 +40,7 @@ $pendingid = $pendingid->fetch(PDO::FETCH_OBJ);
$pendinghash = $pendingid->Hash; $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); $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 //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) 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) 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) 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; $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) 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);
} }
} }
} }

View File

@ -1,16 +1,16 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
//headers //headers
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
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("access-control-allow-credentials: true");

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) if(!$user->IsStaff())
{ {
@ -32,7 +32,7 @@ $body = <<<EOT
var currentPage = 1; var currentPage = 1;
function moderateAsset(id) function moderateAsset(id)
{ {
getJSONCDS("https://www.alphaland.cc/MCP/moderateasset?id="+id) getJSONCDS("https://www.idk16.xyz/MCP/moderateasset?id="+id)
.done(function(object) .done(function(object)
{ {
var alert = object.alert; var alert = object.alert;
@ -54,7 +54,7 @@ function moderateAsset(id)
} }
function approveAsset(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) .done(function(object)
{ {
var alert = object.alert; var alert = object.alert;
@ -96,7 +96,7 @@ function assetPage(num, keyword = "")
html +='</ul>'; html +='</ul>';
html +='</div>'; 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); assetPage(currentPage);
</script> </script>

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) if(!$user->IsStaff())
{ {
@ -58,7 +58,7 @@ $body = <<<EOT
</div> </div>
<script> <script>
/* /*
Alphaland 2021 Finobe 2021
*/ */
var usernamequery = ""; var usernamequery = "";
@ -97,7 +97,7 @@ function logsPage(num)
html+= '</div>'; html+= '</div>';
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); logsPage(1);

View File

@ -1,14 +1,14 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
//headers //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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!($user->IsStaff())) if(!($user->IsStaff()))
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) if(!$user->IsStaff())
{ {
@ -44,7 +44,7 @@ function activeKeys()
html += '<td>{whenAccepted}</td>'; html += '<td>{whenAccepted}</td>';
html += '</tr>'; 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(); activeKeys();
</script> </script>

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) if(!$user->IsStaff())
{ {
@ -8,7 +8,7 @@ if(!$user->IsStaff())
} }
//headers //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("access-control-allow-credentials: true");
header("Cache-Control: no-cache"); header("Cache-Control: no-cache");
header("Pragma: no-cache"); header("Pragma: no-cache");

View File

@ -1,16 +1,16 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
//headers //headers
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
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("access-control-allow-credentials: true");

View File

@ -1,10 +1,10 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) if(!$user->IsStaff())
{ {
@ -12,7 +12,7 @@ if(!$user->IsStaff())
} }
//headers //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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,13 +1,13 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Closes an active report 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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,13 +1,13 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Report Data 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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,12 +1,12 @@
<?php <?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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,11 +1,11 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Active Reports Active Reports
*/ */
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) { if(!$user->IsStaff()) {
WebContextManager::Redirect("/"); WebContextManager::Redirect("/");
@ -42,7 +42,7 @@ function populateReports()
</ul> </ul>
</div>`; </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(); populateReports();
</script> </script>

View File

@ -1,11 +1,11 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
Report viewer Report viewer
*/ */
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) { if(!$user->IsStaff()) {
WebContextManager::Redirect("/"); WebContextManager::Redirect("/");
@ -49,12 +49,12 @@ $body = <<<EOT
</div> </div>
<script> <script>
/* /*
Alphaland 2021 Finobe 2021
*/ */
var getparam = new URLSearchParams(window.location.search).get("id"); var getparam = new URLSearchParams(window.location.search).get("id");
function populateReport() { 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) { .done(function(jsonData) {
$("#reporter-id").html("Reporter UID: "+jsonData.ReporterUid); $("#reporter-id").html("Reporter UID: "+jsonData.ReporterUid);
$("#place-id").html("Place ID: "+jsonData.PlaceId); $("#place-id").html("Place ID: "+jsonData.PlaceId);
@ -84,7 +84,7 @@ function populateReport() {
} }
function closeReport() { 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) { .done(function(jsonData) {
var alert = jsonData.alert; var alert = jsonData.alert;
if(jsonData.alert == "Closed Report") { if(jsonData.alert == "Closed Report") {

View File

@ -1,11 +1,11 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) { if(!$user->IsStaff()) {
WebContextManager::Redirect("/"); WebContextManager::Redirect("/");
@ -13,7 +13,7 @@ if(!$user->IsStaff()) {
//headers //headers
header('Content-Type: application/json'); 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"); header("access-control-allow-credentials: true");
$data = json_decode(file_get_contents('php://input')); $data = json_decode(file_get_contents('php://input'));

View File

@ -1,12 +1,12 @@
<?php <?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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$body = ''; $body = '';
if(!($user->IsStaff())) { if(!($user->IsStaff())) {
@ -120,7 +120,7 @@ function unbanUser()
return; 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 "username":unbanusername
})) }))
.done(function(object) { .done(function(object) {
@ -162,7 +162,7 @@ function banUser()
return; 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, "username":banusername,
"reason":banreason, "reason":banreason,
"expiration":expiration, "expiration":expiration,
@ -188,7 +188,7 @@ function getBanlist()
<td>{banExpiration}</td> <td>{banExpiration}</td>
</tr>`; </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> </script>

View File

@ -1,11 +1,11 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!$user->IsStaff()) { if(!$user->IsStaff()) {
WebContextManager::Redirect("/"); WebContextManager::Redirect("/");
@ -13,7 +13,7 @@ if(!$user->IsStaff()) {
//headers //headers
header('Content-Type: application/json'); 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"); header("access-control-allow-credentials: true");
// if it's static you don't need to instantiate the class // if it's static you don't need to instantiate the class

View File

@ -1,17 +1,17 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
This is for uploading data from studio, this requires the user to have access to the asset. 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']; $id = (int)$_GET['id'];
$iteminfo = getAssetInfo($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 if ($iteminfo->AssetTypeId == 9) //place
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
The purpose of this is to upload Images from studio The purpose of this is to upload Images from studio
*/; */;

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
The purpose of this is to upload Meshes from studio The purpose of this is to upload Meshes from studio
*/; */;

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
The purpose of this is to upload MeshParts from studio The purpose of this is to upload MeshParts from studio
*/; */;

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
The purpose of this is to upload SolidModels (Unions) from studio, since studio does not serialize the actual Union The purpose of this is to upload SolidModels (Unions) from studio, since studio does not serialize the actual Union
*/ */
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use Alphaland\Assets\Render; use Finobe\Assets\Render;
$assetTypeName = $_GET['assetTypeName']; $assetTypeName = $_GET['assetTypeName'];
$name = $_GET['name']; $name = $_GET['name'];

View File

@ -34,7 +34,7 @@ $body = <<<EOT
<script> <script>
function updateGame(id) 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"); alert("Uploaded");
window.close(); window.close();

View File

@ -25,7 +25,7 @@ foreach($owned as $asset)
$body = <<<EOT $body = <<<EOT
<div class="container mt-2" id="update_model_dialog"> <div class="container mt-2" id="update_model_dialog">
<h5>Upload Model to Alphaland:</h5> <h5>Upload Model to Finobe:</h5>
<hr> <hr>
<div class="catalog-container"> <div class="catalog-container">
<ul> <ul>
@ -33,7 +33,7 @@ $body = <<<EOT
<div class="studio-upload-card text-center" style="cursor: pointer;" onclick="showNewModelDialog()"> <div class="studio-upload-card text-center" style="cursor: pointer;" onclick="showNewModelDialog()">
<a> <a>
<div class="studio-upload-card-img"> <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> </div>
<p class="no-overflow">Create New</p> <p class="no-overflow">Create New</p>
</a> </a>
@ -98,7 +98,7 @@ function showNewModelDialog()
function updateAsset(assetid) 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"); alert("Updated Model");
window.close(); window.close();
} }
@ -115,7 +115,7 @@ function newAsset()
if (checkParameters(modelname, modeldescription)) 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"); alert("Created Model");
window.close(); window.close();
} }

View File

@ -32,7 +32,7 @@ $body = <<<EOT
<script> <script>
/* /*
Alphaland Ghetto Toolbox 2021 Finobe Ghetto Toolbox 2021
Luckily MOST of jquery works with qt 4 Luckily MOST of jquery works with qt 4
0 = Current User Models 0 = Current User Models
@ -40,11 +40,11 @@ $body = <<<EOT
*/ */
var category = ""; 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) 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) function setType(type)

View File

@ -1,11 +1,11 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
//headers //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("access-control-allow-credentials: true");
header('Content-Type: application/json'); header('Content-Type: application/json');

View File

@ -1,10 +1,10 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if(!isLoggedIn()) if(!isLoggedIn())
{ {
WebContextManager::Redirect("../login?referral=" . "https://www.alphaland.cc/Studio/Places"); WebContextManager::Redirect("../login?referral=" . "https://www.idk16.xyz/Studio/Places");
} }
$games_html = ""; $games_html = "";
@ -42,7 +42,7 @@ $body = <<<EOT
<script> <script>
function openGame(id) 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"); alert("Failed to open place, please report this");
window.close(); window.close();

View File

@ -1,7 +1,7 @@
<?php <?php
use Alphaland\Users\Activation; use Finobe\Users\Activation;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (Activation::IsUserActivated($user->id)) { if (Activation::IsUserActivated($user->id)) {
WebContextManager::Redirect("/"); WebContextManager::Redirect("/");
@ -18,7 +18,7 @@ $body = '
<div class="card-body"> <div class="card-body">
<h4>Activation Required</h4> <h4>Activation Required</h4>
<hr> <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>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> <h5>It is required to be in the Discord Server, after activation leaving the Discord will deactivate your account.</h5>
<hr> <hr>

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
header("Cache-Control: no-cache"); header("Cache-Control: no-cache");
header("Pragma: no-cache"); header("Pragma: no-cache");
@ -40,7 +40,7 @@ $websettings = $websettings->fetch(PDO::FETCH_OBJ);
if ($id) if ($id)
{ {
$iteminfo = getAssetInfo($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 if (isAssetApproved($id) and !isAssetModerated($id)) //if the asset is approved and not moderated
{ {

View File

@ -9,7 +9,7 @@
5 = Right Leg 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"); $bcdb = array("0" => "h", "1" => "t", "2" => "la", "3" => "ra", "4" => "ll", "5" => "rl");
$cbc = (int)$_POST['bct']; $cbc = (int)$_POST['bct'];

View File

@ -24,7 +24,7 @@ $body = '
<div class="col-sm-4"> <div class="col-sm-4">
<div class="card mb-2"> <div class="card mb-2">
<div class="card-body text-center"> <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="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> <button onclick="getAvatarSettings()" type="button" data-toggle="modal" data-target="#avatarsettingspopup" class="btn btn-danger" style="float:left;">Settings</button>
</div> </div>
@ -298,7 +298,7 @@ $body = '
function updateCharacter() { function updateCharacter() {
$("#character").removeClass("loading-rotate"); $("#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() { function handleRender() {
$.get("/avatar/renderstatus", function(data) { $.get("/avatar/renderstatus", function(data) {
@ -314,7 +314,7 @@ $body = '
function characterloading() function characterloading()
{ {
document.getElementById("character").src = ""; 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"; document.getElementById("character").className = "loading-rotate card-img-top";
//handleRender(); //handleRender();
} }
@ -360,7 +360,7 @@ $body = '
} }
function updateBodyColors() function updateBodyColors()
{ {
getJSONCDS("https://api.alphaland.cc/user/avatar/bodycolors") getJSONCDS("https://api.idk16.xyz/user/avatar/bodycolors")
.done(function(jsonData) .done(function(jsonData)
{ {
var data = jsonData; var data = jsonData;
@ -378,11 +378,11 @@ $body = '
function equipItem(assetId) 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) 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) function inventoryPage(page, assettype, keyword)
@ -407,7 +407,7 @@ $body = '
html += "</a>"; html += "</a>";
html += "</li>"; 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() { $(".headshot_checkbox_check").click(function() {
@ -416,7 +416,7 @@ $body = '
function getAvatarSettings() function getAvatarSettings()
{ {
getJSONCDS("https://api.alphaland.cc/user/avatar/settings") getJSONCDS("https://api.idk16.xyz/user/avatar/settings")
.done(function(jsonData) .done(function(jsonData)
{ {
var data = jsonData; var data = jsonData;
@ -440,7 +440,7 @@ $body = '
$("#avatar_settings_updating_notify").show(); $("#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) .done(function(jsonData)
{ {
$("#avatarsettingspopup").modal("toggle"); $("#avatarsettingspopup").modal("toggle");
@ -462,7 +462,7 @@ $body = '
var editingOutfitId = 0; var editingOutfitId = 0;
function newOutfit(name) 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) { .done(function(object) {
var alert = object.alert; var alert = object.alert;
var messageid = "#error_alert"; var messageid = "#error_alert";
@ -485,7 +485,7 @@ $body = '
} }
function applyOutfit(outfitid) 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) { .done(function(object) {
var alert = object.alert; var alert = object.alert;
var messageid = "#error_alert"; var messageid = "#error_alert";
@ -509,7 +509,7 @@ $body = '
} }
function updateOutfit(name) 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) { .done(function(object) {
var alert = object.alert; var alert = object.alert;
var messageid = "#error_alert"; var messageid = "#error_alert";
@ -532,7 +532,7 @@ $body = '
} }
function deleteOutfit() 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) { .done(function(object) {
var alert = object.alert; var alert = object.alert;
var messageid = "#error_alert"; var messageid = "#error_alert";
@ -578,7 +578,7 @@ $body = '
html += "</div>"; html += "</div>";
html += "</li>"; 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 += "</a>";
html += "</li>"; 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");
} }

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Users\Render; use Finobe\Users\Render;
if (Render::PendingRender($user->id)) if (Render::PendingRender($user->id))
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$body = ""; $body = "";
if(isset($_GET['id'])) if(isset($_GET['id']))

View File

@ -1,7 +1,7 @@
<?php <?php
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
if (UserModerationManager::IsBanned($user->id)) if (UserModerationManager::IsBanned($user->id))
{ {

View File

@ -1,9 +1,9 @@
<?php <?php
use Alphaland\Assets\Render; use Finobe\Assets\Render;
use Alphaland\Moderation\UserModerationManager; use Finobe\Moderation\UserModerationManager;
use Alphaland\Users\User; use Finobe\Users\User;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$body = ''; $body = '';
$alert = ""; $alert = "";
@ -369,7 +369,7 @@ $body = <<<EOT
</div> </div>
<div class="container input-group mb-3"> <div class="container input-group mb-3">
<div class="input-group-prepend"> <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> </div>
<input type="text" name="item_price" class="form-control" value="{$itemprice}"> <input type="text" name="item_price" class="form-control" value="{$itemprice}">
</div> </div>

View File

@ -122,12 +122,12 @@ function getCatalogPage(assettype, page, limit, keyword) {
html += '</div>'; html += '</div>';
html += '<p class="no-overflow">{name}</p>'; html += '<p class="no-overflow">{name}</p>';
html += '<p>By: {creatorName}</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 += '</a>';
html += '</div>'; html += '</div>';
html += '</li>'; 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) { $('#keyword_input').keypress(function(event) {

View File

@ -1,8 +1,8 @@
<?php <?php
use Alphaland\Economy\EconomyHelper; use Finobe\Economy\EconomyHelper;
use Alphaland\Users\User; use Finobe\Users\User;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$body = ""; $body = "";
if(isset($_GET['id'])) if(isset($_GET['id']))
@ -107,9 +107,9 @@ if(isset($_GET['id']))
else else
{ {
//aw, its paid //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>';
// ... // ...
} }
} }

View File

@ -1,12 +1,12 @@
<?php <?php
/* /*
Alphaland 2021 Finobe 2021
*/ */
use Alphaland\Assets\Asset; use Finobe\Assets\Asset;
use Alphaland\Economy\EconomyHelper; use Finobe\Economy\EconomyHelper;
use Alphaland\Web\WebContextManager; use Finobe\Web\WebContextManager;
$body = ''; $body = '';
$alert = ''; $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> <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> </p>
<div class="collapse" id="assettemp"> <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>
</div> </div>
<hr> <hr>
@ -433,7 +433,7 @@ if (isset($_POST['SubmitPlace']))
<hr> <hr>
<div class="input-group mb-3"> <div class="input-group mb-3">
<div class="input-group-prepend"> <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> </div>
<input type="text" name="asset_price" class="form-control" placeholder="Price"> <input type="text" name="asset_price" class="form-control" placeholder="Price">
</div> </div>
@ -499,7 +499,7 @@ if (isset($_POST['SubmitPlace']))
<li> <li>
<div id="PBSIDSuperflat" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Superflat')"> <div id="PBSIDSuperflat" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Superflat')">
<a class="text-center"> <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> <span><p>Superflat</p></span>
</a> </a>
</div> </div>
@ -507,7 +507,7 @@ if (isset($_POST['SubmitPlace']))
<li> <li>
<div id="PBSIDRugged" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Rugged')"> <div id="PBSIDRugged" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Rugged')">
<a class="text-center"> <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> <span><p>Rugged</p></span>
</a> </a>
</div> </div>
@ -515,7 +515,7 @@ if (isset($_POST['SubmitPlace']))
<li> <li>
<div id="PBSIDHappyHome" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('HappyHome')"> <div id="PBSIDHappyHome" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('HappyHome')">
<a class="text-center"> <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> <span><p>Happy Home</p></span>
</a> </a>
</div> </div>
@ -523,7 +523,7 @@ if (isset($_POST['SubmitPlace']))
<li> <li>
<div id="PBSIDBaseplate" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Baseplate')"> <div id="PBSIDBaseplate" class="pbstempcard" style="cursor: pointer;" onclick="setPBSType('Baseplate')">
<a class="text-center"> <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> <span><p>Baseplate</p></span>
</a> </a>
</div> </div>

View File

@ -6,7 +6,7 @@ $alert = '';
<div class="container-fluid"> <div class="container-fluid">
<div class="container"> <div class="container">
<h3>If you found this page, now you know the upcoming donation rewards</h3> <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>Perks:</h5>
<h5>Instant reward of Alphabux, 300</h5> <h5>Instant reward of Alphabux, 300</h5>
<h5>More Alphabux rewarded daily, increased to 40</h5> <h5>More Alphabux rewarded daily, increased to 40</h5>

View File

@ -2,17 +2,17 @@
if (isset($_POST['SubmitClient'])) 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-type: application/octet-stream");
header("Content-Disposition: attachment; filename=AlphalandLauncher.exe"); header("Content-Disposition: attachment; filename=FinobeLauncher.exe");
echo file_get_contents($loc); echo file_get_contents($loc);
} }
if (isset($_POST['SubmitStudio'])) 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-type: application/octet-stream");
header("Content-Disposition: attachment; filename=AlphalandStudioLauncher.exe"); header("Content-Disposition: attachment; filename=FinobeStudioLauncher.exe");
echo file_get_contents($loc); echo file_get_contents($loc);
} }
@ -24,7 +24,7 @@ body, html {
} }
body { body {
background-image: url("/alphaland/cdn/imgs/download-bg.png"); background-image: url("/finobe/cdn/imgs/download-bg.png");
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-attachment: fixed; background-attachment: fixed;
@ -34,8 +34,8 @@ body {
<div class="container"> <div class="container">
<div class="jumbotron" style="background-color:rgb(200,200,200,0.8);backdrop-filter:blur(10px);"> <div class="jumbotron" style="background-color:rgb(200,200,200,0.8);backdrop-filter:blur(10px);">
<div class="text-center"> <div class="text-center">
<h1 class="display-4">Download Alphaland</h1> <h1 class="display-4">Download Finobe</h1>
<img width="400" class="img-fluid" src="https://api.alphaland.cc/logo"> <img width="400" class="img-fluid" src="https://api.idk16.xyz/logo">
<form action="" method="post"> <form action="" method="post">
<button type="SubmitClient" name="SubmitClient" class="btn btn-lg btn-danger" type="button">Download Client</button> <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> <button type="SubmitStudio" name="SubmitStudio" class="btn btn-lg btn-danger" type="button">Download Studio</button>

View File

Before

Width:  |  Height:  |  Size: 443 KiB

After

Width:  |  Height:  |  Size: 443 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

Before

Width:  |  Height:  |  Size: 859 KiB

After

Width:  |  Height:  |  Size: 859 KiB

View File

Before

Width:  |  Height:  |  Size: 860 KiB

After

Width:  |  Height:  |  Size: 860 KiB

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 181 KiB

View File

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

Some files were not shown because too many files have changed in this diff Show More