Problem with comparison.
/Web/modules.php
0,0 → 1,82
<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")) {
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; }
if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
echo "<tr><td>\n";
xml_parse ($path.$folder.'/'.$soubor."/".$info);
echo "\n</td></tr>\n";
}
 
} 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>
<?php
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
?>
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td></tr>
<?php
}
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) {
echo "<tr><td>\n";
xml_parse ($path.$folder.'/'.$soubor."/".$soubor1."/".$info);
echo "\n</td></tr>\n";
}
?>
</table>
</td></tr>
<?php
}
}
}
 
?>
</table>
<?php
}
}
?>
 
</body>
</html>