This commit is contained in:
parent
94635fea74
commit
69def07e02
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// this file is entirely made by nolanwhy, no skid pls
|
// this file is entirely made by nolanwhy, no skid pls
|
||||||
require_once 'core/classes.php';
|
require_once '../../../core/classes.php';
|
||||||
require_once 'core/config.php';
|
require_once '../../../core/config.php';
|
||||||
$id = (int)$_GET["userId"] ?? 0;
|
$id = (int)$_GET["userId"] ?? 0;
|
||||||
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id");
|
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id");
|
||||||
$stmt->bindParam(':id',$id,PDO::PARAM_INT);
|
$stmt->bindParam(':id',$id,PDO::PARAM_INT);
|
||||||
|
|
@ -11,11 +11,12 @@ if(!$ruser) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
function renderUser($id, $times = 1) {
|
function renderUser($id, $times = 1) {
|
||||||
|
global $RCCServiceSoap;
|
||||||
|
global $site;
|
||||||
// times is the like, if you rendered 2 times or shit.
|
// times is the like, if you rendered 2 times or shit.
|
||||||
$newtime = (int)$times + 1; // if rendered again, to retry.
|
$newtime = (int)$times + 1; // if rendered again, to retry.
|
||||||
$id = (int)$id;
|
$id = (int)$id;
|
||||||
$charapp = $site["url"].'/v1.1/avatar-fetch?userId='.$userId.'&placeId=0';
|
$charapp = $site["url"].'/v1.1/avatar-fetch?userId='.$id.'&placeId=0';
|
||||||
global $RCCServiceSoap;
|
|
||||||
$script = 'game:GetService("ContentProvider"):SetBaseUrl("'.$site["url"].'/")
|
$script = 'game:GetService("ContentProvider"):SetBaseUrl("'.$site["url"].'/")
|
||||||
game:GetService("ScriptContext").ScriptsDisabled = true
|
game:GetService("ScriptContext").ScriptsDisabled = true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ if($devmode) {
|
||||||
// if ur gonna use the availablegameservers array please pick a random gameserver from the array or else we would put all stress on 1 gameserver
|
// if ur gonna use the availablegameservers array please pick a random gameserver from the array or else we would put all stress on 1 gameserver
|
||||||
|
|
||||||
$AvailableGameservers = [
|
$AvailableGameservers = [
|
||||||
"1" => "127.0.0.1"
|
"127.0.0.1"
|
||||||
];
|
];
|
||||||
// No ports? NO BITCHES
|
// No ports? NO BITCHES
|
||||||
// default is 64989 NOOB
|
// default is 64989 NOOB
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
require_once 'core/classes.php';
|
require_once 'core/config.php';
|
||||||
|
require_once 'core/classes.php';
|
||||||
headStart();if($loggedIn) {
|
headStart();if($loggedIn) {
|
||||||
if (isset($_GET['client']) && $_GET['client'] == 2016 && $_GET['type'] == "player") {
|
if (isset($_GET['client']) && $_GET['client'] == 2016 && $_GET['type'] == "player") {
|
||||||
die(header("Location: /downloads/player-2016.zip"));
|
die(header("Location: /downloads/player-2016.zip"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue