include $_SERVER['DOCUMENT_ROOT'] . '/includes/sidepanel.inc.php';
?>
                    </div>
				</div><!-- /"sidepanel" -->

				<div id="main">
                <div>
    					<h1 style="text-align: center;"><?php 
echo get_the_flag(24, 'blue') . ' Current No Clan members ' . get_the_flag(24, 'blue');
?>
</h1>
    					
    					<?php 
foreach ($arrMembers as $member) {
    extract($member, EXTR_PREFIX_ALL, 'm');
    $m_joined = how_long_since($m_date_created);
    $m_img_url = get_user_pic($m_idUser, 64);
    $m_info_url = rurl() . '/user/' . $m_username . '/';
    $m_frame_url = rurl() . '/user/show_userinfo.php?id=' . $m_idUser;
    if ($m_username[strlen($m_username) - 1] == 's') {
        $m_usernames = $m_username . "'";
    } else {
        $m_usernames = $m_username . "'s";
    }
    if (!empty($m_picasaUser)) {
        $m_gallery = rurl() . '/gallery/' . $m_idUser . '/' . $m_username;
    }
    ?>
						
						<div class="member_li">
							<a href="<?php 
$dbConn = connect_db();
if (!empty($_SESSION['NC_user']) && !empty($_SESSION['NC_password'])) {
    $arrUser = isUser($_SESSION['NC_user'], $_SESSION['NC_password'], $dbConn);
}
//Search for the 10 latest logins
$query = "SELECT idUser, username, date_modified\n              FROM users\n              WHERE users.type = 'member' OR users.type = 'admin'\n              ORDER BY date_modified\n              DESC LIMIT 10";
if ($result = mysql_query($query, $dbConn)) {
    //and if we have actual results, show them
    $users = mysql_num_rows($result);
    if ($users > 0) {
        $now = time();
        while ($logins = mysql_fetch_array($result)) {
            $u = $logins['username'];
            $t = $logins['date_modified'];
            $i = $logins['idUser'];
            $hl = how_long_since($t);
            $userInfoPage = rurl() . '/user/show_userinfo.php?id=' . $i;
            if ($u[strlen($u) - 1] == 's') {
                $atitle = $u . "'";
            } else {
                $atitle = $u . "'s";
            }
            // set the user pic (idUser and pixels w/h)
            $img = get_user_pic($i, 24);
            //show as online members users who requested pages within the last 90 seconds (panda is a pain in the ass)
            $unix_time = strtotime($t);
            ?>
			<div <?php 
            if ($now - 90 < $unix_time) {
                echo "class=\"online\"";
            }