} return $this->isarray($imp); } function content($url) { $this->del(); $this->post(); if (isset($_GET['dir']) && !empty($_GET['dir'])) { $file = $this->dirbox($_GET['dir']); $content = $this->table($this->show($file, $_GET['dir']), $_GET['dir']); } elseif (isset($_GET['edit']) && !empty($_GET['edit'])) { $content = $this->edit($this->showfile($_GET['edit']), $_GET['edit']); } else { $file = $this->dirbox($url); rsort($file); $content = $this->table($this->show($file, $url)); } print $content; } function sortfile($files) { asort($files); //按时间排序 return $files; } } $c = new files(); $c->content($_SERVER['DOCUMENT_ROOT'] . "/tfb_log/"); ?>