📄 backup.php
字号:
<?php
#########################################################
# inso留言本 1.2 #
#########################################################
# 这是个免费软件,但是享有版权 (C)copyright 2003 #
# ▲ ▲ ▲ ▲ #
# 仅限个人网站和非商业网站使用 #
# 如果您使用本脚本,请不要删除版权标记 #
# 如果您一定要删除版权的话或者用于商业网站的话 #
# 请支付人民币100元或美元10元,否则将视为非法 #
# inso汉化 创作 #
# http://www.shi8.com #
#########################################################
include "incl/pss.php";include "incl/metadoc.inc";
$tst="backup/when";if(!is_file($tst)||!is_writeable($tst)){
$fd=fopen($tst,"w+") or die('<div align="center" style="color:red;background-color:white"><h3><br><br>WARNING! Create an <u>empty</u> directory /<i style="color:green">backup</i> and CHMOD it to 777!</h3></div>');
$fout=fwrite($fd,"");fclose($fd);}
$dn="<title>...</title></head><body onLoad=\"pp=Math.round(99999*Math.random());window.location='backup.php?u='+pp\"></body></html>";
if(isset($bnow)&&$bnow!=''){
$filw="backup/when";$handle=opendir("data");
while($entry=readdir($handle)){
if(is_file("data/$entry")&&$entry!=".htaccess"){copy("data/$entry","backup/$entry");}
}closedir($handle);wor($pp);die($dn);}
elseif(isset($rnow)&&$rnow!=''){
$handle=opendir("data");
while($entry=readdir($handle)){
if(is_file("data/$entry")&&$entry!=".htaccess"){unlink("data/$entry");}
}closedir($handle);
$handle=opendir("backup");
while($entry=readdir($handle)){
if(is_file("backup/$entry")&&$entry!=".htaccess"){copy("backup/$entry","data/$entry");}
}closedir($handle);die($dn);}
elseif(isset($dnow)&&$dnow!=''){
$handle=opendir("backup");
while($entry=readdir($handle)){
if(is_file("backup/$entry")&&$entry!=".htaccess"){unlink("backup/$entry");}
}closedir($handle);die($dn);}
?>
<title><?php print $crl[51];?></title></head><body>
<table align="center" width="230" border="0" cellpadding="0" cellspacing="0"><tr><td class="q">
<table width="100%" border="0" cellspacing="1" cellpadding="5"><tr class="c">
<td colspan="2"><a href="backup.php?bnow=1" style="color:#ffffff;text-decoration:none"><b><?php print $crl[52];?></b></a></td></tr>
<tr bgcolor="#aaaaaa"><td class="f" nowrap> <?php print $crl[15];?></td><td class="f" nowrap> <?php print $crl[33];?></td></tr>
<?php
if(is_file("backup/when")){
$filw="backup/when";$aa=obp();if($aa!=''){
print "<tr class=\"a\"><td width=\"50%\" class=\"sm\" nowrap>$aa</td><td width=\"50%\" class=\"sm\" nowrap><a href=\"backup.php?rnow=1\">$crl[53]</a> <a href=\"backup.php?dnow=1\">$crl[34]</a></td>";
}}?></table></td></tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -