mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 01:56:07 +00:00
fix: double-including confing results in redefining constants
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
session_start();
|
||||
include('GameEngine/config.php');
|
||||
include_once('GameEngine/config.php');
|
||||
include_once ("GameEngine/Lang/" . LANG . ".php");
|
||||
include("GameEngine/Generator.php");
|
||||
include("GameEngine/Database.php");
|
||||
include_once("GameEngine/Generator.php");
|
||||
include_once("GameEngine/Database.php");
|
||||
|
||||
//include("GameEngine/Session.php");
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
session_start();
|
||||
include('GameEngine/config.php');
|
||||
include_once('GameEngine/config.php');
|
||||
include_once ("GameEngine/Lang/" . LANG . ".php");
|
||||
include("GameEngine/Generator.php");
|
||||
include("GameEngine/Database.php");
|
||||
include_once("GameEngine/Generator.php");
|
||||
include_once("GameEngine/Database.php");
|
||||
header("Content-Type: application/json;");
|
||||
|
||||
//include("GameEngine/Session.php");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$count="0";
|
||||
include("GameEngine/Config.php");
|
||||
include_once("GameEngine/Config.php");
|
||||
|
||||
$connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysqli_error($database->dblink));
|
||||
mysqli_select_db(SQL_DB, $connection) or die(mysqli_error($database->dblink));
|
||||
|
||||
+3
-3
@@ -11,9 +11,9 @@
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include("GameEngine/config.php");
|
||||
include("GameEngine/Database.php");
|
||||
include("GameEngine/Lang/".LANG.".php");
|
||||
include_once("GameEngine/config.php");
|
||||
include_once("GameEngine/Database.php");
|
||||
include_once("GameEngine/Lang/".LANG.".php");
|
||||
AccessLogger::logRequest();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
+3
-3
@@ -16,9 +16,9 @@
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include("GameEngine/config.php");
|
||||
include("GameEngine/Database.php");
|
||||
include("GameEngine/Lang/".LANG.".php");
|
||||
include_once("GameEngine/config.php");
|
||||
include_once("GameEngine/Database.php");
|
||||
include_once("GameEngine/Lang/".LANG.".php");
|
||||
AccessLogger::logRequest();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
@@ -24,7 +24,7 @@ if(!file_exists('var/installed') && @opendir('install')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
include ("GameEngine/config.php");
|
||||
include_once("GameEngine/config.php");
|
||||
/*
|
||||
if($_SERVER['HTTP_HOST'] != '.SERVER.')
|
||||
{
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include("GameEngine/config.php");
|
||||
include_once("GameEngine/config.php");
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
+5
-5
@@ -15,11 +15,11 @@ if(!file_exists('var/installed') && @opendir('install')) {
|
||||
header("Location: install/");
|
||||
exit;
|
||||
}
|
||||
include("GameEngine/config.php");
|
||||
include("GameEngine/Lang/" . LANG . ".php");
|
||||
include("GameEngine/Database.php");
|
||||
include("GameEngine/Mailer.php");
|
||||
include("GameEngine/Generator.php");
|
||||
include_once("GameEngine/config.php");
|
||||
include_once("GameEngine/Lang/" . LANG . ".php");
|
||||
include_once("GameEngine/Database.php");
|
||||
include_once("GameEngine/Mailer.php");
|
||||
include_once("GameEngine/Generator.php");
|
||||
AccessLogger::logRequest();
|
||||
|
||||
if(!isset($_REQUEST['npw'])){
|
||||
|
||||
+3
-3
@@ -11,9 +11,9 @@
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include("GameEngine/config.php");
|
||||
include("GameEngine/Database.php");
|
||||
include("GameEngine/Lang/".LANG.".php");
|
||||
include_once("GameEngine/config.php");
|
||||
include_once("GameEngine/Database.php");
|
||||
include_once("GameEngine/Lang/".LANG.".php");
|
||||
AccessLogger::logRequest();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
+3
-3
@@ -12,9 +12,9 @@
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include("GameEngine/config.php");
|
||||
include("GameEngine/Database.php");
|
||||
include("GameEngine/Lang/".LANG.".php");
|
||||
include_once("GameEngine/config.php");
|
||||
include_once("GameEngine/Database.php");
|
||||
include_once("GameEngine/Lang/".LANG.".php");
|
||||
AccessLogger::logRequest();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
Reference in New Issue
Block a user