$message = "Problemas na operação."; } } } if ($action == 3) { $date = new Date(); $date->SetConverted($page_date); $date->ConvertToFullDate(); if ($date->VerifyDate()) { $message = $date->GetMessage(); $message_position = 2; } else { $page = new Page(); $page->SetDatabase($database); $page->SetId($page_id); $page->SetNumber($page_number); $page->SetDate($date->GetDate()); $page->SetUser($page_user_id); $page->SetArticle($page_arti_id); if ($page->Update()) { $message_position = 5; $message = $screen_module_name . " alterada com sucesso."; } else { $message_position = 5; $message = "Problemas na operação."; } } } if ($action == 4) { $page = new Page(); $page->SetDatabase($database);