first commit
This commit is contained in:
parent
e517618160
commit
a13717e013
5 changed files with 36 additions and 7 deletions
|
@ -7,14 +7,15 @@
|
||||||
|
|
||||||
$ipserv = "103.58.149.102" ; // IP server game
|
$ipserv = "103.58.149.102" ; // IP server game
|
||||||
|
|
||||||
|
/*
|
||||||
$portserv = "2402" ; // Game Server Port
|
$portserv = "2402" ; // Game Server Port
|
||||||
$modport = "2412" ; // Mod port omega (+10)
|
$modport = "2412" ; // Mod port omega (+10)
|
||||||
$queryport= "27017" ; // Queryport
|
$queryport= "27017" ; // Queryport
|
||||||
/*
|
*/
|
||||||
$portserv = "2302" ; // Game Server Port
|
$portserv = "2302" ; // Game Server Port
|
||||||
$modport = "2312" ; // Mod port omega (+10)
|
$modport = "2312" ; // Mod port omega (+10)
|
||||||
$queryport= "27016" ; // Queryport
|
$queryport= "27016" ; // Queryport
|
||||||
|
/*
|
||||||
|
|
||||||
$ipserv = "82.64.214.194" ; // IP server game
|
$ipserv = "82.64.214.194" ; // IP server game
|
||||||
$portserv = "3222" ; // Game Server Port
|
$portserv = "3222" ; // Game Server Port
|
||||||
|
|
21
consql.php
21
consql.php
|
@ -1,18 +1,31 @@
|
||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
$servdb = "";
|
$servdb = "";
|
||||||
$userdb = "";
|
$userdb = "";
|
||||||
$pdb = "";
|
$pdb = "";
|
||||||
$dbname = "";
|
$dbname = "";
|
||||||
$table = "StatServer_20";
|
$table = "StatServer_1";
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
$servdb = "183.90.168.189";
|
||||||
|
$userdb = "fpinth_status";
|
||||||
|
$pdb = "Nick053896077";
|
||||||
|
$dbname = "fpinth_status";
|
||||||
|
$table = "StatServer_1";
|
||||||
|
|
||||||
$StatServer = $table;
|
$StatServer = $table;
|
||||||
|
|
||||||
$con = new mysqli($servdb, $userdb, $pdb, $dbname);
|
$con = new mysqli($servdb, $userdb, $pdb, $dbname);
|
||||||
|
|
||||||
if ($con->connect_error) {
|
if ($con->connect_error) {
|
||||||
echo (" SQL not active <font color=orange> // Function not ready yet </font> ");
|
// echo (" SQL not active <font color=orange> // Function not ready yet </font> ");
|
||||||
// echo ("<font color=red> ...Connection failed need to set MYSQL </font><br>");
|
echo ("<font color=red> ...Connection failed with MYSQL </font><br>");
|
||||||
// die("Connection failed: " . $con->connect_error);
|
echo $servdb; echo "<br>";
|
||||||
|
echo $userdb; echo "<br>";
|
||||||
|
echo $table; echo "<br>";
|
||||||
|
|
||||||
|
// die("Connection failed: " . $con->connect_error);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@ $sec = "300";
|
||||||
//error_reporting(E_ALL); // Display all types of error
|
//error_reporting(E_ALL); // Display all types of error
|
||||||
|
|
||||||
|
|
||||||
// include_once('./consql.php');
|
include_once('./consql.php');
|
||||||
include_once('./config.php');
|
include_once('./config.php');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
15
statserver_json.php
Normal file
15
statserver_json.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
include_once('./consql.php');
|
||||||
|
include_once('./config.php');
|
||||||
|
|
||||||
|
echo "<hr><h1> TEST connection MYSQL </h1>";
|
||||||
|
|
||||||
|
//echo $InfoGT ;
|
||||||
|
|
||||||
|
echo "<hr>";
|
||||||
|
|
||||||
|
//echo $Info['GameTags'];
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in a new issue