index.php 571 B

123456789101112131415161718192021222324252627
  1. <?php
  2. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  3. $TAB = "WEB";
  4. $v_domain = escapeshellarg($_GET['domain']);
  5. $type = 'access';
  6. if ($_GET['type'] == 'access') {
  7. $type = 'access';
  8. }
  9. if ($_GET['type'] == 'error') {
  10. $type = 'error';
  11. }
  12. // Header
  13. include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_weblog.html');
  14. exec(HESTIA_CMD."v-list-web-domain-".$type."log $user ".$v_domain, $output, $return_var);
  15. if ($return_var == 0) {
  16. foreach ($output as $file) {
  17. echo htmlentities($file) . "\n";
  18. }
  19. }
  20. echo " </pre>\n</body>\n</html>\n";