Merge pull request #419 from AGPDev/master

Visual improvment in vhosts list
This commit is contained in:
cytopia 2018-11-08 18:59:40 +01:00 committed by GitHub
commit ce3d9655a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,7 @@
<th>DocumentRoot</th>
<th>Valid</th>
<th>URL</th>
</th>
</tr>
</thead>
<tbody>
<?php

View File

@ -65,7 +65,7 @@ class Httpd extends BaseClass implements BaseInterface
while (false !== ($directory = readdir($handle))) {
if ($this->_is_valid_dir($docRoot . DIRECTORY_SEPARATOR . $directory) && $directory != '.' && $directory != '..') {
$vhosts[] = array(
$vhosts[$directory] = array(
'name' => $directory,
'domain' => $directory .'.' . $this->getTldSuffix(),
'href' => 'http://' . $directory . '.' . $this->getTldSuffix()
@ -73,6 +73,9 @@ class Httpd extends BaseClass implements BaseInterface
}
}
}
ksort($vhosts);
return $vhosts;
}