2 Star 1 Fork 0

bieber / JSASys

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
restore.html 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
bieber 提交于 2014-09-13 10:27 . first commit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>备份数据库</title>
<script type="text/javascript">
var xmlHttp;
function setXmlHttpRequest()
{
if(window.ActiveXObject)
{
xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
}
else if(window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
}
function ajaxFun(url,funName)
{
setXmlHttpRequest();
url = encodeURI(url);
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange = funName;
xmlHttp.send(null);
}
function bakup()
{
var url = "admin_core/control.php?action=restore";
ajaxFun(url,returnFun);
}
function returnFun()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
var content = xmlHttp.responseText;
if(content=="success")
{
document.getElementById('bak').innerHTML="<img src=\"images/success.gif\" title=\"还原成功.....\" /><br />还原成功!";
}
}
}
}
</script>
</head>
<body style="font-size: 13px; color:#666; font-weight:bold;" onLoad="bakup()">
<center>
<div style="width:100%; height:100px;">
</div>
<span id="bak">
<img src="images/loading.gif" title="恢复中....." /><br />
正在恢复中......</span>
</center>
</body>
</html>
PHP
1
https://gitee.com/bieber/JSASys.git
git@gitee.com:bieber/JSASys.git
bieber
JSASys
JSASys
master

搜索帮助