index.php 552 B

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