Hey liebe Towner,
ich habe mir grade das TC CMS was von Forex hochgeladen wurde gedownloadet.
Datenbank etc habe ich auch alles eingestellt jetzt kommt aber auf der Index dieser Fehler :
Fatal error: Call to undefined function session_status() in C:\inetpub\wwwroot\Index.php on line 22
Was kann man tuen?
PHP
<?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"));
}
?>
Alles anzeigen