index.php 606 B

1234567891011121314151617181920212223242526
  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</body>\n</html>\n";