DownZip.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("class/functions.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"dbdata");
  20. $bakzippath=$public_r['bakdbzip'];
  21. $p=ehtmlspecialchars($_GET['p']);
  22. $f=ehtmlspecialchars($_GET['f']);
  23. $file=$bakzippath."/".$f;
  24. ?>
  25. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  26. <html>
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  29. <title>下载压缩包</title>
  30. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  31. </head>
  32. <body>
  33. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  34. <tr class="header">
  35. <td height="30"> <div align="center">下载压缩包(目录:
  36. <?=$p?>
  37. )</div></td>
  38. </tr>
  39. <tr>
  40. <td height="30" bgcolor="#FFFFFF">
  41. <div align="center">[<a href="<?=$file?>">下载压缩包</a>]</div></td>
  42. </tr>
  43. <tr>
  44. <td height="30" bgcolor="#FFFFFF">
  45. <div align="center">[<a href="phome.php?f=<?=$f?>&phome=DelZip<?=$ecms_hashur['href']?>" onclick="return confirm('确认要删除?');">删除压缩包</a>]</div></td>
  46. </tr>
  47. <tr>
  48. <td height="30" bgcolor="#FFFFFF">
  49. <div align="center">(<font color="#FF0000">说明:安全起见,下载完毕请马上删除压缩包.</font>)</div></td>
  50. </tr>
  51. </table>
  52. </body>
  53. </html>