Update of /cvsroot/openfirst/messenger
In directory sc8-pr-cvs1:/tmp/cvs-serv20075
Added Files:
index.php
Log Message:
initial upload
--- NEW FILE: index.php ---
<?php
/*
* openFIRST.messenger - index.php
*
* Copyright (C) 2003,
* openFIRST Project
* Original Author: David Di Biase <dav...@ea...>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
include("../config/globals.php");
include($header);
mysql_select_db($sqldatabase,$sqlconnection);
?>
<h1>Current Online Users</h1>
<p>[ <a href="inbox.php">Current Messeges For You </a>] [ <a href="viewLog.php">Members Login </a>] [ <a href="newmsg.php">Compose Messege </a>] [ <a href="usersonline.php">Online Users </a>]
<br><br>
<center><?php echo $usersonline."<br>".$usersonpage; ?></center>
<br><br>
<table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#999999">
<tr bgcolor="#999999">
<td></td>
<td width="33%"><div align="center"><font color="#FFFFFF">User Level</font></div></td>
<td width="34%"><div align="center"><font color="#FFFFFF">Previewing</font></div></td>
<td width="33%"><div align="center"><font color="#FFFFFF">Options</font></div></td>
</tr>
<?php
// Find user online records in the database
$query = mysql_query("SELECT * FROM ofirst_usersonline");
while($user = mysql_fetch_object($query)){
?>
<tr>
<td><img src="visitors.png" alt="Visitor"></td>
<td><?php if ($user->Member = "none"){ echo "Visiting Guest #".$user->ID; }else{ echo $user->Member; } ?></td>
<td><?php echo $user->Location; ?></td>
<td>[ <a href="newmsg.php?REPLY=<?php echo $user->ID; ?>"> Messege User</a>
]</td>
</tr>
<?php } ?>
</table>
<?php include($footer); ?>
|