Ejemplo n.º 1
0
} else {
    define('ERROR_PAGE', 0);
}
if ($is_search_engine == 0 && !defined('NO_SESSION') && !ERROR_PAGE) {
    if (SESSION_TYPE == 'db') {
        require_once ROOT_PATH . 'includes/session.class.php';
        //Session db store
    } elseif (SESSION_TYPE == 'memcache') {
        require_once ROOT_PATH . "includes/memcache.session.php";
        //Session memcache store
    } else {
        session_start();
    }
}
if (isset($_GET['type'])) {
    CGlobal::$curItemType = (int) $_GET['type'];
}
// Disable ALL magic_quote
set_magic_quotes_runtime(0);
if (get_magic_quotes_gpc()) {
    function stripslashes_deep($value)
    {
        $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
        return $value;
    }
    $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
    $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
}
if (!ERROR_PAGE) {
    //get all config
    AZLib::get_config();