Problem with comparison.
/Web/modules.php |
---|
0,0 → 1,79 |
<html> |
<head> |
<title></title> |
</head> |
<body> |
<?php |
/* KONFIGURACE */ |
$path = '/var/www/Web'; |
$www = 'http://www.mlab.cz'; |
$folder = '/../Modules'; |
/*$img = 'preview.jpg';*/ |
$info = 'ProjectInfo.xml1'; |
/* KONEC KONFIGURACE */ |
$adresar = opendir($path.$folder); |
while ($soubor = readdir($adresar)){ |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
$img = $soubor."_Small.jpg"; |
?> |
<table border=0> |
<tr><td><b><?php echo $soubor; ?></b></td></tr> |
<?php |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
?> |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$img; ?>" width="150"></td></tr> |
<tr><td><?php include $path.$folder.'/'.$soubor."/".$info; ?></td></tr> |
<?php |
} else { |
?> |
<tr><td> |
<?php |
$adresar1 = opendir($path.$folder."/".$soubor); |
while ($soubor1 = readdir($adresar1)){ |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { |
$img = $soubor1."_Small.jpg"; |
?> |
<table border=0> |
<tr><td><?php echo $soubor1; ?></td></tr> |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td></tr> |
<tr><td><?php include $path.$folder.'/'.$soubor."/".$soubor1."/".$info; ?></td></tr> |
</table> |
</td></tr> |
<?php |
}} |
} |
?> |
</table> |
<?php |
} |
} |
?> |
</body> |
</html> |