echo " <td align="center" nowrap>| <a href="" href="""#" onclick="really('".urlencode($dir)."','".urlencode($file)."','你确定要删除 $file 目录吗? nn如果该目录非空,此次操作将会删除该目录下的所有文件!','1')">删除</a> | <a href="" href="""?action=rename&dir=".urlencode($dir)."&fname=".urlencode($file)."">改名</a> |</td>n";
echo "</tr>n";
$dir_i++;
} else {
if($file=="..") {
echo "<tr class=".getrowbg().">n";
echo " <td nowrap colspan="6" style="" style="""padding-left: 5px;"><a href="" href="""?dir=".urlencode($dir)."/".urlencode($file)."">返回上级目录</a></td>n";
echo "</tr>n";
}
}
}
}// while
@closedir($dirs);
?>
<tr bgcolor="#cccccc">
<td colspan="6" height="5"></td>
</tr>
<?
// 文件列表
$dirs=@opendir($dir);
$file_i = '0';
while ($file=@readdir($dirs)) {
$filepath="$dir/$file";
$a=@is_dir($filepath);
if($a=="0"){
$size=@filesize($filepath);
$size=$size/1024 ;
$size= @number_format($size, 3);
if (@filectime($filepath) == @filemtime($filepath)) {
$ctime=@date("Y-m-d H:i:s",@filectime($filepath));
$mtime=@date("Y-m-d H:i:s",@filemtime($filepath));
} else {
$ctime="<span class="redfont">".@date("Y-m-d H:i:s",@filectime($filepath))."</span>";
$mtime="<span class="redfont">".@date("Y-m-d H:i:s",@filemtime($filepath))."</span>";
}
@$fileperm=substr(base_convert(@fileperms($filepath),10,8),-4);







