function user_delete() { if (g("crud") == "d") { $sql = "DELETE FROM users WHERE user_id = " . g("user_id"); $query = mysql_query($sql); remove_get_var_of_adress_bar(); } }
function submit_buttons_remove_get_var() { if (isset($_POST["cancel"]) || isset($_POST["user_update"])) { remove_get_var_of_adress_bar(); } else { if (isset($_POST["logout"])) { session_destroy(); remove_get_var_of_adress_bar(); } } }