$privilege = new Privilege(); $privilege->SetDatabase($database); $privilege->SetId($priv_id); $privilege->SetModule($priv_modu_id); $privilege->SetProfile($priv_prof_id); if ($privilege->Update()) { $message = $screen_module_name . " alterado com sucesso."; } else { $message = "Problemas na operação."; } } if ($action == 4) { $privilege = new Privilege(); $privilege->SetDatabase($database); $privilege->SetId($priv_id); if ($privilege->Delete()) { $message = $screen_module_name . " excluído com sucesso."; $priv_id = ""; $priv_modu_id = ""; $priv_prof_id = ""; } else { $message = "Problemas na operação."; } } } ?> <html> <head> <title>Schifer's</title> <link rel="stylesheet" type="text/css" href="/schifers/css/schifers.css">