All pastes #2127865 Raw Edit

Unnamed

public text v1 · immutable
#2127865 ·published 2012-03-13 17:26 UTC
rendered paste body
                /* check for ImportantMessages (these display in a div overlaying the main screen) */
                if (StrLength(WCC->ImportantMsg) > 0) {
                        wc_printf("<div id=\"important_message\">\n"
                                "<span class=\"imsg\">");
                        StrEscAppend(WCC->WBuf, WCC->ImportantMsg, NULL, 0, 0);
                        wc_printf("</span><br>\n"
                                "</div>\n"
                        );
                        StrBufAppendBufPlain(WCC->trailing_javascript,
                                             HKEY("setTimeout('hide_imsg_popup()', 5000);       \n"),
                                             0
                        );
                        FlushStrBuf(WCC->ImportantMsg);
                }