require "session_check.php"; require "proxy/proxy.php"; $is_check = check_rights("e01"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } //语言包引入 $so_softwarelp = new softwarelp(); $er_langpackage = new errorlp(); $u_langpackage = new uilp(); $ad_langpackage = new adminmenulp(); $version_url = "../docs/version.txt"; $whole_version = file_get_contents($version_url); $version = intval(str_replace(".", "", $whole_version)); $serv_url = list_substitue("software", "&version=" . $whole_version); $show_error = ''; $show_data = 'content_none'; $show_str = ''; $ver_str = file_get_contents($serv_url); if ($ver_str == '') { $show_str = $so_softwarelp->so_list_false; } else { if (preg_match("/error\\_\\d/", $ver_str)) { $show_str = $er_langpackage->{"er_" . $ver_str}; //代理程序返回错误 } elseif (!preg_match("/<software>.+<\\/software>/", $ver_str)) { $show_str = $so_softwarelp->so_last_version; } else { $xmlDom = new DomDocument(); $xmlDom->loadXML($ver_str);
<?php require "session_check.php"; require "proxy/proxy.php"; $is_check = check_rights("b13"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } //语言包引入 $u_langpackage = new uilp(); $er_langpackage = new errorlp(); $ad_langpackage = new adminmenulp(); $serv_url = list_substitue("skin"); $is_show = 0; $skin_list = array(); $error_str = ''; if ($serv_content = file_get_contents($serv_url)) { if (preg_match("/error\\_\\d/", $serv_content)) { $error_str = $er_langpackage->{"er_" . $serv_content}; //代理程序返回错误 } else { $serv_tpl_array = explode(",", $serv_content); foreach ($serv_tpl_array as $val) { if (!empty($val)) { $skin_list[] = $val; } } $is_show = 1; } } else {
<?php require "session_check.php"; require "proxy/proxy.php"; $is_check = check_rights("b11"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } //语言包引入 $u_langpackage = new uilp(); $er_langpackage = new errorlp(); $ad_langpackage = new adminmenulp(); $serv_url = list_substitue("tpl"); $is_show = 0; $tpl_list = array(); $error_str = ''; if ($serv_content = file_get_contents($serv_url)) { if (preg_match("/error\\_\\d/", $serv_content)) { $error_str = $er_langpackage->{"er_" . $serv_content}; //代理程序返回错误 } else { $serv_tpl_array = explode(",", $serv_content); foreach ($serv_tpl_array as $val) { if (!empty($val)) { $tpl_list[] = $val; } } $is_show = 1; } } else {
<?php require "session_check.php"; require "proxy/proxy.php"; $is_check = check_rights("f02"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } //语言包引入 $t_langpackage = new toollp(); $er_langpackage = new errorlp(); $ad_langpackage = new adminmenulp(); $xmlDom = new DomDocument(); $serv_url = list_substitue("tools"); $client_url = "toolsBox/tool.xml"; $is_show = 0; $serv_content = file_get_contents($serv_url); //取得代理返回数据 if ($serv_content) { if (preg_match("/error\\_\\d/", $serv_content)) { $error_str = $er_langpackage->{"er_" . $serv_content}; //代理程序返回错误 } else { $xml_server = new DOMDocument(); $xml_server->loadXML($serv_content); //解析服务器的xml $serve_root = $xml_server->getElementsByTagName('toolbox')->item(0); $serve_node = $xml_server->getElementsByTagName('tool_item'); $client_content = file_get_contents($client_url); $xml_client = new DOMDocument();