[Openfirst-cvscommit] messenger inbox.php,1.5,1.6 index.php,1.6,1.7 messenger.php,1.8,1.9 newmsg.php
Brought to you by:
xtimg
From: <xt...@us...> - 2003-09-28 13:54:39
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv13427 Modified Files: inbox.php index.php messenger.php newmsg.php viewmsg.php Log Message: Convert ISSET to isset, optimise some queries, add full names to several dialogues, clarify titles, fix bug for selection box for new messages. Index: inbox.php =================================================================== RCS file: /cvsroot/openfirst/messenger/inbox.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** inbox.php 23 Aug 2003 20:31:57 -0000 1.5 --- inbox.php 28 Sep 2003 13:54:24 -0000 1.6 *************** *** 57,61 **** <th width="28"></th> <th width="194">Subject</th> ! <th width="171">Date</th> <th width="128">Sender</th> <th width="116">Option</th> --- 57,61 ---- <th width="28"></th> <th width="194">Subject</th> ! <th width="210">Date</th> <th width="128">Sender</th> <th width="116">Option</th> *************** *** 80,84 **** <td><?php echo $messages->Sender; ?></td> <td>[ <a href='inbox.php?DELETE=<?php echo $messages->ID; ?>'> Delete </a> ] ! [ <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?SUBJECT=Re: <?php echo $messages->Subject; ?>">Reply</a> ]</td> </tr> <?php Index: index.php =================================================================== RCS file: /cvsroot/openfirst/messenger/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 26 Sep 2003 03:30:20 -0000 1.6 --- index.php 28 Sep 2003 13:54:24 -0000 1.7 *************** *** 34,39 **** <th width="25"></th> <th width="203">User Level</th> <th width="290">Currently Previewing</th> ! <th width="110">Options</th> </tr> <?php --- 34,40 ---- <th width="25"></th> <th width="203">User Level</th> + <th width="110">Name</th> <th width="290">Currently Previewing</th> ! <th width="144">Options</th> </tr> <?php *************** *** 51,57 **** <td><?php if ($userinf->Member == "none") { ! echo "Visiting Guest"; } else { ! echo "<font size='1px'>($userinf->Member) </font>".$members->firstname." ".$members->lastname; } ?></td> --- 52,58 ---- <td><?php if ($userinf->Member == "none") { ! echo "Visiting Guest</td><td>N/A"; } else { ! echo "Member</td><td>$members->firstname $members->lastname"; } ?></td> *************** *** 73,75 **** <?php include($footer); ! ?> \ No newline at end of file --- 74,76 ---- <?php include($footer); ! ?> Index: messenger.php =================================================================== RCS file: /cvsroot/openfirst/messenger/messenger.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** messenger.php 13 Sep 2003 15:38:25 -0000 1.8 --- messenger.php 28 Sep 2003 13:54:24 -0000 1.9 *************** *** 35,39 **** $query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline WHERE IPAddress = '".$IP."'"); ! if(ISSET($user->user)){ $memberinf = $user->user; }else{ --- 35,39 ---- $query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline WHERE IPAddress = '".$IP."'"); ! if(isset($user->user)){ $memberinf = $user->user; }else{ Index: newmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/newmsg.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** newmsg.php 13 Sep 2003 15:38:25 -0000 1.9 --- newmsg.php 28 Sep 2003 13:54:24 -0000 1.10 *************** *** 78,82 **** // Set the reply based on querystring or list members ! if (ISSET($_GET['RECIP'])){ $query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline WHERE ID = '".$_GET['RECIP']."'"); --- 78,82 ---- // Set the reply based on querystring or list members ! if (isset($_GET['RECIP'])){ $query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline WHERE ID = '".$_GET['RECIP']."'"); *************** *** 90,96 **** echo "<select name='recip' id='recip'>"; ! $query = ofirst_dbquery("SELECT * FROM ofirst_members"); while($recipient = ofirst_dbfetch_object($query)){ ! echo "<option>".$recipient->user."<option>"; } --- 90,96 ---- echo "<select name='recip' id='recip'>"; ! $query = ofirst_dbquery("SELECT user FROM ofirst_members ORDER BY user;"); while($recipient = ofirst_dbfetch_object($query)){ ! echo "<option>".$recipient->user."</option>"; } *************** *** 127,129 **** <?php include($footer); ! ?> \ No newline at end of file --- 127,129 ---- <?php include($footer); ! ?> Index: viewmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** viewmsg.php 23 Aug 2003 20:31:57 -0000 1.5 --- viewmsg.php 28 Sep 2003 13:54:24 -0000 1.6 *************** *** 54,58 **** <tr> <th>Sender</th> ! <td><a href='profiles.php?ID=<?php echo $msg->Sender ?>'><?php echo $msg->Sender ?></a></td> </tr> <tr> --- 54,72 ---- <tr> <th>Sender</th> ! <td><a href='profiles.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); ! $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); ! $member = ofirst_dbfetch_object($querymember); ! echo(" ($member->firstname $member->lastname)"); ?> ! </td> ! </tr> ! <tr> ! <td><img src="visitors.png" alt="Visitor"></td> ! <td><?php ! if ($userinf->Member == "none") { ! echo "Visiting Guest</td><td>N/A"; ! } else { ! echo "Member</td><td>$members->firstname $members->lastname"; ! } ! ?></a></td> </tr> <tr> *************** *** 70,72 **** <?php include($footer); ! ?> \ No newline at end of file --- 84,86 ---- <?php include($footer); ! ?> |