piler/webui/sso.php

44 lines
794 B
PHP
Raw Normal View History

2012-10-17 13:11:08 +02:00
<?php
2013-10-17 23:22:03 +02:00
session_start();
2012-10-17 13:11:08 +02:00
require_once("config.php");
require(DIR_SYSTEM . "/startup.php");
2013-10-17 23:22:03 +02:00
$session = new Session();
Registry::set("session", $session);
2012-10-17 13:11:08 +02:00
$request = new Request();
Registry::set("request", $request);
Registry::set('document', new Document());
$loader = new Loader();
Registry::set('load', $loader);
$language = new Language();
Registry::set('language', $language);
2013-10-17 23:22:03 +02:00
if(ENABLE_SYSLOG == 1) { openlog("piler-webui", LOG_PID, LOG_MAIL); }
2012-10-17 13:11:08 +02:00
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE, DB_PREFIX);
Registry::set('DB_DATABASE', DB_DATABASE);
Registry::set('db', $db);
Registry::set('DB_DRIVER', DB_DRIVER);
$action = new Router('login/sso');
$controller = new Front();
$controller->dispatch($action, new Router('common/not_found'));
?>