index.php 621 B

12345678910111213141516171819202122232425262728
  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.html');
  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";