Files
VestaCP/web/list/ip/index.php

26 lines
633 B
PHP
Raw Normal View History

2012-05-15 15:51:43 +03:00
<?php
// Init
2012-06-21 12:55:22 +03:00
error_reporting(NULL);
2012-05-15 15:51:43 +03:00
session_start();
$TAB = 'IP';
2012-10-01 17:29:49 +03:00
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
2012-05-15 15:51:43 +03:00
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);
2012-05-15 15:51:43 +03:00
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_ip.html');
}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');