Moin liebe Towner!
Ich habe dieses Problem.
Fatal error: Call to undefined function session_status() in C:\inetpub\wwwroot\Index.php on line 22
Im Spoiler steht die Index Datei.
lg.
SynteXo
Spoiler anzeigen
<?php
/*
* The ____ _ _
* | _ \| | | |
* | |_) | |_ _ ___| |__ ___ _ __ _ __ _ _
* | _ <| | | | |/ _ \ '_ \ / _ \ '__| '__| | | |
* | |_) | | |_| | __/ |_) | __/ | | | | |_| |
* |____/|_|\__,_|\___|_.__/ \___|_| |_| \__, |
* __/ |
* |___/ CMS
* @author Caglar <Caglar@outlook.de>
* @Copyright 2015 Caglar
*/
set_time_limit(0);
define("DEBUGGING", true);
ini_set("display_errors", DEBUGGING);
ini_set("memory_limit", -1);
date_default_timezone_set("Europe/Berlin");
error_reporting(E_ALL);
if(session_status() == PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . "/Configuration.php");
spl_autoload_register(function($className) {
require_once(dirname(__FILE__) . "/" . implode("/", explode("\\", $className)) . ".php");
});
use System\PDO\Connection;
use Application\Models\User\Object as User;
use System\Exception\ExceptionDetector;
$exception = new ExceptionDetector(true);
if(defined("AJAX") defined("API")) {
$Connection = new Connection(array($_CFG["MySQL:HOST"], $_CFG["MySQL:USER"], $_CFG["MySQL:PASS"], $_CFG["MySQL:DATA"]));
$User = new User($Connection);
} else {
return new System\Bootstrap(new Connection(array($_CFG["MySQL:HOST"], $_CFG["MySQL:USER"], $_CFG["MySQL:PASS"], $_CFG["MySQL:DATA"])), array("main", "index"));
}
?>