Rename Finobe to Fobe
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Finobe JS Utilities 2021
|
Fobe 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
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//vars
|
//vars
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
$thumbalive = false;
|
$thumbalive = false;
|
||||||
$gamealive = false;
|
$gamealive = false;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Finobe Website
|
# Fobe Website
|
||||||
|
|
||||||
Official repo for everything related to the Finobe website.
|
Official repo for everything related to the Fobe website.
|
||||||
|
|
||||||
Everything commited to this project is for personal use.
|
Everything commited to this project is for personal use.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 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 Finobe\Assets\Render as AssetRender;
|
use Fobe\Assets\Render as AssetRender;
|
||||||
use Finobe\Users\Render as UserRender;
|
use Fobe\Users\Render as UserRender;
|
||||||
|
|
||||||
$assetid = $argv[1];
|
$assetid = $argv[1];
|
||||||
$type = $argv[2];
|
$type = $argv[2];
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Administration {
|
namespace Fobe\Administration {
|
||||||
|
|
||||||
use Finobe\Grid\RccServiceHelper;
|
use Fobe\Grid\RccServiceHelper;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Maintenance
|
class Maintenance
|
||||||
{
|
{
|
||||||
public static function Enable($text = "Finobe is currently under maintenance, check back later.")
|
public static function Enable($text = "Fobe 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);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Administration {
|
namespace Fobe\Administration {
|
||||||
|
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class SignupKey
|
class SignupKey
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Assets {
|
namespace Fobe\Assets {
|
||||||
|
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Asset
|
class Asset
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Assets {
|
namespace Fobe\Assets {
|
||||||
class AssetType
|
class AssetType
|
||||||
{
|
{
|
||||||
public function IsPurchasable($id)
|
public function IsPurchasable($id)
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Assets {
|
namespace Fobe\Assets {
|
||||||
|
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use Finobe\Grid\RccServiceHelper;
|
use Fobe\Grid\RccServiceHelper;
|
||||||
use Finobe\UI\ImageHelper;
|
use Fobe\UI\ImageHelper;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Render
|
class Render
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* This class is used to fetch the client settings and client application buckets.
|
|
||||||
* It is also used to write the clietn settings and client application buckets.
|
|
||||||
*
|
|
||||||
* Written by: Nikita Petko, Jakob Valara (Spfffffx)
|
|
||||||
* Date: 10/12/2021
|
|
||||||
*
|
|
||||||
* The reason this returns the values as strings is because the client can parse them to their respective types. They can also be converted to their respective types.
|
|
||||||
* For now they are all 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 Finobe, they are the owners of the code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Note: This could be shortened slightly.
|
// Note: This could be shortened slightly.
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
use Finobe\Client\ClientSettings;
|
use Fobe\Client\ClientSettings;
|
||||||
use Finobe\Client\ClientSettingsApplications;
|
use Fobe\Client\ClientSettingsApplications;
|
||||||
use Finobe\Client\ClientSettingsKind;
|
use Fobe\Client\ClientSettingsKind;
|
||||||
|
|
||||||
require_once './globals/Dependencies/Client/ClientSettings.php';
|
require_once './globals/Dependencies/Client/ClientSettings.php';
|
||||||
|
|
||||||
|
|
@ -59,7 +43,7 @@ echo "Get Application Bucket Test's settings, has dependencies '" . implode(', '
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Client {
|
namespace Fobe\Client {
|
||||||
|
|
||||||
use Error;
|
use Error;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Common {
|
namespace Fobe\Common {
|
||||||
class ContentDelivery
|
class ContentDelivery
|
||||||
{
|
{
|
||||||
public static function ConstructRenderHashUrl(string $hash)
|
public static function ConstructRenderHashUrl(string $hash)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Common {
|
namespace Fobe\Common {
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Common {
|
namespace Fobe\Common {
|
||||||
use PDO;
|
use PDO;
|
||||||
class HashingUtiltity
|
class HashingUtiltity
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Common {
|
namespace Fobe\Common {
|
||||||
|
|
||||||
class Signing
|
class Signing
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Common {
|
namespace Fobe\Common {
|
||||||
class System
|
class System
|
||||||
{
|
{
|
||||||
public static function IsCommandLine()
|
public static function IsCommandLine()
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Economy {
|
namespace Fobe\Economy {
|
||||||
|
|
||||||
use Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use PDO;
|
use PDO;
|
||||||
use Finobe\Users\User;
|
use Fobe\Users\User;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
class EconomyHelper
|
class EconomyHelper
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Games {
|
namespace Fobe\Games {
|
||||||
|
|
||||||
use Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use Finobe\Grid\RccServiceHelper;
|
use Fobe\Grid\RccServiceHelper;
|
||||||
use Exception;
|
use Exception;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Games {
|
namespace Fobe\Games {
|
||||||
class Persistence
|
class Persistence
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Games {
|
namespace Fobe\Games {
|
||||||
|
|
||||||
use Finobe\Common\Signing;
|
use Fobe\Common\Signing;
|
||||||
|
|
||||||
class Ticket
|
class Ticket
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 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 Finobe\Grid {
|
namespace Fobe\Grid {
|
||||||
|
|
||||||
use stdClass;
|
use stdClass;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 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 Finobe\Groups {
|
namespace Fobe\Groups {
|
||||||
|
|
||||||
use Finobe\Economy\EconomyHelper;
|
use Fobe\Economy\EconomyHelper;
|
||||||
use Finobe\UI\ImageHelper;
|
use Fobe\UI\ImageHelper;
|
||||||
use Finobe\Users\User;
|
use Fobe\Users\User;
|
||||||
use Exception;
|
use Exception;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Moderation {
|
namespace Fobe\Moderation {
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class AssetModerationManager
|
class AssetModerationManager
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Moderation {
|
namespace Fobe\Moderation {
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Moderation {
|
namespace Fobe\Moderation {
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class UserModerationManager
|
class UserModerationManager
|
||||||
|
|
@ -62,7 +62,7 @@ namespace Finobe\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 Finobe, '".$reason."'");
|
kickUserIfInGame($uid, "You've been banned from Fobe, '".$reason."'");
|
||||||
UserModerationManager::LogAction("Banned User ".$uid);
|
UserModerationManager::LogAction("Banned User ".$uid);
|
||||||
|
|
||||||
//ban user from discord with bot
|
//ban user from discord with bot
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\UI {
|
namespace Fobe\UI {
|
||||||
|
|
||||||
use GdImage;
|
use GdImage;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Activation
|
class Activation
|
||||||
|
|
@ -37,13 +37,14 @@ namespace Finobe\Users {
|
||||||
|
|
||||||
public static function IsUserActivated(int $userid)
|
public static function IsUserActivated(int $userid)
|
||||||
{
|
{
|
||||||
$query = $GLOBALS['pdo']->prepare("SELECT COUNT(*) FROM `finobe_verification` WHERE `isactivated` = 1 AND `uid` = :uid");
|
return true;
|
||||||
$query->bindParam(":uid", $userid, PDO::PARAM_INT);
|
//$query = $GLOBALS['pdo']->prepare("SELECT COUNT(*) FROM `finobe_verification` WHERE `isactivated` = 1 AND `uid` = :uid");
|
||||||
$query->execute();
|
//$query->bindParam(":uid", $userid, PDO::PARAM_INT);
|
||||||
if ($query->fetchColumn(0) > 0) {
|
//$query->execute();
|
||||||
return true;
|
//if ($query->fetchColumn(0) > 0) {
|
||||||
}
|
// return true;
|
||||||
return false;
|
//}
|
||||||
|
//return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function SetupUserActivation(int $userid) //this should be ran when the user first signs up
|
public static function SetupUserActivation(int $userid) //this should be ran when the user first signs up
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use Finobe\Users\User;
|
use Fobe\Users\User;
|
||||||
use Finobe\Users\Render;
|
use Fobe\Users\Render;
|
||||||
use Exception;
|
use Exception;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use Finobe\Groups\Group;
|
use Fobe\Groups\Group;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class ReferralProgram
|
class ReferralProgram
|
||||||
{
|
{
|
||||||
public static function IsMember(int $userid)
|
public static function IsMember(int $userid)
|
||||||
{
|
{
|
||||||
return true;
|
return false;
|
||||||
//if (Group::IsInGroup($userid, 22)) //id 22 is the official referral program group
|
//if (Group::IsInGroup($userid, 22)) //id 22 is the official referral program group
|
||||||
//{
|
//{
|
||||||
// return true;
|
// return true;
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use Finobe\Grid\RccServiceHelper;
|
use Fobe\Grid\RccServiceHelper;
|
||||||
use Finobe\UI\ImageHelper;
|
use Fobe\UI\ImageHelper;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Render
|
class Render
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
User session class
|
User session class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users
|
namespace Fobe\Users
|
||||||
{
|
{
|
||||||
|
|
||||||
use Finobe\Common\HashingUtiltity;
|
use Fobe\Common\HashingUtiltity;
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Users\Activation;
|
use Fobe\Users\Activation;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Session
|
class Session
|
||||||
|
|
@ -77,7 +77,7 @@ namespace Finobe\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), "/", ".idk16.xyz"); //30 day expiration on token for (hopefully) all finobe paths
|
setcookie("token", $token, time() + (86400 * 30), "/", ".idk16.xyz"); //30 day expiration on token for (hopefully) all fobe paths
|
||||||
$this->ValidateSession($token);
|
$this->ValidateSession($token);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
@ -110,7 +110,7 @@ namespace Finobe\Users {
|
||||||
$username = getUsername($userid);
|
$username = getUsername($userid);
|
||||||
if ($username) {
|
if ($username) {
|
||||||
$secret = TwoFactor::SafeGenerate2FASecret();
|
$secret = TwoFactor::SafeGenerate2FASecret();
|
||||||
$qrcode = $GLOBALS['authenticator']->getQRCodeGoogleUrl($username, $secret, "Finobe");
|
$qrcode = $GLOBALS['authenticator']->getQRCodeGoogleUrl($username, $secret, "Fobe");
|
||||||
$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);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Users {
|
namespace Fobe\Users {
|
||||||
|
|
||||||
use Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use Exception;
|
use Exception;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ Example:
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\IpHelper;
|
use Fobe\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 Finobe\Web {
|
namespace Fobe\Web {
|
||||||
/**
|
/**
|
||||||
* A class to help in the aid of IP address identification.
|
* A class to help in the aid of IP address identification.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Finobe\Web {
|
namespace Fobe\Web {
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 Finobe\Web {
|
namespace Fobe\Web {
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021 site configuration
|
Fobe 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 Finobe\Users\Activation;
|
use Fobe\Users\Activation;
|
||||||
use Finobe\Users\TwoFactor;
|
use Fobe\Users\TwoFactor;
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
use Finobe\Common\System;
|
use Fobe\Common\System;
|
||||||
use Finobe\Users\Session;
|
use Fobe\Users\Session;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -27,11 +27,12 @@ try
|
||||||
|
|
||||||
//PDO
|
//PDO
|
||||||
$pdoOptions = array(
|
$pdoOptions = array(
|
||||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, //bad for prod?
|
//PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, //bad for prod?
|
||||||
//PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING,
|
PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING,
|
||||||
PDO::ATTR_EMULATE_PREPARES => false,
|
PDO::ATTR_EMULATE_PREPARES => false,
|
||||||
//PDO::ATTR_PERSISTENT => true
|
PDO::ATTR_PERSISTENT => false
|
||||||
);
|
);
|
||||||
|
// attr_persistent was set to true, fuck you astro
|
||||||
//host //db name //db user //db password //options
|
//host //db name //db user //db password //options
|
||||||
$pdo = new PDO("mysql:host=localhost;dbname=finobe", "service-finobe", "135zZsjV3_K2j-VC", $pdoOptions);
|
$pdo = new PDO("mysql:host=localhost;dbname=finobe", "service-finobe", "135zZsjV3_K2j-VC", $pdoOptions);
|
||||||
|
|
||||||
|
|
@ -39,7 +40,7 @@ try
|
||||||
$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 = "Finobe"; //site name
|
$siteName = "Fobe"; //site name
|
||||||
$domain = "idk16.xyz";
|
$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
|
||||||
|
|
@ -48,6 +49,9 @@ try
|
||||||
$ROBLOXProductInfoAPI = "https://api.roblox.com/marketplace/productinfo?assetId=";
|
$ROBLOXProductInfoAPI = "https://api.roblox.com/marketplace/productinfo?assetId=";
|
||||||
$ROBLOXAssetThumbnailAPI = "https://thumbnails.roblox.com/v1/assets?assetIds=";
|
$ROBLOXAssetThumbnailAPI = "https://thumbnails.roblox.com/v1/assets?assetIds=";
|
||||||
|
|
||||||
|
$recaptchaSecretKey = '6LfGhE8jAAAAAGYp7AYCnwJSNzJRPRT45YXNHI_s';
|
||||||
|
$recaptchaSiteKey = '6LfGhE8jAAAAAI3Xa7K1jyFlPvfVklWZAN4l06-j';
|
||||||
|
|
||||||
//default character hashes
|
//default character hashes
|
||||||
$defaultOutfitHash = "95432e22e7ebc8868415fd186096917f"; //default render hash for characters
|
$defaultOutfitHash = "95432e22e7ebc8868415fd186096917f"; //default render hash for characters
|
||||||
$defaultHeadshotHash = "80a426e19403b3fefaa7fcf5efde22c0"; //default headshot render for characters
|
$defaultHeadshotHash = "80a426e19403b3fefaa7fcf5efde22c0"; //default headshot render for characters
|
||||||
|
|
@ -87,20 +91,20 @@ try
|
||||||
$defaultPlacesPath = "C:/Alphaland/default_places/"; //path to where the default places are stored
|
$defaultPlacesPath = "C:/Alphaland/default_places/"; //path to where the default places are stored
|
||||||
$defaultPbsPlacesPath = "C:/Alphaland/default_pbs_places/"; //path to where the default pbs places are stored
|
$defaultPbsPlacesPath = "C:/Alphaland/default_pbs_places/"; //path to where the default pbs places are stored
|
||||||
$defaultXmlsPath = "C:/Alphaland/default_xmls/"; //path to where the default xmls stored
|
$defaultXmlsPath = "C:/Alphaland/default_xmls/"; //path to where the default xmls stored
|
||||||
$privateKeyPath = "C:/Alphaland/FinobeRawKey.txt"; //path to where the private key is stored
|
$privateKeyPath = "C:/Alphaland/FobeRawKey.txt"; //path to where the private key is stored
|
||||||
|
|
||||||
//machine ip's
|
//machine ip's
|
||||||
$gameMachine = "76.189.132.114"; //IP address of the machine that runs gameservers
|
$gameMachine = "76.189.132.114"; //IP address of the machine that runs gameservers
|
||||||
$renderMachine = "192.168.1.117"; //IP address of the machine that renders thumbnails
|
$renderMachine = "192.168.1.117"; //IP address of the machine that renders thumbnails
|
||||||
|
|
||||||
//arbiter ip's
|
//arbiter ip's
|
||||||
$gamesArbiter = "192.168.1.118:64989"; //IP address/port of the Arbiter running on the gameserver machine
|
$gamesArbiter = "192.168.1.121:64989"; //IP address/port of the Arbiter running on the gameserver machine
|
||||||
$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:/vendor/autoload.php';
|
require 'C:/vendor/autoload.php';
|
||||||
|
|
||||||
//finobe specfic dependencies (listing manually for now due to active rewrite of stuff)
|
//fobe specfic dependencies (listing manually for now due to active rewrite of stuff)
|
||||||
include "C:/Alphaland/globals/Dependencies/Users/Activation.php";
|
include "C:/Alphaland/globals/Dependencies/Users/Activation.php";
|
||||||
include "C:/Alphaland/globals/Dependencies/Users/TwoFactor.php";
|
include "C:/Alphaland/globals/Dependencies/Users/TwoFactor.php";
|
||||||
include "C:/Alphaland/globals/Dependencies/Users/ReferralProgram.php";
|
include "C:/Alphaland/globals/Dependencies/Users/ReferralProgram.php";
|
||||||
|
|
@ -233,5 +237,5 @@ try
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
die("Finobe is currently unavailable.");
|
die("Fobe is currently unavailable.");
|
||||||
}
|
}
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 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 Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use Finobe\Assets\Render;
|
use Fobe\Assets\Render;
|
||||||
use Finobe\Games\Game;
|
use Fobe\Games\Game;
|
||||||
use Finobe\Moderation\Filter;
|
use Fobe\Moderation\Filter;
|
||||||
use Finobe\Users\Render as UsersRender;
|
use Fobe\Users\Render as UsersRender;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
//safe generation utilities
|
//safe generation utilities
|
||||||
|
|
||||||
|
|
@ -606,13 +606,13 @@ function getRobloxProductInfo($assetid)
|
||||||
|
|
||||||
function ReturnAssetFromHash($hash) //asset CDN
|
function ReturnAssetFromHash($hash) //asset CDN
|
||||||
{
|
{
|
||||||
//finobe assets cdn
|
//fobe assets cdn
|
||||||
WebContextManager::Redirect(constructAssetHashUrl($hash));
|
WebContextManager::Redirect(constructAssetHashUrl($hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
function ReturnThumbnailFromHash($hash) //thumb CDN (images)
|
function ReturnThumbnailFromHash($hash) //thumb CDN (images)
|
||||||
{
|
{
|
||||||
//finobe thumb (images) cdn
|
//fobe thumb (images) cdn
|
||||||
WebContextManager::Redirect(constructThumbnailHashUrl($hash));
|
WebContextManager::Redirect(constructThumbnailHashUrl($hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -738,6 +738,12 @@ function moderateAsset($id) //currently supports t-shirts, shirts and pants
|
||||||
setAssetModerated($id);
|
setAssetModerated($id);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
elseif ($assetinfo->AssetTypeId == 3) //audio
|
||||||
|
{
|
||||||
|
unlink($assetscdn . $assetinfo->Hash);
|
||||||
|
setAssetModerated($id);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$validXML = true;
|
$validXML = true;
|
||||||
|
|
@ -1153,7 +1159,7 @@ 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://idk16.xyz/finobe/cdn/imgs/finobe-1024.png" style="width:18rem;">
|
<img src="https://idk16.xyz/fobe/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>
|
||||||
|
|
@ -1318,7 +1324,7 @@ 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://idk16.xyz/finobe/cdn/imgs/finobe-1024.png" style="width:18rem;">
|
<img src="https://idk16.xyz/fobe/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>
|
||||||
|
|
@ -2606,40 +2612,40 @@ function getCurrentTheme() //returns the theme set (integer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentThemeLogo() //grabs the finobe logo for the users selected theme
|
function getCurrentThemeLogo() //grabs the fobe logo for the users selected theme
|
||||||
{
|
{
|
||||||
$currenttheme = getCurrentTheme();
|
$currenttheme = getCurrentTheme();
|
||||||
|
|
||||||
//return $GLOBALS['url'] . "/finobe/cdn/imgs/alpha-christmas/finobechristmas.png"; //force christmas logo
|
//return $GLOBALS['url'] . "/fobe/cdn/imgs/alpha-christmas/finobechristmas.png"; //force christmas logo
|
||||||
|
|
||||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/finobe-50x50.png";
|
return $GLOBALS['url'] . "/fobe/cdn/imgs/finobe-50x50.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentThemeAlphabuxLogo() //grabs the finobe alphabux logo for the users selected theme
|
function getCurrentThemeAlphabuxLogo() //grabs the fobe 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'] . "/finobe/cdn/imgs/alphabux-black-1024.png";
|
return $GLOBALS['url'] . "/fobe/cdn/imgs/alphabux-black-1024.png";
|
||||||
}
|
}
|
||||||
elseif ($currenttheme == 1) //dark theme light logo
|
elseif ($currenttheme == 1) //dark theme light logo
|
||||||
{
|
{
|
||||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/alphabux-grey-1024.png";
|
return $GLOBALS['url'] . "/fobe/cdn/imgs/alphabux-grey-1024.png";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentThemeAnimatedLogo() //grabs the finobe animated logo for the users selected theme
|
function getCurrentThemeAnimatedLogo() //grabs the fobe 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'] . "/finobe/cdn/imgs/loading-dark.gif";
|
return $GLOBALS['url'] . "/fobe/cdn/imgs/loading-dark.gif";
|
||||||
}
|
}
|
||||||
elseif ($currenttheme == 1) //dark theme light logo
|
elseif ($currenttheme == 1) //dark theme light logo
|
||||||
{
|
{
|
||||||
return $GLOBALS['url'] . "/finobe/cdn/imgs/loading-light.gif";
|
return $GLOBALS['url'] . "/fobe/cdn/imgs/loading-light.gif";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2655,7 +2661,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.idk16.xyz/finobe/css/stylesheet-dark.css?version='.$GLOBALS['cssversion'].'">';
|
return '<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/fobe/css/stylesheet-dark.css?version='.$GLOBALS['cssversion'].'">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2669,16 +2675,16 @@ function getCSS($studio=false)
|
||||||
}
|
}
|
||||||
|
|
||||||
return '
|
return '
|
||||||
<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/finobe/css/stylesheet.css?version='.$GLOBALS['cssversion'].'">
|
<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/fobe/css/stylesheet.css?version='.$GLOBALS['cssversion'].'">
|
||||||
<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/finobe/css/bootstrap.min.css?version='.$GLOBALS['cssversion'].'">
|
<link rel="stylesheet" type="text/css" href="https://www.idk16.xyz/fobe/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.idk16.xyz/finobe/js/bootstrap.min.js?version='.$GLOBALS['jsversion'].'"></script>
|
<script type="text/javascript" src="https://www.idk16.xyz/fobe/js/bootstrap.min.js?version='.$GLOBALS['jsversion'].'"></script>
|
||||||
<script type="text/javascript" src="https://www.idk16.xyz/finobe/js/utilities.js?version='.$GLOBALS['jsversion'].'"></script>';
|
<script type="text/javascript" src="https://www.idk16.xyz/fobe/js/utilities.js?version='.$GLOBALS['jsversion'].'"></script>';
|
||||||
|
|
||||||
}
|
}
|
||||||
//end theme stuff
|
//end theme stuff
|
||||||
|
|
@ -2698,7 +2704,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>Finobe</strong> | <a style="color:grey;">'.$year.'</a>
|
<strong>Fobe</strong> | <a style="color:grey;">'.$year.'</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -2708,7 +2714,7 @@ 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>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>
|
<a>Fobe 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">
|
||||||
|
|
@ -2831,7 +2837,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="/finobe/cdn/imgs/alphabux-grey-1024.png"> '.$user->currency.'</a>
|
<a class="nav-link mr-3" href=""><img style="width:1rem;" src="/fobe/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>
|
||||||
|
|
@ -2858,7 +2864,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="/finobe/cdn/imgs/finobe-50x50.png" width="40" height="40" class="d-inline-block align-top" alt="" loading="lazy">
|
<img src="/fobe/cdn/imgs/finobe-50x50.png" 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>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
Easy utility for pages
|
Easy utility for pages
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class page_handler {
|
class page_handler {
|
||||||
public $siteName = "Finobe";
|
public $siteName = "Fobe";
|
||||||
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="finobe-main-body">
|
<body id="fobe-main-body">
|
||||||
%s
|
%s
|
||||||
%s
|
%s
|
||||||
%s
|
%s
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Users\TwoFactor;
|
use Fobe\Users\TwoFactor;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (TwoFactor::IsSession2FAUnlocked()){
|
if (TwoFactor::IsSession2FAUnlocked()){
|
||||||
WebContextManager::Redirect("/");
|
WebContextManager::Redirect("/");
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
//stuff for staff will be handled here
|
//stuff for staff will be handled here
|
||||||
|
|
||||||
use Finobe\Common\Signing;
|
use Fobe\Common\Signing;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
//the design choice here was to tie in clientpresence with recently played and visits and make it fully server-sided besides the client pings
|
//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 Finobe\Economy\EconomyHelper;
|
use Fobe\Economy\EconomyHelper;
|
||||||
use Finobe\Games\Game;
|
use Fobe\Games\Game;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||||
{
|
{
|
||||||
|
|
@ -144,7 +144,8 @@ else if ($action == "connect")
|
||||||
$setgamevisit->bindParam(":g", $placeid, PDO::PARAM_INT);
|
$setgamevisit->bindParam(":g", $placeid, PDO::PARAM_INT);
|
||||||
$setgamevisit->execute();
|
$setgamevisit->execute();
|
||||||
|
|
||||||
EconomyHelper::GiveAlphabux(1, $creatorid, "Place visit reward, placeid ".$placeid);
|
// XlXi: Removed to prevent farming.
|
||||||
|
//EconomyHelper::GiveAlphabux(1, $creatorid, "Place visit reward, placeid ".$placeid);
|
||||||
}
|
}
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
Very messy but will clean up
|
Very messy but will clean up
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Common\Signing;
|
use Fobe\Common\Signing;
|
||||||
use Finobe\Games\Game;
|
use Fobe\Games\Game;
|
||||||
use Finobe\Games\Ticket;
|
use Fobe\Games\Ticket;
|
||||||
|
|
||||||
header("Content-Type: text/plain");
|
header("Content-Type: text/plain");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ if ($currenttoken->rowCount() > 0)
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
//set new cookie from auth ticket
|
//set new cookie from auth ticket
|
||||||
setcookie("token", $sessiontoken, time() + (86400 * 30), "/", ".idk16.xyz"); //30 day expiration on token for (hopefully) all finobe paths
|
setcookie("token", $sessiontoken, time() + (86400 * 30), "/", ".idk16.xyz"); //30 day expiration on token for (hopefully) all fobe 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
|
||||||
|
|
|
||||||
|
|
@ -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 Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use Finobe\Games\Game;
|
use Fobe\Games\Game;
|
||||||
use Finobe\Grid\RccServiceHelper;
|
use Fobe\Grid\RccServiceHelper;
|
||||||
|
|
||||||
$requesttype = $_GET['request'];
|
$requesttype = $_GET['request'];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Grid\RccServiceHelper;
|
use Fobe\Grid\RccServiceHelper;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\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 Finobe
|
if ($check->rowCount() > 0) //asset exists on Fobe
|
||||||
{
|
{
|
||||||
$check = $check->fetch(PDO::FETCH_OBJ);
|
$check = $check->fetch(PDO::FETCH_OBJ);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//headers
|
//headers
|
||||||
|
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff())
|
if(!$user->IsStaff())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff())
|
if(!$user->IsStaff())
|
||||||
{
|
{
|
||||||
|
|
@ -58,7 +58,7 @@ $body = <<<EOT
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var usernamequery = "";
|
var usernamequery = "";
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//headers
|
//headers
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
header("access-control-allow-credentials: true");
|
header("access-control-allow-credentials: true");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!($user->IsStaff()))
|
if(!($user->IsStaff()))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff())
|
if(!$user->IsStaff())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff())
|
if(!$user->IsStaff())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//headers
|
//headers
|
||||||
|
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff())
|
if(!$user->IsStaff())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
Closes an active report
|
Closes an active report
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
header("access-control-allow-credentials: true");
|
header("access-control-allow-credentials: true");
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
Report Data
|
Report Data
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
header("access-control-allow-credentials: true");
|
header("access-control-allow-credentials: true");
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
header("access-control-allow-credentials: true");
|
header("access-control-allow-credentials: true");
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
Active Reports
|
Active Reports
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff()) {
|
if(!$user->IsStaff()) {
|
||||||
WebContextManager::Redirect("/");
|
WebContextManager::Redirect("/");
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
Report viewer
|
Report viewer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff()) {
|
if(!$user->IsStaff()) {
|
||||||
WebContextManager::Redirect("/");
|
WebContextManager::Redirect("/");
|
||||||
|
|
@ -49,7 +49,7 @@ $body = <<<EOT
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
var getparam = new URLSearchParams(window.location.search).get("id");
|
var getparam = new URLSearchParams(window.location.search).get("id");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff()) {
|
if(!$user->IsStaff()) {
|
||||||
WebContextManager::Redirect("/");
|
WebContextManager::Redirect("/");
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
header("Access-Control-Allow-Origin: https://www.idk16.xyz");
|
||||||
header("access-control-allow-credentials: true");
|
header("access-control-allow-credentials: true");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
$body = '';
|
$body = '';
|
||||||
if(!($user->IsStaff())) {
|
if(!($user->IsStaff())) {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!$user->IsStaff()) {
|
if(!$user->IsStaff()) {
|
||||||
WebContextManager::Redirect("/");
|
WebContextManager::Redirect("/");
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 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 Finobe\Assets\Render;
|
use Fobe\Assets\Render;
|
||||||
|
|
||||||
$id = (int)$_GET['id'];
|
$id = (int)$_GET['id'];
|
||||||
|
|
||||||
$iteminfo = getAssetInfo($id);
|
$iteminfo = getAssetInfo($id);
|
||||||
|
|
||||||
if($iteminfo !== FALSE) //asset id exists in finobe db
|
if($iteminfo !== FALSE) //asset id exists in Fobe db
|
||||||
{
|
{
|
||||||
if ($iteminfo->AssetTypeId == 9) //place
|
if ($iteminfo->AssetTypeId == 9) //place
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
The purpose of this is to upload Images from studio
|
The purpose of this is to upload Images from studio
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
The purpose of this is to upload Meshes from studio
|
The purpose of this is to upload Meshes from studio
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
The purpose of this is to upload MeshParts from studio
|
The purpose of this is to upload MeshParts from studio
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 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 Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use Finobe\Assets\Render;
|
use Fobe\Assets\Render;
|
||||||
|
|
||||||
$assetTypeName = $_GET['assetTypeName'];
|
$assetTypeName = $_GET['assetTypeName'];
|
||||||
$name = $_GET['name'];
|
$name = $_GET['name'];
|
||||||
|
|
|
||||||
|
|
@ -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 Finobe:</h5>
|
<h5>Upload Model to Fobe:</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;width: 152px;height: 185px" onclick="showNewModelDialog()">
|
<div class="studio-upload-card text-center" style="cursor: pointer;width: 152px;height: 185px" onclick="showNewModelDialog()">
|
||||||
<a>
|
<a>
|
||||||
<div class="studio-upload-card-img">
|
<div class="studio-upload-card-img">
|
||||||
<img class="img-fluid" src="/finobe/cdn/imgs/addmodelicon.png">
|
<img class="img-fluid" src="/fobe/cdn/imgs/addmodelicon.png">
|
||||||
</div>
|
</div>
|
||||||
<p class="no-overflow">Create New</p>
|
<p class="no-overflow">Create New</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ $body = <<<EOT
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe Ghetto Toolbox 2021
|
Fobe 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
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//headers
|
//headers
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if(!isLoggedIn())
|
if(!isLoggedIn())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Users\Activation;
|
use Fobe\Users\Activation;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\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 Finobe, you must activate this account in the <a href=https://discord.gg/RDj4aVh8VS>Discord Server</a>.</h5>
|
<h5>To play Fobe, you must activate this account in the <a href="https://discord.gg/qmV6P6XRhz">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>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\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 finobe db
|
if($iteminfo !== FALSE) //asset id exists in fobe 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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
5 = Right Leg
|
5 = Right Leg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Users\Render;
|
use Fobe\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'];
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Users\Render;
|
use Fobe\Users\Render;
|
||||||
|
|
||||||
if (Render::PendingRender($user->id))
|
if (Render::PendingRender($user->id))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
$body = "";
|
$body = "";
|
||||||
if(isset($_GET['id']))
|
if(isset($_GET['id']))
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
if (UserModerationManager::IsBanned($user->id))
|
if (UserModerationManager::IsBanned($user->id))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Assets\Render;
|
use Fobe\Assets\Render;
|
||||||
use Finobe\Moderation\UserModerationManager;
|
use Fobe\Moderation\UserModerationManager;
|
||||||
use Finobe\Users\User;
|
use Fobe\Users\User;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
$body = '';
|
$body = '';
|
||||||
$alert = "";
|
$alert = "";
|
||||||
|
|
@ -341,7 +341,7 @@ $itemimage = '';
|
||||||
if($itemtypeint != 3) {
|
if($itemtypeint != 3) {
|
||||||
$itempricebutton = '<div class="container input-group mb-3">
|
$itempricebutton = '<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="/finobe/cdn/imgs/alphabux-grey-1024.png"></span>
|
<span class="input-group-text"><img style="width:1rem;" src="/fobe/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>';
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ 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="/finobe/cdn/imgs/alphabux-grey-1024.png"> {price}</p>';
|
html += '<p><img src="/fobe/cdn/imgs/alphabux-grey-1024.png"> {price}</p>';
|
||||||
html += '</a>';
|
html += '</a>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '</li>';
|
html += '</li>';
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Finobe\Economy\EconomyHelper;
|
use Fobe\Economy\EconomyHelper;
|
||||||
use Finobe\Users\User;
|
use Fobe\Users\User;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
$body = "";
|
$body = "";
|
||||||
if(isset($_GET['id']))
|
if(isset($_GET['id']))
|
||||||
|
|
@ -108,9 +108,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="/finobe/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="/fobe/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>';
|
$confirmbuy_button = '<button type="submit" name="buyitem" class="btn btn-danger" style="width:12rem;"><img style="max-width:20px;" src="/fobe/cdn/imgs/alphabux-white-1024.png"> <b>'.cleanOutput($i->PriceInAlphabux).'</b></button>';
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Finobe 2021
|
Fobe 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Finobe\Assets\Asset;
|
use Fobe\Assets\Asset;
|
||||||
use Finobe\Economy\EconomyHelper;
|
use Fobe\Economy\EconomyHelper;
|
||||||
use Finobe\Web\WebContextManager;
|
use Fobe\Web\WebContextManager;
|
||||||
|
|
||||||
$body = '';
|
$body = '';
|
||||||
$alert = '';
|
$alert = '';
|
||||||
|
|
@ -548,7 +548,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="/finobe/cdn/imgs/asset-template.png">
|
<img class="img-fluid" src="/fobe/cdn/imgs/asset-template.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
@ -557,7 +557,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="/finobe/cdn/imgs/alphabux-grey-1024.png"></span>
|
<span class="input-group-text"><img style="width:1rem;" src="/fobe/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>
|
||||||
|
|
@ -623,7 +623,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="/finobe/cdn/imgs/Previews/Superflat.png">
|
<img class="img-fluid" src="/fobe/cdn/imgs/Previews/Superflat.png">
|
||||||
<span><p>Superflat</p></span>
|
<span><p>Superflat</p></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -631,7 +631,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="/finobe/cdn/imgs/Previews/Rugged.png">
|
<img class="img-fluid" src="/fobe/cdn/imgs/Previews/Rugged.png">
|
||||||
<span><p>Rugged</p></span>
|
<span><p>Rugged</p></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -639,7 +639,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="/finobe/cdn/imgs/Previews/Happy Home.png">
|
<img class="img-fluid" src="/fobe/cdn/imgs/Previews/Happy Home.png">
|
||||||
<span><p>Happy Home</p></span>
|
<span><p>Happy Home</p></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -647,7 +647,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="/finobe/cdn/imgs/Previews/Baseplate.png">
|
<img class="img-fluid" src="/fobe/cdn/imgs/Previews/Baseplate.png">
|
||||||
<span><p>Baseplate</p></span>
|
<span><p>Baseplate</p></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -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 Finobe alive with a donation!</h4>
|
<h4>Help keep Fobe 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>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ body, html {
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-image: url("/finobe/cdn/imgs/download-bg.png");
|
background-image: url("/fobe/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,7 +34,7 @@ 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 Finobe</h1>
|
<h1 class="display-4">Download Fobe</h1>
|
||||||
<img width="400" class="img-fluid" src="https://api.idk16.xyz/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>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 443 KiB After Width: | Height: | Size: 443 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 859 KiB After Width: | Height: | Size: 859 KiB |
|
Before Width: | Height: | Size: 860 KiB After Width: | Height: | Size: 860 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 181 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 373 KiB After Width: | Height: | Size: 373 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |