<?php session_register('rank'); if(isset($_SESSION['esports'])) { if($_SESSION['rank'] == 1) { print '1'; } elseif($_SESSION['rank'] == 2) { print '2'; } elseif($_SESSION['rank'] == 3) { print '3'; } elseif($_SESSION['rank'] == 4) { print '4'; } } else { print '<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="includes"> <tr> <td><form action="index.php?map=system&page=login_check" method="post" name="login" id="login"> Username:<br> <input name="username" type="text" id="username" size="25"> <br> Password: <b>(</b> <a href="index.php?map=system&page=lost_pw">?</a> <b>)</b><br> <input name="password" type="password" id="password" size="25"> <br> <a href="javascript:login.submit()">Login</a> - <a href="index.php?map=system&page=register">Register</a><br></form></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>MEMBERS</strong><br> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="includes">!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HERE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!</table></td> </tr> </table>'; } ?>
<?php $query = mysql_query("SELECT location FROM profile ORDER BY location DESC"); while($get = mysql_fetch_array($query)) { $total = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM profile WHERE location='$get[location]'"),0); print '<tr> <td width="10%" align="center"><img src="images/flags/'.$get[location].'.png" width=13 height=13 alt=""></td> <td width="90%">'.$total.'</td> </tr>'; } ?>
<?php session_register('rank'); if(isset($_SESSION['esports'])) { if($_SESSION['rank'] == 1) { print '1'; } elseif($_SESSION['rank'] == 2) { print '2'; } elseif($_SESSION['rank'] == 3) { print '3'; } elseif($_SESSION['rank'] == 4) { print '4'; } } else { print '<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="includes"> <tr> <td><form action="index.php?map=system&page=login_check" method="post" name="login" id="login"> Username:<br> <input name="username" type="text" id="username" size="25"> <br> Password: <b>(</b> <a href="index.php?map=system&page=lost_pw">?</a> <b>)</b><br> <input name="password" type="password" id="password" size="25"> <br> <a href="javascript:login.submit()">Login</a> - <a href="index.php?map=system&page=register">Register</a><br></form></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>MEMBERS</strong><br> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="includes">'; $query = mysql_query("SELECT location FROM profile ORDER BY location DESC"); while($get = mysql_fetch_array($query)) { $total = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM profile WHERE location='$get[location]'"),0); print '<tr> <td width="10%" align="center"><img src="images/flags/'.$get[location].'.png" width=13 height=13 alt=""></td> <td width="90%">'.$total.'</td> </tr>'; } print '</table></td> </tr> </table>'; } ?>