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