|
|
@@ -69,7 +69,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
{ |
|
|
|
if(preg_match("#^_(.*)$#i",$file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 |
|
|
|
if(preg_match("#^\.(.*)$#i",$file)) continue; |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=file_manage_main.php?activepath=".urlencode("$activepath/$file")."><img src='../static/web/img/dir.gif'>$file</a></td> |
|
|
|
<td> </td> |
|
|
@@ -84,7 +84,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(gif|png)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/gif.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -99,7 +99,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(jpg)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/jpg.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -114,7 +114,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(swf|fla|fly)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/flash.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -129,7 +129,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(zip|rar|tar.gz)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/zip.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -144,7 +144,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(exe)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/exe.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -159,7 +159,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(mp3|wma)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/mp3.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -174,7 +174,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(wmv|api)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/wmv.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -189,7 +189,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
} |
|
|
|
else if(preg_match("#\.(rm|rmvb)#i",$file)) |
|
|
|
{ |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/rm.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -205,7 +205,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
else if(preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) |
|
|
|
{ |
|
|
|
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); |
|
|
|
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/txt.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -239,7 +239,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
else if(preg_match("#\.(php)#i",$file)) |
|
|
|
{ |
|
|
|
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/php.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -256,7 +256,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
else if(preg_match("#\.(js)#i",$file)) |
|
|
|
{ |
|
|
|
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/js.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -273,7 +273,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
else if(preg_match("#\.(css)#i",$file)) |
|
|
|
{ |
|
|
|
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td> |
|
|
|
<a href=$activeurl/$file target=_blank><img src='../static/web/img/css.gif'>$file</a></td> |
|
|
|
<td>$filesize KB</td> |
|
|
@@ -287,7 +287,7 @@ while(($file = $dh->read()) !== false) |
|
|
|
</tr>"; |
|
|
|
$files[] = $line; |
|
|
|
} else { |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
$line = "\n<tr height='26' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> |
|
|
|
<td><a href=$activeurl/$file target=_blank>$file</td> |
|
|
|
<td>$filesize KB</td> |
|
|
|
<td align='center'>$filetime</td> |
|
|
|