// update the last check time // to midnight of the current day // if( $goodtest ) if (true) { set_site_preference('lastcmsversioncheck', strtotime("23:59:55")); } } if ($cms_is_uptodate == 0 || $do_getpref == 1 && get_site_preference('cms_is_uptodate', 1) == 0) { // it wasn't up-to-date last time either $themeObject->AddNotification(1, 'Core', lang('new_version_available')); } // Display a warning about mail settings. if (isset($gCms->modules['CMSMailer']) && isset($gCms->modules['CMSMailer']['object']) && isset($gCms->modules['CMSMailer']['installed']) && get_site_preference('mail_is_set', 0) == 0) { $urlCMSMailer = 'moduleinterface.php?' . CMS_SECURE_PARAM_NAME . '=' . $_SESSION[CMS_USER_KEY] . '&module=CMSMailer'; $themeObject->AddNotification(1, 'Core', lang('warning_mail_settings', $urlCMSMailer)); } } // and display the dashboard. $themeObject->DisplayNotifications(3); // todo, a preference. // we've removed the Recent Pages stuff, but other things could go in this box // so I'll leave some of the logic there. We can remove it later if it makes sense. SjG $marks = get_preference($userid, 'bookmarks'); if ($marks) { $themeObject->StartRighthandColumn(); if ($marks) { $themeObject->DoBookmarks(); } $themeObject->EndRighthandColumn(); } }