mirror of
https://github.com/tsingui/softcenter-1.git
synced 2025-04-04 15:55:24 +00:00
215 lines
9.6 KiB
Plaintext
215 lines
9.6 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
|
||
<meta HTTP-EQUIV="Expires" CONTENT="-1" />
|
||
<link rel="shortcut icon" href="images/favicon.png" />
|
||
<link rel="icon" href="images/favicon.png" />
|
||
<title>软件中心 - 系统工具</title>
|
||
<link rel="stylesheet" type="text/css" href="index_style.css" />
|
||
<link rel="stylesheet" type="text/css" href="form_style.css" />
|
||
<link rel="stylesheet" type="text/css" href="usp_style.css" />
|
||
<link rel="stylesheet" type="text/css" href="ParentalControl.css">
|
||
<link rel="stylesheet" type="text/css" href="css/icon.css">
|
||
<link rel="stylesheet" type="text/css" href="css/element.css">
|
||
<script type="text/javascript" src="/state.js"></script>
|
||
<script type="text/javascript" src="/popup.js"></script>
|
||
<script type="text/javascript" src="/help.js"></script>
|
||
<script type="text/javascript" src="/validator.js"></script>
|
||
<script type="text/javascript" src="/js/jquery.js"></script>
|
||
<script type="text/javascript" src="/general.js"></script>
|
||
<script type="text/javascript" src="/switcherplugin/jquery.iphone-switch.js"></script>
|
||
<script language="JavaScript" type="text/javascript" src="/client_function.js"></script>
|
||
<script>
|
||
var $j = jQuery.noConflict();
|
||
var softcenter_kms_ver="<% dbus_get("kms_ver"); %>";
|
||
var softcenter_kms_wan_port="<% dbus_get("kms_wan_port"); %>";
|
||
function init() {
|
||
show_menu(menu_hook);
|
||
buildswitch();
|
||
version_show();
|
||
var rrt = document.getElementById("switch");
|
||
if (document.form.kms_enable.value != "1") {
|
||
rrt.checked = false;
|
||
} else {
|
||
rrt.checked = true;
|
||
}
|
||
$j('#kms_wan_port').val(softcenter_kms_wan_port);
|
||
}
|
||
function done_validating() {
|
||
return true;
|
||
}
|
||
|
||
function buildswitch(){
|
||
$j("#switch").click(
|
||
function(){
|
||
if(document.getElementById('switch').checked){
|
||
document.form.kms_enable.value = 1;
|
||
}else{
|
||
document.form.kms_enable.value = 0;
|
||
}
|
||
});
|
||
}
|
||
|
||
function onSubmitCtrl() {
|
||
showLoading(3);
|
||
document.form.submit();
|
||
}
|
||
|
||
function reload_Soft_Center(){
|
||
location.href = "/Main_Soft_center.asp";
|
||
}
|
||
|
||
function version_show(){
|
||
$j.ajax({
|
||
url: 'https://raw.githubusercontent.com/paldier/softcenter/master/kms/config.json.js',
|
||
type: 'GET',
|
||
dataType: 'json',
|
||
success: function(res) {
|
||
$j("#kms_install_show").html("<i>有新版本:" + res.version);
|
||
}
|
||
});
|
||
}
|
||
|
||
var enable_ss = "<% nvram_get("enable_ss"); %>";
|
||
var enable_soft = "<% nvram_get("enable_soft"); %>";
|
||
function menu_hook(title, tab) {
|
||
tabtitle[tabtitle.length -1] = new Array("", "KMS");
|
||
tablink[tablink.length -1] = new Array("", "Module_kms.asp");
|
||
}
|
||
</script>
|
||
</head>
|
||
<body onload="init();">
|
||
<div id="TopBanner"></div>
|
||
<div id="Loading" class="popup_bg"></div>
|
||
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
|
||
<form method="POST" name="form" action="/applydb.cgi?p=kms_" target="hidden_frame">
|
||
<input type="hidden" name="current_page" value="Module_kms.asp" />
|
||
<input type="hidden" name="next_page" value="Module_kms.asp" />
|
||
<input type="hidden" name="group_id" value="" />
|
||
<input type="hidden" name="modified" value="0" />
|
||
<input type="hidden" name="action_mode" value=" Refresh " />
|
||
<input type="hidden" name="action_script" value="kms.sh" />
|
||
<input type="hidden" name="action_wait" value="5" />
|
||
<input type="hidden" name="first_time" value="" />
|
||
<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get(" preferred_lang "); %>"/>
|
||
<input type="hidden" name="firmver" value="<% nvram_get(" firmver "); %>"/>
|
||
<input type="hidden" id="kms_enable" name="kms_enable" value='<% dbus_get_def("kms_enable", "0"); %>' />
|
||
<table class="content" align="center" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td width="17"> </td>
|
||
<td valign="top" width="202">
|
||
<div id="mainMenu"></div>
|
||
<div id="subMenu"></div>
|
||
</td>
|
||
<td valign="top">
|
||
<div id="tabMenu" class="submenuBlock"></div>
|
||
<table width="98%" border="0" align="left" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left" valign="top">
|
||
<table width="760px" border="0" cellpadding="5" cellspacing="0" bordercolor="#6b8fa3" class="FormTitle" id="FormTitle">
|
||
<tr>
|
||
<td bgcolor="#4D595D" colspan="3" valign="top">
|
||
<div> </div>
|
||
<div style="float:left;" class="formfonttitle">系统工具 - 来自网络的胃軟系统工具</div>
|
||
<div style="float:right; width:15px; height:25px;margin-top:10px">
|
||
<img id="return_btn" onclick="reload_Soft_Center();" align="right" style="cursor:pointer;position:absolute;margin-left:-30px;margin-top:-25px;" title="返回软件中心" src="/images/backprev.png" onMouseOver="this.src='/images/backprevclick.png'" onMouseOut="this.src='/images/backprev.png'"></img>
|
||
</div>
|
||
<div style="margin-left:5px;margin-top:10px;margin-bottom:10px">
|
||
<img src="/images/New_ui/export/line_export.png">
|
||
</div>
|
||
<div class="formfontdesc" id="cmdDesc">该工具用于“鸡或”“胃軟奥菲斯”和“胃軟操作系统”。</div>
|
||
<div class="formfontdesc" id="cmdDesc"></div>
|
||
<table style="margin:10px 0px 0px 0px;" width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable" id="kms_table">
|
||
<thead>
|
||
<tr>
|
||
<td colspan="2">系统工具选项</td>
|
||
</tr>
|
||
</thead>
|
||
<tr>
|
||
<th>开启系统工具</th>
|
||
<td colspan="2">
|
||
<div class="switch_field" style="display:table-cell;float: left;">
|
||
<label for="switch">
|
||
<input id="switch" class="switch" type="checkbox" style="display: none;">
|
||
<div class="switch_container">
|
||
<div class="switch_bar"></div>
|
||
<div class="switch_circle transition_style">
|
||
<div></div>
|
||
</div>
|
||
</div>
|
||
</label>
|
||
</div>
|
||
<div id="kms_version_show" style="padding-top:5px;margin-left:230px;margin-top:0px;"><i>当前版本:<% dbus_get_def("kms_ver", "未知"); %></i>
|
||
</div>
|
||
<div id="kms_install_show" style="padding-top:5px;margin-left:330px;margin-top:-25px;"></div>
|
||
<a style="margin-left: 318px;" href="https://raw.githubusercontent.com/paldier/softcenter/master/kms/Changelog.txt" target="_blank"><em>[<u> 更新日志 </u>]</em></a>
|
||
</td>
|
||
</tr>
|
||
<tr id="port_tr">
|
||
<th width="35%">外网开关</th>
|
||
<td>
|
||
<div style="float:left; width:165px; height:25px">
|
||
<select id="kms_wan_port" name="kms_wan_port" style="width:164px;margin:0px 0px 0px 2px;" class="input_option">
|
||
<option value="0">关闭</option>
|
||
<option value="1">开启</option>
|
||
</select>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<div class="apply_gen">
|
||
<button id="cmdBtn" class="button_gen" onclick="onSubmitCtrl()">提交</button>
|
||
</div>
|
||
<div style="margin-left:5px;margin-top:10px;margin-bottom:10px">
|
||
<img src="/images/New_ui/export/line_export.png">
|
||
</div>
|
||
<div id="NoteBox">
|
||
<h2>使用说明:</h2>
|
||
<h3>以管理员身份运行CMD输入以下命令,红色字体代表变量不是固定的,请参照自己的计算机修改。</h3>
|
||
<h3>【1】 奥菲斯鸡或</h3>
|
||
<p>CD <font color="red">X</font>:\Program Files<font color="red">(X86)</font>\Microsoft Office\Office<font color="red">14</font>
|
||
</p>
|
||
<p>cscript ospp.vbs /sethst:<font color="red">192.168.50.1</font>
|
||
</p>
|
||
<p>cscript ospp.vbs /act</p>
|
||
<p>cscript ospp.vbs /dstatus</p>
|
||
<h3>【2】 操作系统鸡或</h3>
|
||
<p>slmgr /ipk <font color="red">MHF9N-XY6XB-WVXMC-BTDCT-MKKG7</font>
|
||
</p>
|
||
<p>slmgr /skms <font color="red">192.168.50.1</font>
|
||
</p>
|
||
<p>slmgr /ato</p>
|
||
<h2>申明:本工具来自国外互联网 <a href="https://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms" target="_blank">点我跳转</a></h2>
|
||
</div>
|
||
<div style="margin-left:5px;margin-top:10px;margin-bottom:10px">
|
||
<img src="/images/New_ui/export/line_export.png">
|
||
</div>
|
||
<div class="KoolshareBottom">
|
||
<br/>论坛技术支持:
|
||
<a href="http://www.koolshare.cn" target="_blank"> <i><u>www.koolshare.cn</u></i>
|
||
</a>
|
||
<br/>后台技术支持: <i>Xiaobao</i>
|
||
<br/>Shell, Web by: <i>fw867</i>
|
||
<br/>修改版 by: <i>paldier</i>
|
||
<br/>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td width="10" align="center" valign="top"></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
</td>
|
||
<div id="footer"></div>
|
||
</body>
|
||
|
||
</html>
|