/* Who's Online */

$woDir=$pathToFiles.'shared_files'; //general path to your directory, for storing temporary plugin file and data. On Linux/FreeBSD/Unix systems, it must have 0777 privileges. Many miniBB plugins will use this directory, so if you already have one, it is better to keep one directory for all shared files. No slash at the end!

$enableAnonymous=1; //enable anonymous visits (by IP) - set to 0 (no) or 1 (yes) 

$enableHidden=0; //set this to 1 if you HAVE bundled the add-on with the "hidden" users options, else set to 0!

$expireTime=300; // in seconds - amount of activity time, after that time user activity is broken. 5 min = 300 sec.

include($pathToFiles.'addon_whosonline.php');

//condition to display the HTML code. Default: everybody. In the case of hidden mode bundled, switch on the alternative condition when only admin and unhidden members see it
//if($user_id==1 or ($enableHidden==1 and $user_id>1 and isset($user_online) and $user_online==1) ){

if(isset($is_mobile) and $is_mobile){
$is_mobileTr1='<tr>';
$is_mobileTr2='</tr>';
$is_mobileTxt='L';
$is_mobileBr=$brtag.$brtag;
}
else{
$is_mobileTr1='';
$is_mobileTr2='';
$is_mobileTxt='R';
if(!isset($logged_admin) or $logged_admin!=1) $is_mobileBr=''; else $is_mobileBr=$brtag.$brtag;
}

$whosOnline=<<<out
<table class="forums">
<tr>
<td class="tbTransparent txtL" style="width:50%">
<span class="txtSm">{$l_whosOnline} {$l_guestsOnline} - {$guestsCount}{$brtag}{$l_loggedOnline} - {$registeredCount} {$hiddenTxt} {$registeredList}</span>
{$is_mobileBr}
</td>
{$is_mobileTr2}
{$is_mobileTr1}
<td class="tbTransparent txt{$is_mobileTxt}" style="width:50%">
<span class="txtSm">{$l_onlineRecord} {$recTotal} [{$recDate}]{$brtag}{$l_guestsOnline} - {$w_record[1]} / {$l_loggedOnline} - {$w_record[2]}</span>
{$is_mobileBr}
</td>
</tr>
</table>
out;

//}

/* --Who's Online */