Ejemplo n.º 1
0
 echo "<option value=\"addlist\">文件清单(加入)</option>\n";
 echo "<option value=\"sendfile\">发送文件(邮箱)</option>\n";
 if (function_exists("shell_exec")) {
     echo "<option value=\"shell_exec\">终端命令(高级)</option>\n";
 }
 echo "</select>\n";
 echo "<input type=\"submit\" value=\"执行\" />\n";
 echo "(<a href=\"?path=" . urlencode($path) . "&select{$multiple}\">全选</a>|<a href=\"?path=" . urlencode($path) . "{$multiple}\">消选</a>)\n";
 echo "</div>\n";
 if (count($data[0]) != 0) {
     echo "\n<div class=\"like\">目录列表</div>\n";
     foreach ($data[0] as $tmp) {
         $filesystem->chpath($tmp);
         echo "<div class=\"love\">\n";
         echo "<input type=\"checkbox\" name=\"flist[]\" value=\"" . urlencode($tmp) . "\" {$select}/>\n";
         echo ($perms = $filesystem->getperms()) == false ? "[????]" : "[{$perms}]";
         echo "<a href=\"?path=" . urlencode($tmp) . "{$multiple}\">" . ___basename($tmp) . "</a>\n";
         if (is_link($tmp)) {
             echo "[&nbsp;Link&nbsp;-&gt;&nbsp;" . readlink($tmp) . "&nbsp;]";
         }
         echo "(<a href=\"./rename.php?path=" . urlencode($tmp) . "\">命名</a>|<a href=\"./autocp.php?path=" . urlencode($tmp) . "\">复件</a>)\n";
         echo "</div>\n";
     }
 }
 if (count($data[1]) != 0) {
     echo "\n<div class=\"like\">文件列表</div>\n";
     foreach ($data[1] as $tmp) {
         $filesystem->chpath($tmp);
         $iget = $filesystem->getpath();
         echo "<div class=\"love\">\n";
         echo "<input type=\"checkbox\" name=\"flist[]\" value=\"" . urlencode($tmp) . "\" {$select}/>\n";
Ejemplo n.º 2
0
    header("Location: ./404.php");
    exit;
}
$fs = new filesystem($path);
xhtml_head(___shortpath($path));
if (!($data = $fs->getpath($path))) {
    echo "<div class=\"error\">\n";
    echo "[<a href=\"./dlym.php?path=" . urlencode($getcwd) . "\">返回目录</a>]\n";
    echo "</div>\n";
} else {
    echo "<div class=\"like\">\n";
    echo "<a href=\"./dlym.php?path=" . urlencode(dirname($path)) . "\">返回目录</a>文件详情\n";
    echo "</div>\n";
    echo "<div class=\"love\">\n";
    echo "文件名称:" . ___basename($path) . "<br />\n";
    if ($perms = $fs->getperms()) {
        echo "文件权限:{$perms}<br />\n";
    }
    echo "文件大小:" . ___filesize($data['size']) . "<br />\n";
    echo "所有者ID:{$data['uid']}<br />\n";
    echo "所有组ID:{$data['gid']}<br />\n";
    if (function_exists("mime_content_type")) {
        echo "文件类型:" . mime_content_type($path) . "<br />\n";
    }
    echo "上次访问:" . gmdate("Y-m-d H:i:s", $data['atime'] + TIME) . "<br />\n";
    echo "上次修改:" . gmdate("Y-m-d H:i:s", $data['mtime'] + TIME) . "<br />\n";
    echo "上次改变:" . gmdate("Y-m-d H:i:s", $data['ctime'] + TIME) . "<br />\n";
    if (is_link($path)) {
        echo "链接指向:" . readlink($path) . "<br />\n";
    }
    if ($finfo = $fs->getfinfo()) {