diff --git a/web/add/db/index.php b/web/add/db/index.php index 2af37dde..9ca2cc7a 100644 --- a/web/add/db/index.php +++ b/web/add/db/index.php @@ -111,7 +111,7 @@ if (!empty($_POST['ok'])) { $v_db_email = $panel[$user]['CONTACT']; // List avaiable database types -$db_types = split(',', $_SESSION['DB_SYSTEM']); +$db_types = explode(',', $_SESSION['DB_SYSTEM']); // List available database servers exec (VESTA_CMD."v-list-database-hosts json", $output, $return_var); diff --git a/web/bulk/firewall/banlist/index.php b/web/bulk/firewall/banlist/index.php index fe7308a5..5fe4ef8a 100644 --- a/web/bulk/firewall/banlist/index.php +++ b/web/bulk/firewall/banlist/index.php @@ -20,14 +20,6 @@ if ($_SESSION['user'] != 'admin') { } $ipchain = $_POST['ipchain']; -/*if (!empty($_POST['ipchain'])) { - $ipchain = $_POST['ipchain']; - list($ip,$chain) = split(":",$ipchain); - $v_ip = escapeshellarg($ip); - $v_chain = escapeshellarg($chain); - -}*/ - $action = $_POST['action']; switch ($action) { @@ -37,7 +29,7 @@ switch ($action) { } foreach ($ipchain as $value) { - list($ip,$chain) = split(":",$value); + list($ip,$chain) = explode(":",$value); $v_ip = escapeshellarg($ip); $v_chain = escapeshellarg($chain); exec (VESTA_CMD.$cmd." ".$v_ip." ".$v_chain, $output, $return_var); diff --git a/web/edit/server/index.php b/web/edit/server/index.php index 14f4f672..2b9a043f 100644 --- a/web/edit/server/index.php +++ b/web/edit/server/index.php @@ -61,7 +61,7 @@ $v_backup_dir = "/backup"; if (!empty($_SESSION['BACKUP'])) $v_backup_dir = $_SESSION['BACKUP']; $v_backup_gzip = '5'; if (!empty($_SESSION['BACKUP_GZIP'])) $v_backup_gzip = $_SESSION['BACKUP_GZIP']; -$backup_types = split(",",$_SESSION['BACKUP_SYSTEM']); +$backup_types = explode(",",$_SESSION['BACKUP_SYSTEM']); foreach ($backup_types as $backup_type) { if ($backup_type == 'local') { $v_backup = 'yes';