function mactrack_macw_remove() { global $config; /* ================= input validation ================= */ get_filter_request_var('mac_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 watched Mac Address %s?', db_fetch_cell_prepared('SELECT name FROM mac_track_macwatch WHERE mac_id=?', array(get_request_var('mac_id')))), 'mactrack_macwatch.php', 'mactrack_macwatch.php?action=remove&mac_id=' . get_request_var('mac_id')); bottom_footer(); exit; } if (read_config_option('remove_verification') == '' || isset_request_var('confirm')) { api_mactrack_macw_remove(get_request_var('mac_id')); } }
function mactrack_macw_remove() { global $config; /* ================= input validation ================= */ input_validate_input_number(get_request_var("mac_address")); /* ==================================================== */ 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 watched Mac Address <strong>'" . db_fetch_cell("SELECT name FROM mac_track_macwatch WHERE mac_id" . $_GET["mac_id"]) . "'</strong>?", "mactrack_macwatch.php", "mactrack_macwatch.php?action=remove&mac_id=" . $_GET["mac_id"]); include("./include/bottom_footer.php"); exit; } if ((read_config_option("remove_verification") == "") || (isset($_GET["confirm"]))) { api_mactrack_macw_remove($_GET["mac_id"]); } }