<?php
require_once("db.php");
require_once("error.php");
require_once("load_lang.php");
$usr_lang = array();
$LangClass = new LangClass();
$LangClass->load_db($db);
$usr_lang = $LangClass->get_lang();
$lang_gen = $LangClass->load_lang($usr_lang[0], "lang_gen");
require_once("header.php");
if (isset($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = "home";
}
if (file_exists($page.".php")) {
require_once($page.".php");
} else {
require_once("404.php");
}
require_once("footer.php");
$LangClass->close_db();
?>