$shou_id = ""; $shou_date = $date->GetNowFull(); $shou_text = ""; $shou_user_id = ""; } } if ($action == 2) { $date = new Date(); $date->SetConverted($shou_date); $date->ConvertToFullDate(); $shout = new Shout(); $shout->SetDatabase($database); $shout->SetDate($date->GetDate()); $shout->SetText($shou_text); $shout->SetUser($shou_user_id); if ($shout->Insert()) { $message = $screen_module_name . " incluído com sucesso."; $shou_id = ""; $shou_date = $date->GetNowFull(); $shou_text = ""; $shou_user_id = ""; } else { $message = "Problemas na operação."; } } if ($action == 3) { $date = new Date(); $date->SetConverted($shou_date); $date->ConvertToFullDate(); $shout = new Shout(); $shout->SetDatabase($database);