Пример #1
0
 *
 * @copyright     Copyright 2008-2011, Alejandro Zuleta (http://slopeone.net)
 * @link          http://phaxsi.net Phaxsi PHP Framework
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
if (!defined('APPD')) {
    exit;
}
if (!AppConfig::DEBUG_MODE) {
    error_reporting(0);
}
require_once 'core/includes.php';
/**
 * Finished loading things? Ok... Let's process the request!
 */
RedirectHelper::ifDifferentHost();
#Global environment settings
date_default_timezone_set(AppConfig::DEFAULT_TIMEZONE);
if (function_exists('mb_internal_encoding')) {
    mb_internal_encoding(AppConfig::CHARSET);
    if (AppConfig::DEFAULT_LANGUAGE == 'en' || AppConfig::DEFAULT_LANGUAGE == 'ja') {
        mb_language(AppConfig::DEFAULT_LANGUAGE);
    } else {
        mb_language('uni');
    }
}
#Undo magic quotes (From http://www.php.net/manual/en/security.magicquotes.disabling.php#91653)
if (get_magic_quotes_gpc()) {
    function undo_magic_quotes(&$value, $key)
    {
        $value = stripslashes($value);