$user_id = (int) Url::get('login_as_id', 0); $user = array(); if ($user_id) { $user = User::getUser($user_id); } else { $user_name = Url::get('login_as'); if ($user_name != '') { $user = User::getByUserName($user_name); } } if ($user) { if (User::is_root() || !$user['gids'] || $user['gids'] && !preg_match("/([\\D])9([\\D])/i", "|{$user['gids']}|")) { User::LogIn($user); } } } Url::redirect_url(Url::build_all(array('login_as', 'login_as_id'))); } } } //Title mac dinh cho website CGlobal::$website_title = WEB_TITLE; CGlobal::$keywords = META_KEYWORDS; CGlobal::$meta_desc = META_DESCRIPTION; //Tiền tệ: CGlobal::$currency = array('1' => 'VNĐ', '2' => '$'); //CGlobal::$currency = array('1'=>'VNĐ','2'=>'$','3'=>'€');//'3'=>'€'); register_shutdown_function(array("DB", "close")); register_shutdown_function(array("AZLib", "ftp_image_close")); global $display; $display = new AZDisplay();