Initial Commit

This commit is contained in:
2013-02-08 20:18:32 +00:00
commit eaaf97ef7e
61 changed files with 3375 additions and 0 deletions

26
Classes/System.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
class System
{
private static $db;
private static $config;
public static function Init(array $config)
{
self::$config = (object) $config;
self::StartSession();
}
public static function Config()
{
return self::$config;
}
public static function StartSession()
{
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
session_set_cookie_params(60*60*24, self::$config->BasePath, $_SERVER['HTTP_HOST'], False, True);
session_start();
}
}