<?
// set error reporting level
// error_reporting (E_ERROR | E_WARNING | E_PARSE | E_USER_WARNING | E_USER_ERROR);
define("SQL_DEBUG", true);
ini_set('display_errors','0');

// include libraries
include("config.php");

// turn caching off
no_cache();

// connect to database
db_connect(
    $CFG["db"]["host"],
    $CFG["db"]["user"],
    $CFG["db"]["pass"],
    $CFG["db"]["name"]
);

// start application
$app = new Hansademo("est", $CFG["db"]["db_names"], $CFG["path"], $CFG["url"], false, false);

$_action = "";
if (isset($_GET["action"])) { $_action = $_GET["action"]; }
$app->Start($_GET["page"], $_action);

db_query("SELECT 1", __FILE__, __LINE__, false);
?>