index.php 522 B

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