<br />
<div style="padding-left:3%;">
<div id="layer" style="padding:4px; width:96%; " class="ui-widget-content ui-corner-all">
<div align="center"><center>
<table border="0" width="88%" cellspacing="2" cellpadding="2" bgcolor="#E6FFE6">
<tr>
<td width="100%"><p>Currently logged in members - to display use this PHP:</p>
<blockquote>
<p><em><?php<br />
$usersOnline = new LoggedInUsers();<br />
$usersOnline->listUsers(3);// 3:email and name, 2:email, 1:name, 0:total logged in <br />
?></em></p>
</blockquote>
<p><font color="#000000">Change the configuration below to alter the divider (default is <br>) which splits the display of each member; the Max login time (default is 20) based on users active over the past 20 minutes; the display total (default is 5) this is the total number of members to list; None msg is the message to display if no users are active during the last "Max login time ". </font></p> </p></td>
</tr>
</table>
<form name="AF" method="post" action="logged_in_users.php">
<input type="hidden" name="the_page" value="logged_in_users.php">
<table width="1218" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="642" bgcolor="#FFFFCA"><strong>Current active
logged in members: </strong></td>
<td width="553" bgcolor="#E1E1FF"><strong>Configuration:</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFCA">
<div align="center">Total logged in is:
<?php
$usersOnline = new LoggedInUsers();
$usersOnline->listUsers(0);
?>
</div>
<blockquote>
<table width="410" border="0">
<tr>
<td width="166" align="right"><?php
$usersOnline->listUsers(1);
?></td>
<td width="156"><?php $usersOnline->listUsers(2); ?></td>
</tr>
</table>
</blockquote>
<i>You can output the above using this PHP/HTML code:</i><br>
<textarea rows="6" cols="75"\>
Total logged in is:
<?php
$usersOnline = new LoggedInUsers();
$usersOnline->listUsers(0);
?>
<table width="410" border="0">
<tr><td width="166" align="right"><?php $usersOnline->listUsers(1); ?>
</td>
<td width="156"><?php $usersOnline->listUsers(2); ?></td>
</tr>
</table>
</textarea>
</td>
<td bgcolor="#E1E1FF">
<blockquote>
<table width="469" border="0" cellpadding="2">
<tr>
<td width="108" align="right"><?php
$config = $usersOnline->config();
?>
divider: </td>
<td width="347"><?php echo "<input type=\"text\" name=\"divider\" size=\"8\" value=\"".htmlentities($config['divider'])."\">"; ?> html to use inbetween each user </td>
</tr>
<tr>
<td align="right">None msg:</td>
<td><?php echo "<input type=\"text\" name=\"none_msg\" size=\"34\" value=\"".htmlentities($config['none_msg'])."\">"; ?></td>
</tr>
<tr>
<td align="right">Display total: <br /></td>
<td><?php echo "<input type=\"text\" name=\"display_total\" size=\"2\" value=\"".htmlentities($config['display_total'])."\">"; ?> total to display when using the PHP code above </td>
</tr>
<tr>
<td align="right"><p>Max login time<br />
(minutes)<br />
<br />
<br />
<br />
</p>
</td>
<td><p><?php echo "<input type=\"text\" name=\"past_minutes\" size=\"2\" value=\"".htmlentities($config['past_minutes'])."\">"; ?> <strong>NOTE: this sets the minutes each member login session will last</strong> <em>(you can not make this longer than the PHP session.gc_maxlifetime which is 24 minutes by default, unless you can increase this on your own server settings too)</em></p>
</td>
</tr>
<tr>
<td align="right"> </td>
<td>
<div class="button"><button>Save</button></div> </td>
</tr>
</table>
</blockquote></td>
</tr>
</table>
</center></div></form>
</div></div>