* fleshed out the message headers a bit
authorArt Cancro <ajc@citadel.org>
Sat, 22 Nov 2003 04:33:22 +0000 (04:33 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 22 Nov 2003 04:33:22 +0000 (04:33 +0000)
ctdlphp/ChangeLog
ctdlphp/ctdlelements.php
ctdlphp/ctdlheader.php

index 6155da42b793b77d5903ddf46703b26e56f013e3..2156daf17a29efafa19bc3aa5a7ad587cd411bea 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 1.20  2003/11/22 04:33:22  ajc
+ * fleshed out the message headers a bit
+
  Revision 1.19  2003/11/21 18:22:19  ajc
  * Replaced the two-second sleep (and associated race condition) for the
    session proxy to start, with a loop that attempts connection ten times
@@ -83,4 +86,3 @@
 
  Revision 1.1  2003/10/31 03:47:13  ajc
  * Initial CVS import
-
index efee340007e14695e77e351c35eba94428d286a3..a60a7b8523e28864e484be3f223bacca5e7c60dc 100644 (file)
@@ -26,10 +26,25 @@ function display_message($msgnum) {
        }
 
        // Begin header
-       echo "<B><I>" .
-               strftime("%b %d %Y %I:%M%p ", $fields["time"]) .
-               " from " . htmlspecialchars($fields["from"]) .
-               "</I></B><BR>\n" ;
+       echo "<B><I>" ;
+       echo strftime("%b %d %Y %I:%M%p ", $fields["time"]) ;
+       echo " from " . htmlspecialchars($fields["from"]) ;
+       
+       if (strlen($fields["rfca"]) > 0) {
+               echo " &lt;" . htmlspecialchars($fields["rfca"]) . "&gt;" ;
+       }
+       else if ( (strlen($fields["node"]) > 0) 
+            && (strcasecmp($fields["node"], $_SESSION["serv_nodename"])) ) {
+               echo " @" . htmlspecialchars($fields["node"]) ;
+               if (strlen($fields["hnod"]) > 0) {
+                       echo " (" . htmlspecialchars($fields["hnod"]) . ")" ;
+               }
+       }
+
+       if (strlen($fields["rcpt"]) > 0) {
+               echo " to " . htmlspecialchars($fields["rcpt"]) ;
+       }
+       echo "</I></B><BR>\n" ;
 
        // Do message text
        echo $fields["text"] . "<BR>";
index 635df8be43d228432e157c36c2926d94a3ae368e..94f14417d70d2ddac477b6aa62abff795f039762 100644 (file)
@@ -53,12 +53,16 @@ LITERAL;
        alink="#DD0000"
 >
 
-<div align=right>
-<A HREF="logout.php">Log out</A>
-</div>
-<HR>
 
 LITERAL;
+
+       echo '<TABLE BORDER=0 WIDTH=100%>';
+       echo '<TR>';
+       echo '<TD>' . $_SESSION["serv_humannode"] . '</TD>' ;
+       echo '<TD>' . $_SESSION["username"] . '</TD>' ;
+       echo '<TD>' . $_SESSION["room"] . '</TD>' ;
+       echo '<TD ALIGN=RIGHT><A HREF="logout.php">Log out</A></TD>' ;
+       echo '</TR></TABLE><HR>';
 }