Files
VestaCP/web/delete/ip/index.php
Serghey Rodin c05fb35800 ip pages
2012-06-30 00:37:48 +03:00

17 lines
368 B
PHP

<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['ip'])) {
$v_ip = escapeshellarg($_GET['ip']);
exec (VESTA_CMD."v_delete_sys_ip ".$v_ip, $output, $return_var);
unset($output);
}
}
header("Location: /list/ip/");