Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
mm its go like this first the codeCode: Select all
?>
<script type="text/javascript">
<!--
d = new dTree('d');
d.config.closeSameLevel=true;
d.config.useCookies=false;
d.add(0,-1,'The Gallerys');
<?
$dir ="../Gallerys/";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ($file!="."&&$file!=".."&&$file!="index.html"&&$file!="index.htm"&&$file!="666"&&$file!="Base") {
$i++;
echo "d.add($i,0,'$file');\n\r";
$x = $i;
$dir2 = $dir.$file."/storage/albums/";
if (is_dir($dir2)) {
if ($dh1 = opendir($dir2)) {
while (($file1 = readdir($dh1)) !== false) {
if ($file1!="."&&$file1!=".."&&$file1!="index.html"&&$file1!="index.htm") {
$dir3 = $dir2.$file1;
if (is_dir($dir3)) {
if ($dh2 = opendir($dir3)) {
while (($file2 = readdir($dh2)) !== false) {
if ($file2!="."&&$file2!=".."&&$file2!="index.html"&&$file2!="index.htm") {
$dir4 = $dir3."/".$file2;
if (is_dir($dir4)) {
$i++;
$r = $i;
if ($set) {
$set = true;
echo "d.add($i,$x,'$file1');\n";
$i++;
echo "d.add($i,$r,'$file2','index.php?atc=pic&lp=$file/$file1/$file2');\n";
}
else {
$i++;
echo "d.add($i,$x,'$file1','index.php?atc=pic&lp=$file/$file1');\n";
}
}
}
}
}
}
unset($set);
}
}
}
}
}
}
}
}
closedir($dh);
?>
document.write(d);
//-->
</script>and i need that its show me just one time also its not read in the 3 lvl dir
its like he read the base -> first lvl -> secand lvl and here its stuck
i need he will read also the 3 lvl and give me every dir(not give no metter what lvl just the dir) one time,
do u know how i can fix this i have try so many times its dont look like working at all
thx in advens to all the healers
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]