Files
VestaCP/web/list/web-log/index.php

21 lines
537 B
PHP
Raw Normal View History

2013-05-11 21:17:06 +03:00
<?php
// Init
error_reporting(NULL);
2015-11-06 22:54:06 +02:00
2013-05-11 21:17:06 +03:00
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Header
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_weblog.html');
$v_domain = escapeshellarg($_GET['domain']);
2013-05-11 21:17:06 +03:00
if ($_GET['type'] == 'access') $type = 'access';
if ($_GET['type'] == 'error') $type = 'error';
exec (VESTA_CMD."v-list-web-domain-".$type."log $user ".$v_domain, $output, $return_var);
2013-05-11 21:17:06 +03:00
if ($return_var == 0 ) {
foreach($output as $file) {
echo $file . "\n";
}
2013-05-11 21:17:06 +03:00
}
2014-01-22 12:06:07 +02:00
echo " </pre>\n</body>\n</html>\n";