*/ /* Most recent version available @ : http://tomicki.net/ */ /* Version: 0.8 */ /* /* This program is free software; you can redistribute it and/or modify /* it under the terms of the GNU General Public License as published by /* the Free Software Foundation; either version 2 of the License, or /* (at your option) any later version. /* /* This program is distributed in the hope that it will be useful, /* but WITHOUT ANY WARRANTY; without even the implied warranty of /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the /* GNU Library General Public License for more details. /* /* You should have received a copy of the GNU General Public License /* along with this program; if not, write to the Free Software /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* */ ?>
"; echo ""; echo " "; for ($i = 0; $i < $size; ++$i) { $topdir = $dir . "/" . $rows[$i]['data']; echo "[UP]"; echo " "; echo ""; echo "..\n"; echo " "; echo "size (bytes)"; echo " "; echo ""; echo " "; echo ""; echo " "; } echo ""; } else if (is_file($dir)) { $pos = strrpos($dir, "/"); $topdir = substr($dir, 0, $pos); echo "", $topdir, "\n\n"; $file = file($dir); $size = count($file); for ($i = 0; $i < $size; ++$i) echo htmlentities($file[$i], ENT_QUOTES); } else { echo "bad file or unable to open"; } ?>"; if ($rows[$i]['dir']) { echo "[DIR]"; $file_type = "dir"; } else { echo "[FILE]"; $file_type = "file"; } echo " "; echo ""; echo "", $rows[$i]['data'], "\n"; echo " "; echo ""; echo filesize($topdir); echo " "; echo ""; echo "open ", $file_type, "\n"; echo " "; echo "
|
|