mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Integrated new api interface.
This commit is contained in:
parent
4a9bfc94ad
commit
4306a4fb4f
116 changed files with 10371 additions and 0 deletions
29
web/api/v1/list/web-log/index.php
Normal file
29
web/api/v1/list/web-log/index.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
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';
|
||||
|
||||
$data = exec (VESTA_CMD."v-list-web-domain-".$type."log $user ".$v_domain, $output, $return_var);
|
||||
|
||||
echo json_encode(
|
||||
array(
|
||||
'data' => $data
|
||||
)
|
||||
);
|
||||
|
||||
// if ($return_var == 0 ) {
|
||||
// foreach($output as $file) {
|
||||
// echo htmlentities($file) . "\n";
|
||||
// }
|
||||
// }
|
||||
// echo " </pre>\n</body>\n</html>\n";
|
Loading…
Add table
Add a link
Reference in a new issue