Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 487 Bytes
<?php
include_once("lib/backend/database.inc.php");
include_once("lib/login/session.inc.php");
include_once("lib/error.inc.php");
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json; charset=utf-8');
try {
$database = Database::getInstance();
$config = $database->getAppConfig();
$config["loggedin"] = login_check();
echo json_encode($config);
}
catch(Exception $e) {
sendAjaxError($e);
}