all ImportantMessage deliveries are now done through trailing.html
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 13 Mar 2012 18:37:45 +0000 (14:37 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 13 Mar 2012 18:37:45 +0000 (14:37 -0400)
33 files changed:
webcit/static/t/aide/display_ignetconf.html
webcit/static/t/aide/display_inetconf.html
webcit/static/t/aide/display_menu.html
webcit/static/t/aide/display_serverrestart.html
webcit/static/t/aide/display_serverrestart_page.html
webcit/static/t/aide/display_serverrestart_page_do.html
webcit/static/t/aide/display_sitewide_config.html
webcit/static/t/aide/edituser/detailview.html
webcit/static/t/aide/edituser/select.html
webcit/static/t/aide/ignetconf/add.html
webcit/static/t/aide/ignetconf/display_confirm_delete.html
webcit/static/t/aide/ignetconf/edit_node.html
webcit/static/t/display_main_menu.html
webcit/static/t/edit_message.html
webcit/static/t/files.html
webcit/static/t/files/picview.js
webcit/static/t/floors.html
webcit/static/t/iconbar/edit.html
webcit/static/t/iconbar/save.html
webcit/static/t/important_msg.html [deleted file]
webcit/static/t/preferences.html
webcit/static/t/room/create.html
webcit/static/t/room/display_private.html
webcit/static/t/room/edit.html
webcit/static/t/room/zap_this.html
webcit/static/t/room/zapped_list.html
webcit/static/t/sieve/add.html
webcit/static/t/sieve/list.html
webcit/static/t/sieve/none.html
webcit/static/t/trailing.html
webcit/static/t/who.html
webcit/static/t/who/bio.html
webcit/webcit.c

index 928765899eb32c9eac00205a9a7a213c958bd308..ba199e067a70c81a8c5febfd2c3e11e5de59ba21 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
   <h1><?_("Network configuration")></h1>
 </div>
index c818f00d8dc1648ab1eee748ac789527108e57e7..3631c139edbe73e4b102f3c4f024825220aee575 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1>
 <??("COND:AIDE", 1)><?_("System Administration Menu")><??("X", 1)>
index dd231d36cb3359ef227360287cfd61e508780982..d905ae1a29d3243a2494f62e6b243ce3663a54de 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1>
 <??("COND:AIDE", 1)><?_("System Administration Menu")><??("X", 1)>
index f9b63bef706fb0eee614c7d6e06ab823b46508fb..7e951d876de3cfb9ea95ec0918bc1919143aa5cb 100644 (file)
@@ -20,7 +20,7 @@
        </head>
 <body>
 <div id="global">
-       <?=("important_msg")>
+       
        <div id="content" class="service">
                <table><td width=50% valign="top"><tr>
                        <?DOBOXED(="aide_serverrestart_box", _("Restart Citadel"))>
index 62a564da0e510f8d5ed25ae840223971c3a882c0..a6c41463cf32fdcd74d870f7b49c5a9f4e187844 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")>
+
 <div id="resatrt_page">
 <?DOBOXED("box_serverrestartpage", _("Message to your Users:"))>
 </div>
index 2c323155e4b02dbe57ceb657189d8b817b684bb9..e1b4c183bd0a37cac153a98797d978206a796ca6 100644 (file)
@@ -20,7 +20,7 @@
        </head>
 <body>
        <div id="global">
-               <?=("important_msg")>
+               
                <div id="content" class="service">
                        <table><td width=50% valign="top"><tr>
                                <?DOBOXED("box_serverrestartpagedo")>
index dbf2bfb15d59fd93ecef8180a456a7c82d804fb4..dd77dd514cfb2e603e9e5fa076595a279184894c 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1><?_("Site configuration")></h1>
 </div>
index 8b4acd848e74521ef289fe53a630f68aba7bedec..418ce514d5c23348cae92f2cb31874ca6125aed6 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
   <h1><?_("Edit user account: ")><?USERLIST:USERNAME("X")></h1>
 </div>
index 7f026bafbf6c0f3428a4e1f04c0c635e230e0099..e6e92bb7f482b63394fd15667efd5abf114ea338 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
        <img src="static/webcit_icons/essen/32x32/account.png">
        <h1><??("COND:AIDE", 1)><?_("Edit or delete users")><??("X", 1)></h1>
index ace8e08b44c1c6c59e42144e565f197f82f9e030..2d1cb3b0c4a45aec5fe31d491b43b8b970e20177 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1>
 <?_("Add a new node")>
index 1817c6eb55026de16dfa1d64393d50d2c29401a1..bb608ab92cc897977dd30d3bfce84d32580cc914 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1>
 <?_("Confirm delete")> <?BSTR("node")>
index 363608f049b7c01371a5d2d712f984cccd884623..c7012c2b8311ff20d51f5f557388d099f870c4f1 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1>
 <?_("Add a new node")>
index 00a238fb9b9d5f083fd5d27552e89d1319b9def7..04b15525847e3c4c1236b98c16d5a562c16a506d 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <?ROOMBANNER>
 <div id="content">
 <table width="100%" cellspacing="10" cellpadding="0">
index 1e3d0961e37b1e55bddf1c14803cb3aec3030717..c5cfbda9162df212981922a06e1289b710966a31 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <?ROOMBANNER>
 <div id="content">
 
index 268eaeefd0feab437b7e5b19c7e68ff780b63bd0..2999d64e9bf138923bd104ccb54a0c173ae3a280 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
        <h1><?_("Files available for download in")>&nbsp;<?ROOMNAME></h1>
        <?!("COND:THISROOM:FLAG:QR", 2, #"QR_UPLOAD")>
index 10b40d8bd9466bf047cb78dba422e7bad0073bd1..da5242aa1cb58e60f6d046c0a79697add10badfc 100644 (file)
@@ -1,6 +1,6 @@
 <??("COND:BSTR", 1, "frame")>
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 
 <div id="banner"><h1><?_("Pictures in")> <?ROOM:NAME></h1></div>
 <div id="content" class="service">
@@ -31,4 +31,4 @@
        <th></th>
        </table>
 <?=("trailing")>
-<??("X", 1)>
\ No newline at end of file
+<??("X", 1)>
index 37e976ee2f9c2efc5dc7b980a7e3459e525763c1..ea837cc4300ba7237e220776ae0c4378f91b03c4 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 
 <div id="banner">
         <h1><?_("Add/change/delete floors")></h1>
index 93695974c691951b4874f7ac6b4f14a3a9a7d295..26f40445c420274d640b21fbb4b357ff0bbaec00 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")>
+
 <div id="banner">
        <h1><?_("Customize the icon bar")></h1>
 </div>
index bac3f9912e0141f117f669423b5130e6d85e826b..ce95c499e81a1703abc802b456ee48f059b05b13 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")>
+
 <div id="banner">
        <h1><?_("Customize the icon bar")></h1>
 </div>
diff --git a/webcit/static/t/important_msg.html b/webcit/static/t/important_msg.html
deleted file mode 100644 (file)
index 61cddad..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?!("COND:IMPMSG", 1)>
-<div id="important_message">
-<span class="imsg">
-<?IMPORTANTMESSAGE>
-</span><br>
-</div>
-<script type="text/javascript">
-  setTimeout('hide_imsg_popup()', 5000);
-</script>
-<?!("X", 1)>
index 7b40a0b56f4540db9f8da6aac40d426e8037d0d5..ff0f796f670168a9da6f66afcb17ed2ebb016ae6 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
   <h1><?_("Preferences and settings")></h1>
 </div>
index 4cc1ead794a18aada5b7475be07fade73851f61e..98bea8626a94b50d8d083840ac97ed5ab3d204f3 100644 (file)
@@ -2,7 +2,7 @@
 <?=("display_main_menu")>
 <?!("X", 10)>
 <??("COND:MAY_CREATE_ROOM", 11)>
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <?=("roombanner")>
 </div>
index c80d31215dea3a7437c5fc5374e919826463102f..4a8056df4710e36d00b593dcb669cb7827cabeba 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <?=("roombanner")>
 </div>
index b52290b641f4e769d4a1d4b68c3bca47cea910ac..d3f3c07bb849f069b68fac7637c0c1d2d7862b17 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <?ROOMBANNER>
 <div id="content" class="service">
 <table border="0" cellspacing="0" cellpadding="0" ><tr><td>
index 85770b949da6be354a693f5e22c9decc3b781ef2..d74dada01b76b7e3e564345757d50eae5ce72b64 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <h1><?_("Zap (forget/unsubscribe) the current room")></h1>
 </div>
index 313792fdbe70f0decaee0c438178df13b11f16bf..ce5eaf88785dbfedc621650bb98f0d3985dbb51c 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <?=("roombanner")>
 </div>
index 783a8360d33a2ed670d89abcd66bfbdcb7f0fe3a..d3795ea31c56417a5cccfc3422bef31b835b321a 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 
 <div id="banner">
        <img src="static/webcit_icons/essen/32x32/config.png">
index 86c0480b3bc9a0d2f537ca97f6d1f4626c9c25a2..e358a3d553237a22d27a7dbf8adfd3e1c178ace4 100644 (file)
@@ -1,4 +1,4 @@
-<?=("head")><?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 
 <?--("iterate over an empty template, so we have the states already loaded for below")><?ITERATE("SIEVE:SCRIPTS", ="sieve_empty")>
 <script type="text/javascript">
index 61d62c3ef9e2504560d092625b4662f957034ad2..6b241265a6d6c1dce9a29e73011e5e4d2e1f1d7a 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
 <img src="static/advanpage2_48x.gif">
 <h1>
index 198dfb3bb131478aa20fadc1b9e748f01b6556e6..c18a0d6e9d093f7345843967736d0376153cd3c0 100644 (file)
@@ -1,7 +1,19 @@
 <!-- start trailing.html -->
-               <noscript><div id="noscript_warning">
-                       <?_("WARNING: You have JavaScript disabled in your web browser.  Many functions of this system will not work properly.")>
-               </div></noscript>
-               <script type="text/javascript"><?TRAILING_JAVASCRIPT></script>
-       </body>
+<?!("COND:IMPMSG", 1)>
+<div id="important_message">
+<span class="imsg">
+<?IMPORTANTMESSAGE>
+</span><br>
+</div>
+<script type="text/javascript">
+  alert('you have an important message');
+  setTimeout('hide_imsg_popup()', 5000);
+</script>
+<?!("X", 1)>
+
+<noscript><div id="noscript_warning">
+       <?_("WARNING: You have JavaScript disabled in your web browser.  Many functions of this system will not work properly.")>
+       </div></noscript>
+       <script type="text/javascript"><?TRAILING_JAVASCRIPT></script>
+</body>
 </html>
index b3b88a7420c8d181d61bee2c644f65860316ac2e..e75150beabd8498697a062a7e58a5dc6af10697b 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 
 <script type="text/javascript">
        function ConfirmKill() { 
index a1d599b7e91a9cac5e8575d4c9bf5dcc6a0e5062..5f2048d887bd64c3e5ed47fbfb7b773af67c88ab 100644 (file)
@@ -1,5 +1,5 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <div id="banner">
        <h1><img src="static/webcit_icons/essen/32x32/account.png" alt="">&nbsp;<?_("User profile")></h1>
        <div id="actiondiv">
index bb36f989817eb26c53f2d03857a0f6fa6f3034bd..98ae071dda84b8377a1f46cc086ae47f085a3b6b 100644 (file)
@@ -194,25 +194,9 @@ void output_headers(       int do_httpheaders,     /* 1 = output HTTP headers                        */
        if (do_htmlhead) {
                begin_burst();
                do_template("head");
-
-               /* 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);
-               }
                if ( (WCC->logged_in) && (!unset_cookies) ) {
                        DoTemplate(HKEY("paging"), NULL, &NoCtx);
                }
-
                if (do_room_banner == 1) {
                        tmplput_roombanner(NULL, NULL);
                }