} if ($action == 2) { $date = new Date(); $date->SetConverted($arti_date); $date->ConvertToDate(); if ($date->VerifyDate()) { $message = $date->GetMessage(); $message_position = 2; } else { $article = new Article(); $article->SetDatabase($database); $article->SetTitle($arti_title); $article->SetDate($date->GetDate()); $article->SetUser($arti_user_id); $article->SetSubject($arti_subj_id); if ($article->Insert()) { $date = new Date(); $message_position = 5; $message = $screen_module_name . " incluído com sucesso."; $arti_id = ""; $arti_title = ""; $arti_date = $date->GetNowFull(); $arti_user_id = ""; $arti_subj_id = ""; } else { $message_position = 5; $message = "Problemas na operação."; } } } if ($action == 3) {