<?php
/*
simpleQuizz made Quizzs simple
Copyright (C) 2008 Mathieu Lory <hide@address.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function __autoload($class_name)
{
require_once "include/".strtolower($class_name) . '.class.php';
Debug::Log("Class ".$class_name. " loaded !");
}
include("settings.php");
Server::Normalize();
User::$current = Session::Start();
$_SESSION["LANG"] = $_SESSION["LANG"]?$_SESSION["LANG"]:LANG;
$_SESSION["nb_points"] = $_SESSION["nb_points"]?$_SESSION["nb_points"]:0;
I18n::load();
define("DATAS_PREFIX", PREFIX."/datas/flatFiles/".$_SESSION["LANG"]); /* only for flat files datas */
?>