mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-16 15:09:01 +00:00
Merge pull request #419 from AGPDev/master
Visual improvment in vhosts list
This commit is contained in:
commit
ce3d9655a1
@ -26,7 +26,7 @@
|
||||
<th>DocumentRoot</th>
|
||||
<th>Valid</th>
|
||||
<th>URL</th>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user