[Openfirst-cvscommit] messenger newmsg.php,1.12,1.13 viewmsg.php,1.7,1.8 inbox.php,1.7,1.8
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-16 23:53:32
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv8786 Modified Files: newmsg.php viewmsg.php inbox.php Log Message: Make messages go to the proper recipent when 'Reply' functionality is used, rather than presenting a list of recipients. Index: newmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/newmsg.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** newmsg.php 16 Oct 2003 23:05:51 -0000 1.12 --- newmsg.php 16 Oct 2003 23:52:59 -0000 1.13 *************** *** 81,86 **** $query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline WHERE ID = '".$_GET['RECIP']."'"); ! $recipient = ofirst_dbfetch_object($query); ! echo "<input type='hidden' name='recip' value='".$recipient->Member."'>"; echo $recipient->Member; --- 81,89 ---- $query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline WHERE ID = '".$_GET['RECIP']."'"); ! if(ofirst_dbnum_rows($query) == "0") { ! $recipient->Member = $_GET["RECIP"]; ! } else { ! $recipient = ofirst_dbfetch_object($query); ! } echo "<input type='hidden' name='recip' value='".$recipient->Member."'>"; echo $recipient->Member; Index: viewmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** viewmsg.php 13 Oct 2003 17:58:27 -0000 1.7 --- viewmsg.php 16 Oct 2003 23:52:59 -0000 1.8 *************** *** 80,84 **** </table> <p>[ <a href='inbox.php?DELETE=<?php echo $msg->ID; ?>'> Delete </a> ] [ ! <a href="newmsg.php?REPLY=<?php echo $sender->ID; ?>&SUBJECT=Re:%20<?php echo $msg->Subject; ?>">Reply</a> ]</p> <?php --- 80,84 ---- </table> <p>[ <a href='inbox.php?DELETE=<?php echo $msg->ID; ?>'> Delete </a> ] [ ! <a href="newmsg.php?RECIP=<?php echo $msg->Sender; ?>&SUBJECT=Re:%20<?php echo $msg->Subject; ?>">Reply</a> ]</p> <?php Index: inbox.php =================================================================== RCS file: /cvsroot/openfirst/messenger/inbox.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** inbox.php 13 Oct 2003 17:58:27 -0000 1.7 --- inbox.php 16 Oct 2003 23:52:59 -0000 1.8 *************** *** 80,84 **** <td><?php echo $messages->Sender; ?></td> <td>[ <a href='inbox.php?DELETE=<?php echo $messages->ID; ?>'> Delete </a> ] ! <br>[ <a href="newmsg.php?SUBJECT=Re: <?php echo $messages->Subject; ?>">Reply</a> ]</td> </tr> <?php --- 80,84 ---- <td><?php echo $messages->Sender; ?></td> <td>[ <a href='inbox.php?DELETE=<?php echo $messages->ID; ?>'> Delete </a> ] ! <br>[ <a href="newmsg.php?RECIP=<?php echo($messages->Sender); ?>&SUBJECT=Re: <?php echo $messages->Subject; ?>">Reply</a> ]</td> </tr> <?php |