<?php if (isset($light_config['user_online']) && $light_config['user_online'] == 1) { ?>
	
<?php
			$arronline=assoc_unique(online_list_cache(),'uid');
			foreach($arronline as $online_user) {
			if($online_user['uid'] == $thread['uid']){
			echo "<span class='badge badge-success ml-1'>在线</span>";
			} 
		}
         ; ?>
				 <?php }?>