forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (25 loc) · 804 Bytes
/
index.php
File metadata and controls
31 lines (25 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use function Hestiacp\quoteshellarg\quoteshellarg;
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
$TAB = "WEB";
$v_domain = quoteshellarg($_GET["domain"]);
$type = "access";
if ($_GET["type"] == "access") {
$type = "access";
}
if ($_GET["type"] == "error") {
$type = "error";
}
// Header
include $_SERVER["DOCUMENT_ROOT"] . "/templates/pages/list_weblog.php";
exec(HESTIA_CMD . "v-list-web-domain-" . $type . "log $user " . $v_domain, $output, $return_var);
if ($return_var == 0) {
foreach ($output as $file) {
echo htmlentities($file) . "\n";
}
}
echo "</pre>\n</div>\n</main>\n";
include $_SERVER["DOCUMENT_ROOT"] . "/templates/includes/app-footer.php";
echo "</div>\n";
include $_SERVER["DOCUMENT_ROOT"] . "/templates/includes/jump-to-top-link.php";
echo "</body>\n</html>\n";