diff --git a/index.php b/index.php index 08a2c3e..b11560c 100644 --- a/index.php +++ b/index.php @@ -7,15 +7,12 @@ if (isset($_SESSION['Firma']['ID'])) define('GUELTIG', $_SESSION['Firma']['A_Bis']); define('ZAHLBAR', $_SESSION['Firma']['Z_Bis']); } -if (!defined('PREFIX')) { - define('PREFIX', ''); -} +include "inc/config.php"; // die Konfigurationsdateien lesen +require_once(__DIR__ . '/vendor/autoload.php'); if ('Test' == PREFIX) { exit(); } -include "inc/config.php"; // die Konfigurationsdateien lesen -require_once(__DIR__ . '/vendor/autoload.php'); // Verbindung zu MySQL Aufbauen $db = @new MySQLi(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE);