1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

22 lines
552 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 htmlentities($file) . "\n";
}
2013-05-11 21:17:06 +03:00
}
echo " </pre>\n</body>\n</html>\n";