+ $curtime = time();
+
+ if ($G_with_splash &&
+ ($$CO_splashdate < $curtime - $G_splash_interval ||
+ $$CO_splashdate > $curtime)) {
+ $is_super = $user->flags & USER_FLAG_TY_SUPER;
+ $ret .= show_notify_ex(str_replace("\n", " ", $G_splash_content[$G_lang]),
+ ($is_super ? 0 : $G_splash_timeout),
+ $mlang_indrd[($is_super ? 'btn_btotabsup' : 'btn_backtotab')][$G_lang],
+ $G_splash_w, $G_splash_h, true,
+ ($is_super ? 0 : $G_splash_timeout));
+ $ret .= sprintf('|createCookie("CO_splashdate%d", %d, 24*365, cookiepath);', $G_splash_idx, $curtime);
+ }