} $smarty->assign('lang', $_LANG); $smarty->assign('help_open', $_CFG['help_open']); if (isset($_CFG['enable_order_check'])) { $smarty->assign('enable_order_check', $_CFG['enable_order_check']); } else { $smarty->assign('enable_order_check', 0); } /* 验证通行证信息 */ if (isset($_GET['ent_id']) && isset($_GET['ent_ac']) && isset($_GET['ent_sign']) && isset($_GET['ent_email'])) { $ent_id = trim($_GET['ent_id']); $ent_ac = trim($_GET['ent_ac']); $ent_sign = trim($_GET['ent_sign']); $ent_email = trim($_GET['ent_email']); $certificate_id = trim($_CFG['certificate_id']); $domain_url = $hhs->url(); $token = $_GET['token']; if ($token == md5(md5($_CFG['token']) . $domain_url . ADMIN_PATH)) { require ROOT_PATH . 'includes/cls_transport.php'; $t = new transport('-1', 5); $apiget = "act=ent_sign&ent_id= {$ent_id} & certificate_id={$certificate_id}"; $t->request('http://cloud.hhshop.com/api.php', $apiget); $db->query('UPDATE ' . $hhs->table('shop_config') . ' SET value = "' . $ent_id . '" WHERE code = "ent_id"'); $db->query('UPDATE ' . $hhs->table('shop_config') . ' SET value = "' . $ent_ac . '" WHERE code = "ent_ac"'); $db->query('UPDATE ' . $hhs->table('shop_config') . ' SET value = "' . $ent_sign . '" WHERE code = "ent_sign"'); $db->query('UPDATE ' . $hhs->table('shop_config') . ' SET value = "' . $ent_email . '" WHERE code = "ent_email"'); clear_cache_files(); hhs_header("Location: ./index.php\n"); } } /* 验证管理员身份 */