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');
|
|
|
|
|
2015-12-11 21:14:49 +02:00
|
|
|
$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';
|
|
|
|
|
2015-12-11 21:14:49 +02:00
|
|
|
exec (VESTA_CMD."v-list-web-domain-".$type."log $user ".$v_domain, $output, $return_var);
|
2013-05-11 21:17:06 +03:00
|
|
|
|
2015-12-11 21:14:49 +02:00
|
|
|
if ($return_var == 0 ) {
|
|
|
|
foreach($output as $file) {
|
2016-02-19 12:53:30 +01:00
|
|
|
echo htmlentities($file) . "\n";
|
2015-12-11 21:14:49 +02:00
|
|
|
}
|
2013-05-11 21:17:06 +03:00
|
|
|
}
|
2016-02-19 12:53:30 +01:00
|
|
|
echo " </pre>\n</body>\n</html>\n";
|