/* Show Online Status */

$showOnline=array('1'=>$l_yes, 0=>$l_no); //online status dropdown

if($action=='registernew') {
$user_customonline=1;
$online=1;
}

elseif($action=='prefs'){
if(isset($userData[$dbUserSheme['user_customonline'][0]])) $user_customonline=$userData[$dbUserSheme['user_customonline'][0]];
else $user_customonline=1;
}

elseif(($action=='register' and $enableNewRegistrations) or ($action=='editprefs' and $enableProfileUpdate)){
if(isset($_POST['user_customonline'])) $user_customonline=(int)$_POST['user_customonline'];
}

$onlineDropDown=makeValuedDropDown($showOnline, 'online');

if($action=='prefs' or $action=='registernew' or $action=='editprefs' or $action=='register'){
$onlineStatusForm=ParseTpl(makeUp('addon_whosonline_status'));
}

/* --Show Online Status */