Update config.php

This commit is contained in:
Mario 2023-05-22 13:21:55 +03:00 committed by GitHub
parent ef5cedc963
commit 16d28d6a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -1,10 +1,11 @@
<?php
// configuration
ob_start();
error_reporting(0);
ini_set('extension', 'soap');
// settingz
$sql = [
$sql = [ // xbox live
"dbname" => "GruBlox",
"host" => "localhost",
"port" => 3306,
@ -15,7 +16,7 @@ $sql = [
$settings = file_get_contents(dirname(__DIR__).'/settings.json');
$settings = json_decode($settings, true);
//daily pay aka mone
$pay = $settings['pay'];
$pay = $settings['pay']; // we shouldn't do this
// mentanacne jfdsdfj omg dont enable if not needed ok? thank.
$maintenance = $settings['maintenance'];
@ -53,7 +54,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
$AvailableGameservers = [
"127.0.0.1"
1 => "192.168.1.131" // my local ip
];
// No ports? NO BITCHES
// default is 64989 NOOB
@ -69,7 +70,8 @@ $soapIp = $AvailableGameservers[array_rand($AvailableGameservers,1)];
$soapcfg = [
"ip" => $soapIp,
"port" => 64989,
"usehttps" => 'false'
"usehttps" => 'false',
"url" => "sierraf.tk" // pls don't remove
];
if ($soapcfg["usehttps"] == 'true') {
@ -105,4 +107,5 @@ try {
unset($sql);
} catch (PDOException $e) {
die("Connection failed: " . $e->getMessage());
}
}
?>