Bugfixe + alerte directory missing sur la liste des répertoires

This commit is contained in:
Alan Garcia 2013-02-08 10:53:34 +00:00
parent 999612142f
commit dc01e56205
1 changed files with 6 additions and 2 deletions

View File

@ -137,8 +137,12 @@ for($i=0;$i<$r["nsub"];$i++) {
?></a></div></td> ?></a></div></td>
<td><div class="retour-auto"><?php __($r['sub'][$i]['type_desc']); ?> <td><div class="retour-auto"><?php __($r['sub'][$i]['type_desc']); ?>
<?php <?php
if ($r["sub"][$i]['type'] === 'VHOST') { //if ($r["sub"][$i]['type'] === 'VHOST') {
echo '<br /><a href="bro_main.php?R='.urlencode($r["sub"][$i]["dest"]).'">'.htmlspecialchars($r["sub"][$i]["dest"]).'</a>'; if ( $dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {
$iidir=$r["sub"][$i]["dest"];
if ($iidir=='') $iidir='/';
echo '<br /><a href="bro_main.php?R='.urlencode($iidir).'">'.htmlspecialchars($iidir).'</a>';
if ( ! file_exists($bro->convertabsolute($iidir,0))) { echo " <i style='color:red;'>"._("Directory not found")."</i>"; }
} else { } else {
if ($r["sub"][$i]['type']) echo "<br />".htmlspecialchars($r["sub"][$i]["dest"]); if ($r["sub"][$i]['type']) echo "<br />".htmlspecialchars($r["sub"][$i]["dest"]);
} }