start(); } // handle the language preferences now $avail_langs = array( 'en_US' => 'English', # 'ru_RU' => 'Russian', # 'de_DE' => 'German', # 'fr_FR' => 'French', 'it_IT' => 'Italian', # 'fi_FI' => 'Finish', # 'es_ES' => 'Spanish', # 'nl_NL' => 'Dutch', 'sv_SE' => 'Swedish', ); include_once(APP_INC_PATH . 'class.language.php'); include_once(APP_INC_PATH . 'db_access.php'); include_once(APP_INC_PATH . 'class.auth.php'); include_once(APP_INC_PATH . 'class.misc.php'); Language::setPreference(); if (isset($_GET)) { $HTTP_POST_VARS = $_POST; $HTTP_GET_VARS = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; // seems like PHP 4.1.0 didn't implement the $_SESSION auto-global... if (isset($_SESSION)) { $HTTP_SESSION_VARS = $_SESSION; } $HTTP_COOKIE_VARS = $_COOKIE; } // fix magic_quote_gpc'ed values (i wish i knew who is the person behind this) $HTTP_GET_VARS = Misc::dispelMagicQuotes($HTTP_GET_VARS); $HTTP_POST_VARS = Misc::dispelMagicQuotes($HTTP_POST_VARS); $_REQUEST = Misc::dispelMagicQuotes($_REQUEST); // set charset header('Content-Type: text/html; charset=' . APP_CHARSET); /* vim: set expandtab tabstop=4 shiftwidth=4: */