info.php
资源名称:BBWPS.rar [点击查看]
上传用户:yttaitong
上传日期:2009-05-10
资源大小:128k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
PHP
- <?PHP
- /*
- [BBWPS!] (C)2006-2010 小蜜蜂版权所有.
- This is NOT a freeware, use is subject to license terms
- 时间:2007年12月
- 描述:数据库文件备份信息
- */
- error_reporting(0);
- require_once("global.php");
- //获得WEB的绝对路径
- $absultePath=$_SERVER['PHP_SELF'];
- $absultePath=str_replace("/info.php","",$absultePath);
- $absulteRoot=str_replace("/admin/mysqltool","",$absultePath);
- $p=new Template("./templates");
- $timeS=$_GET["time"];
- $time=preg_replace("/s|-|:/","",$timeS);
- require_once("../../backup/".$time."/backup.php");
- foreach ($backup as $k=>$v){
- $p->set_file("handle_in","in_row.html");
- $p->set_var("time",$timeS);
- $p->set_var("file",$absulteRoot."/backup/$time/".$k.".sql");
- $filesize=filesize("../../backup/".$time."/".$k.".sql");
- $p->set_var("size",$filesize);
- $p->set_var("file1","../../backup/".$time."/".$k.".sql");
- $p->parse("list","handle_in",true);
- }
- $p->set_file("handle","info.html");
- $p->parse("output","handle");
- $p->p("output");
- ?>