Example #1
0
function hmib_host_type_remove()
{
    global $config;
    /* ================= input validation ================= */
    input_validate_input_number(get_request_var("id"));
    /* ==================================================== */
    if (read_config_option("remove_verification") == "on" && !isset($_GET["confirm"])) {
        include "./include/top_header.php";
        form_confirm("Are You Sure?", "Are you sure you want to delete the Host Type<strong>'" . db_fetch_cell("SELECT description FROM host WHERE id=" . $_GET["host_id"]) . "'</strong>?", "hmib_types.php", "hmib_types.php?action=remove&id=" . $_GET["id"]);
        include "./include/bottom_footer.php";
        exit;
    }
    if (read_config_option("remove_verification") == "" || isset($_GET["confirm"])) {
        hmib_host_type_remove($_GET["id"]);
    }
}
Example #2
0
function hmib_host_type_remove()
{
    global $config;
    /* ================= input validation ================= */
    get_filter_request_var('id');
    get_filter_request_var('host_id');
    /* ==================================================== */
    if (read_config_option('remove_verification') == 'on' && !isset_request_var('confirm')) {
        top_header();
        form_confirm(__('Are You Sure?'), __("Are you sure you want to delete the Host Type'%s'", db_fetch_cell('SELECT description FROM host WHERE id=' . get_request_var('host_id'))) . "'</strong>?", 'hmib_types.php', 'hmib_types.php?action=remove&id=' . get_request_var('id'));
        bottom_footer();
        exit;
    }
    if (read_config_option('remove_verification') == '' || isset_request_var('confirm')) {
        hmib_host_type_remove(get_request_var('id'));
    }
}