fix: double-including confing results in redefining constants

This commit is contained in:
Martin Ambrus
2017-11-06 14:12:32 +01:00
parent 5a929457c0
commit e92d075060
10 changed files with 26 additions and 26 deletions
+3 -3
View File
@@ -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");
+3 -3
View File
@@ -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 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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">
+1 -1
View File
@@ -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
View File
@@ -11,7 +11,7 @@
## ##
#################################################################################
include("GameEngine/config.php");
include_once("GameEngine/config.php");
?>
<html>
+5 -5
View File
@@ -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
View File
@@ -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
View File
@@ -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">