【www.gdgbn.com--SAP】

这个类不安全,需要修改
/**
*HttpDownLoad
*
*@author sanshi
QQ:35047205
Email:sanshi0815@tom.com
MSN:sanshi0815@tom.com
*
*@version 1.0.0 2005/07/10
*
*@deprecated
1.http协议下载

*/
class HttpDownLoad
{
var $rootDom="D:/jsp/";//设定下载目录,需要绝对路径
var $openDir; //打开绝对的路径
var $open; //将要打开的目录
var $enter=3; //设置换行
var $table_w=800; //设置表格宽度
var $div=array(); //设置目录存放数组
var $file=array(); //设置文件存放数组
var $link=array(); //设置连接文件数组
//构造函数
function HttpDownLoad()
{
$this->getAll();
$this->head();
$this->printArray($this->dir,"目录");
$this->printArray($this->file,"文件");
$this->foot();
}
//设置输出标题头
function head()
{
echo "table_w."" align="center"> ".
"www.litou.com 专用版".
"作    者: 叁  石".
"联系方式:sanshi0815@tom.com>".
"  Q  Q  : 35047205";
}
//设置结束尾
function foot()
{
}
//取得将要打开的目录
function getOpen()
{
$open=$_GET["dir"];
$this->open=$open;
if(!isset($open)||empty($open))
{

本文来源:http://www.gdgbn.com/qiyexinxihua/1906/