| ";
echo " $wdp2";
echo "
";
$idxfile=$wd . "/index.txt";
if (file_exists($idxfile) && $file=fopen($idxfile,"r"))
{
while ($line = fgets($file,4096))
{
echo $line;
}
echo "\n";
fclose($file);
}
reset($fnlist);
$indent="";
while ($fn = key($fnlist))
{
next($fnlist);
$full_fn=$wd."/".$fn;
if (is_dir($full_fn)) {
if($fn!="."&&$fn!=".."&&$fn!="siteimages"&&$fn!="thumbnails") {
$newwd=rawurlencode($wd);
$newfn=rawurlencode($fn);
echo "$indent$fn\n";
}
if($fn=="..") {
if ($wd==".")
{
echo "root/\n";
$indent.=" ";
}
else
{
$pd_arr=split("/",$wd);
for($g=sizeof($pd_arr)-1;$g>=1;$g--)
{
$pd=".";
for($i=1;$i$parent";
}
echo "/" . $pd_arr[sizeof($pd_arr)-1] . "/\n";
$indent.=" ";
}
}
}
}
$hasprinthr=(int)0;
reset($fnlist);
while ($fn = key($fnlist))
{
next($fnlist);
$full_fn=$wd."/".$fn;
$fs=floor(filesize($full_fn)/1000);
if (!is_dir($full_fn)&&eregi("\.jpg$",$fn)) {
$fnu=rawurlencode($fn);
$newwd=rawurlencode($wd);
$tmp="";
$fn=substr($fn,0,56);
if (!$hasprinthr) { $hasprinthr=1; echo " \n"; }
echo "$tmp $tmp$fn\n\n";
}
}
reset($fnlist);
while ($fn = key($fnlist))
{
next($fnlist);
$full_fn=$wd."/".$fn;
$fs=floor(filesize($full_fn)/1000);
if (!is_dir($full_fn) && eregi("\.(wav|mp2|mp3)$",$fn)) {
if (!$hasprinthr) { $hasprinthr=1; echo " \n"; }
$fnu=rawurlencode($fn);
$newwd=str_replace("%2F","/",rawurlencode($wd));
echo "AUDIO: $fn ($fs"."k)\n";
}
}
reset($fnlist);
while ($fn = key($fnlist))
{
next($fnlist);
$full_fn=$wd."/".$fn;
$fs=floor(filesize($full_fn)/1000);
if (!is_dir($full_fn) && eregi("\.(avi|mov|mpg|mpeg)$",$fn)) {
if (!$hasprinthr) { $hasprinthr=1; echo " \n"; }
$fnu=rawurlencode($fn);
$newwd=str_replace("%2F","/",rawurlencode($wd));
echo "VIDEO: $fn ($fs"."k)\n";
}
}
reset($fnlist);
while ($fn = key($fnlist))
{
next($fnlist);
$full_fn=$wd."/".$fn;
if (!is_dir($full_fn) && eregi("\.(asm|inc|c|cpp|h)$",$fn)) {
if (!$hasprinthr) { $hasprinthr=1; echo " \n"; }
$fnu=rawurlencode($fn);
$newwd=str_replace("%2F","/",rawurlencode($wd));
echo "CODE: $fn\n";
}
}
reset($fnlist);
while ($fn = key($fnlist))
{
next($fnlist);
$full_fn=$wd."/".$fn;
if (!is_dir($full_fn) && eregi("\.TXT$",$fn) && $fn != "index.txt") {
$fnu=rawurlencode($fn);
$newwd=rawurlencode($wd);
if (!$hasprinthr) { $hasprinthr=1; echo " \n"; }
echo "TEXT: $fn\n";
}
}
echo " \n";
if ($width!="")
echo "Image rescaling set to $width pixels wide. ";
else
echo "Image rescaling not enabled. ";
}
echo "
";
if (!isset($op))
{
echo " | |
";
echo "