if ($privilege->Insert()) {
         $message = $screen_module_name . " incluído com sucesso.";
         $priv_id = "";
         $priv_modu_id = "";
         $priv_prof_id = "";
     } else {
         $message = "Problemas na operação.";
     }
 }
 if ($action == 3) {
     $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 {