mirror of
https://github.com/cytopia/devilbox.git
synced 2025-06-06 17:31:49 +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>DocumentRoot</th>
|
||||||
<th>Valid</th>
|
<th>Valid</th>
|
||||||
<th>URL</th>
|
<th>URL</th>
|
||||||
</th>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
@ -65,7 +65,7 @@ class Httpd extends BaseClass implements BaseInterface
|
|||||||
while (false !== ($directory = readdir($handle))) {
|
while (false !== ($directory = readdir($handle))) {
|
||||||
if ($this->_is_valid_dir($docRoot . DIRECTORY_SEPARATOR . $directory) && $directory != '.' && $directory != '..') {
|
if ($this->_is_valid_dir($docRoot . DIRECTORY_SEPARATOR . $directory) && $directory != '.' && $directory != '..') {
|
||||||
|
|
||||||
$vhosts[] = array(
|
$vhosts[$directory] = array(
|
||||||
'name' => $directory,
|
'name' => $directory,
|
||||||
'domain' => $directory .'.' . $this->getTldSuffix(),
|
'domain' => $directory .'.' . $this->getTldSuffix(),
|
||||||
'href' => 'http://' . $directory . '.' . $this->getTldSuffix()
|
'href' => 'http://' . $directory . '.' . $this->getTldSuffix()
|
||||||
@ -73,6 +73,9 @@ class Httpd extends BaseClass implements BaseInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ksort($vhosts);
|
||||||
|
|
||||||
return $vhosts;
|
return $vhosts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user