mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
added web-log viewer
This commit is contained in:
parent
f789b7fc91
commit
78d963eaee
12 changed files with 302 additions and 1 deletions
20
web/list/web-log/index.php
Normal file
20
web/list/web-log/index.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
session_start();
|
||||
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 $file . "\n";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue