mirror of
https://github.com/myvesta/vesta
synced 2025-08-22 06:14:21 -07:00
30 lines
696 B
PHP
30 lines
696 B
PHP
<?php
|
|
// Init
|
|
//error_reporting(NULL);
|
|
session_start();
|
|
$TAB = 'IP';
|
|
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
|
|
// Header
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
|
|
|
|
// Panel
|
|
top_panel($user,$TAB);
|
|
|
|
// Data
|
|
if ($_SESSION['user'] == 'admin') {
|
|
|
|
exec (VESTA_CMD."v_list_sys_ips json", $output, $return_var);
|
|
check_error($return_var);
|
|
$data = json_decode(implode('', $output), true);
|
|
$data = array_reverse($data);
|
|
unset($output);
|
|
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_ip.html');
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_ip.html');
|
|
}
|
|
|
|
// Footer
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|