Update of /cvsroot/openfirst/messenger
In directory sc8-pr-cvs1:/tmp/cvs-serv3930
Modified Files:
index.php
Log Message:
Changed the member listings with first and last names.
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.php 23 Aug 2003 20:31:57 -0000 1.5
--- index.php 26 Sep 2003 03:30:20 -0000 1.6
***************
*** 30,39 ****
?>
<h1>Current Online Users</h1>
! <table width="538">
<tr>
! <th></th>
! <th>User Level</th>
! <th>Previewing</th>
! <th>Options</th>
</tr>
<?php
--- 30,39 ----
?>
<h1>Current Online Users</h1>
! <table width="648">
<tr>
! <th width="25"></th>
! <th width="203">User Level</th>
! <th width="290">Currently Previewing</th>
! <th width="110">Options</th>
</tr>
<?php
***************
*** 42,45 ****
--- 42,49 ----
$query = ofirst_dbquery("SELECT * FROM ofirst_messenger_usersonline");
while($userinf = ofirst_dbfetch_object($query)){
+
+ $querymember = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user = '".$userinf->Member."'");
+ $members = ofirst_dbfetch_object($querymember);
+
?>
<tr>
***************
*** 49,53 ****
echo "Visiting Guest";
} else {
! echo $userinf->Member;
}
?></td>
--- 53,57 ----
echo "Visiting Guest";
} else {
! echo "<font size='1px'>($userinf->Member) </font>".$members->firstname." ".$members->lastname;
}
?></td>
|