mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
disable old php api
This commit is contained in:
parent
08513755b2
commit
93e9fe9f99
137 changed files with 137 additions and 9738 deletions
|
@ -1,17 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'BACKUP';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php');
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-user-backup-exclusions $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_backup_exclusions');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,26 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'BACKUP';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php');
|
||||
|
||||
// Data & Render page
|
||||
if (empty($_GET['backup'])){
|
||||
exec (VESTA_CMD."v-list-user-backups $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
unset($output);
|
||||
|
||||
render_page($user, $TAB, 'list_backup');
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-user-backup $user ".escapeshellarg($_GET['backup'])." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
unset($output);
|
||||
|
||||
render_page($user, $TAB, 'list_backup_detail');
|
||||
}
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,18 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'CRON';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php');
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-cron-jobs $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_cron');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,18 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'DB';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-databases $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_db');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,35 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'] . "/inc/main.php");
|
||||
|
||||
|
||||
if ((!isset($_SESSION['FILEMANAGER_KEY'])) || (empty($_SESSION['FILEMANAGER_KEY']))) {
|
||||
header("Location: /filemanager-not-purchased/");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Check login_as feature
|
||||
if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
|
||||
$user=$_SESSION['look'];
|
||||
}
|
||||
|
||||
if (empty($panel)) {
|
||||
$command = VESTA_CMD."v-list-user ".escapeshellarg($user)." 'json'";
|
||||
exec ($command, $output, $return_var);
|
||||
if ( $return_var > 0 ) {
|
||||
header("Location: /error/");
|
||||
exit;
|
||||
}
|
||||
$panel = json_decode(implode('', $output), true);
|
||||
}
|
||||
|
||||
$path_a = !empty($_REQUEST['dir_a']) ? htmlentities($_REQUEST['dir_a']) : '';
|
||||
$path_b = !empty($_REQUEST['dir_b']) ? htmlentities($_REQUEST['dir_b']) : '';
|
||||
$GLOBAL_JS = '<script type="text/javascript">GLOBAL.START_DIR_A = "' . $path_a . '";</script>';
|
||||
$GLOBAL_JS .= '<script type="text/javascript">GLOBAL.START_DIR_B = "' . $path_b . '";</script>';
|
||||
$GLOBAL_JS .= '<script type="text/javascript">GLOBAL.ROOT_DIR = "' . $panel[$user]['HOME'] . '";</script>';
|
||||
|
||||
|
||||
// Footer
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/file_manager/main.php');
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,26 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'DNS';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data & Render page
|
||||
if (empty($_GET['domain'])){
|
||||
exec (VESTA_CMD."v-list-dns-domains ".escapeshellarg($user)." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
render_page($user, $TAB, 'list_dns');
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-dns-records ".escapeshellarg($user)." ".escapeshellarg($_GET['domain'])." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
render_page($user, $TAB, 'list_dns_rec');
|
||||
}
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,24 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
echo '<br> Favorites: <br>';
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-user-favourites ".$_SESSION['user']." json", $output, $return_var);
|
||||
|
||||
|
||||
// print_r(implode('', $output));
|
||||
// $json = '{ "Favourites": { "USER": "", "WEB": "bulletfarm.com", "DNS": "", "MAIL": "", "DB": "", "CRON": "", "BACKUP": "", "IP": "", "PACKAGE": "", "FIREWALL": ""}}';
|
||||
// $data = json_decode($json, true);
|
||||
|
||||
|
||||
$data = json_decode(implode('', $output).'}', true);
|
||||
$data = array_reverse($data,true);
|
||||
|
||||
print_r($data);
|
||||
// $data = array_reverse($data,true);
|
||||
|
||||
// $data = json_decode(implode('', $output), true);
|
||||
|
||||
?>
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,24 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'FIREWALL';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header("Location: /list/user");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-firewall-ban json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_firewall_banlist');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,24 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'FIREWALL';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header("Location: /list/user");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-firewall json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_firewall');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,8 +1 @@
|
|||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['user'])) {
|
||||
header("Location: /list/user/");
|
||||
} else {
|
||||
header("Location: /login/");
|
||||
}
|
||||
?>
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,25 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
|
||||
$TAB = 'IP';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header('Location: /list/user');
|
||||
exit;
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-sys-ips json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_ip');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,16 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'LOG';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-user-log $user json", $output, $return_var);
|
||||
check_error($return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_log');
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,26 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'MAIL';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data & Render page
|
||||
if (empty($_GET['domain'])){
|
||||
exec (VESTA_CMD."v-list-mail-domains ".escapeshellarg($user)." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
render_page($user, $TAB, 'list_mail');
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-mail-accounts ".escapeshellarg($user)." ".escapeshellarg($_GET['domain'])." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
render_page($user, $TAB, 'list_mail_acc');
|
||||
}
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,34 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
|
||||
if($_REQUEST['ajax'] == 1){
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-user-notifications $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
foreach($data as $key => $note){
|
||||
$note['ID'] = $key;
|
||||
$data[$key] = $note;
|
||||
}
|
||||
echo json_encode($data);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$TAB = 'NOTIFICATIONS';
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-user-notifications $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_notifications');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,24 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
|
||||
$TAB = 'PACKAGE';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header("Location: /list/user");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-user-packages json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_packages');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,27 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'RRD';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header('Location: /list/user');
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!empty($_GET['period'])) {
|
||||
if ($_GET['period']!="daily" && $_GET['period']!="weekly" && $_GET['period']!="monthly" && $_GET['period']!="yearly") unset($_GET['period']);
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-sys-rrd json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_rrd');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,128 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'SERVER';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header("Location: /list/user");
|
||||
exit;
|
||||
}
|
||||
|
||||
// CPU info
|
||||
if (isset($_GET['cpu'])) {
|
||||
$TAB = 'CPU';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-cpu-status', $output, $return_var);
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// Memory info
|
||||
if (isset($_GET['mem'])) {
|
||||
$TAB = 'MEMORY';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-memory-status', $output, $return_var);
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// Disk info
|
||||
if (isset($_GET['disk'])) {
|
||||
$TAB = 'DISK';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-disk-status', $output, $return_var);
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// Network info
|
||||
if (isset($_GET['net'])) {
|
||||
$TAB = 'NETWORK';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-network-status', $output, $return_var);
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// Web info
|
||||
if (isset($_GET['web'])) {
|
||||
$TAB = 'WEB';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-web-status', $output, $return_var);
|
||||
foreach($output as $file) {
|
||||
$file=str_replace('border="0"', 'border="1"', $file);
|
||||
echo $file . "\n";
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// DNS info
|
||||
if (isset($_GET['dns'])) {
|
||||
$TAB = 'DNS';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-dns-status', $output, $return_var);
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// Mail info
|
||||
if (isset($_GET['mail'])) {
|
||||
$TAB = 'MAIL';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-mail-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// DB info
|
||||
if (isset($_GET['db'])) {
|
||||
$TAB = 'DB';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-db-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-sys-info json", $output, $return_var);
|
||||
$sys = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
exec (VESTA_CMD."v-list-sys-services json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_services');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,37 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'STATS';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data
|
||||
if ($user == 'admin') {
|
||||
if (empty($_GET['user'])) {
|
||||
exec (VESTA_CMD."v-list-users-stats json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
} else {
|
||||
$v_user = escapeshellarg($_GET['user']);
|
||||
exec (VESTA_CMD."v-list-user-stats $v_user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
}
|
||||
|
||||
exec (VESTA_CMD."v-list-sys-users json", $output, $return_var);
|
||||
$users = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-user-stats $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
}
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_stats');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,26 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'UPDATES';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header('Location: /list/user');
|
||||
exit;
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-sys-vesta-updates json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
exec (VESTA_CMD."v-list-sys-vesta-autoupdate plain", $output, $return_var);
|
||||
$autoupdate = $output['0'];
|
||||
unset($output);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_updates');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,21 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'USER';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data
|
||||
if ($user == 'admin') {
|
||||
exec (VESTA_CMD . "v-list-users json", $output, $return_var);
|
||||
} else {
|
||||
exec (VESTA_CMD . "v-list-user ".$user." json", $output, $return_var);
|
||||
}
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_user');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,21 +1 @@
|
|||
<?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";
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
|
@ -1,18 +1 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'WEB';
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-web-domains $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
$ips = json_decode(shell_exec(VESTA_CMD.'v-list-sys-ips json'), true);
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, 'list_web');
|
||||
|
||||
// Back uri
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue