mirror of
https://github.com/myvesta/vesta.git
synced 2024-11-21 13:00:11 -08:00
1eb52371bb
quick fix for issue #638, maybe check on other places where this is possible?
22 lines
552 B
PHP
22 lines
552 B
PHP
<?php
|
|
// Init
|
|
error_reporting(NULL);
|
|
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
// Header
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_weblog.html');
|
|
|
|
$v_domain = escapeshellarg($_GET['domain']);
|
|
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);
|
|
|
|
if ($return_var == 0 ) {
|
|
foreach($output as $file) {
|
|
echo htmlentities($file) . "\n";
|
|
}
|
|
}
|
|
echo " </pre>\n</body>\n</html>\n";
|