index.php 804 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. use function Hestiacp\quoteshellarg\quoteshellarg;
  3. include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
  4. $TAB = "WEB";
  5. $v_domain = quoteshellarg($_GET["domain"]);
  6. $type = "access";
  7. if ($_GET["type"] == "access") {
  8. $type = "access";
  9. }
  10. if ($_GET["type"] == "error") {
  11. $type = "error";
  12. }
  13. // Header
  14. include $_SERVER["DOCUMENT_ROOT"] . "/templates/pages/list_weblog.php";
  15. exec(HESTIA_CMD . "v-list-web-domain-" . $type . "log $user " . $v_domain, $output, $return_var);
  16. if ($return_var == 0) {
  17. foreach ($output as $file) {
  18. echo htmlentities($file) . "\n";
  19. }
  20. }
  21. echo "</pre>\n</div>\n</main>\n";
  22. include $_SERVER["DOCUMENT_ROOT"] . "/templates/includes/app-footer.php";
  23. echo "</div>\n";
  24. include $_SERVER["DOCUMENT_ROOT"] . "/templates/includes/jump-to-top-link.php";
  25. echo "</body>\n</html>\n";