<select class="form-control" id="matchserver"> <?php foreach ($serversArray as $server) { if ($manceprofile['s_' . $server]) { $elo = $db->query("SELECT elo FROM log WHERE user={$manceprofile['manceID']} AND server='{$server}' ORDER BY timestamp DESC LIMIT 1"); if ($elo->num_rows > 0) { $elo = $elo->fetch_array(); ?> <option value="<?php echo $server; ?> ">~<?php echo $elo[0]; ?> Elo in <?php echo extendedServerName($server); ?> </option> <?php } } } ?> </select> </div> </div> </form> <p><a class="btn btn-lg btn-success" id="findamatch" role="button">Find a match</a></p> <?php } else { ?>
<?php include_once get_include_path() . '/' . "../modules/config.php"; include_once get_include_path() . '/' . "../modules/utils/main.php"; $header = array('tab' => 'user', 'title' => ' - User in ' . extendedServerName($server), 'additional' => ''); $nofollow = true; include get_include_path() . '/' . '../modules/header.php'; include get_include_path() . '/' . '../modules/region/header.php'; if (empty($_SESSION['last_' . $server])) { $_SESSION['last_' . $server] = array(); } // Routing if (empty($_GET['name'])) { include get_include_path() . '/' . '../modules/region/landing.php'; } else { $_GET['name'] = $db->real_escape_string($_GET['name']); $manceUser = $db->query("SELECT * FROM users WHERE user='******'name']}' AND s_{$server}='1'"); if ($manceUser->num_rows <= 0) { include get_include_path() . '/' . '../modules/region/userNotFound.php'; } else { $manceUser = $manceUser->fetch_array(); if (($key = array_search($manceUser['manceID'], $_SESSION['last_' . $server])) !== false) { unset($_SESSION['last_' . $server][$key]); } array_unshift($_SESSION['last_' . $server], $manceUser['manceID']); if (sizeof($_SESSION['last_' . $server]) > 10) { array_shift($_SESSION['last_' . $server]); } include get_include_path() . '/' . '../modules/region/you.php'; } }
<th>Games played</th> </tr> </table> </div> <div class="column col-sm-12 col-md-6"> <h1>Top teams playing in <select id="teams_topactiveselect" style="width: 150px;float: right;" class="form-control"> <option value="na"><?php echo extendedServerName('na'); ?> </option> <option value="eu"><?php echo extendedServerName('eu'); ?> </option> <option value="sea"><?php echo extendedServerName('sea'); ?> </option> </select></h1> <table class="table" id="teams_topactivetbl"> <tr> <th>Rank</th> <th>Users</th> <th>Games played</th> </tr> </table> </div> </div> <script src="//<?php echo $staticdomain; ?>
" /></p> </form> / </div> <?php } else { ?> <div class="jumbotron" style="background:#eee"> <img src="//<?php echo $staticdomain; ?> /img/kocupid.png" alt="KoCupid Logo"/> <p><a class="btn btn-lg btn-warning" id="findamatch" role="button" href="/cupid/<?php echo $mod[0]; ?> /leave">Leave services in <?php echo extendedServerName($mod[0]); ?> </a></p> <h1>Best online matches</h1> <div class="row" id="bestmatches"> </div> </div> <h2>Your best 25 matches, ordered by elo difference</h2> <table class="table table-hover"> <tr> <th style="width:10%;">Steam status</th> <th style="width:20%;">Name</th> <th style="width:10%;">Elo</th> <th style="width:50%;">Description</th> <th style="width:10%;">Contact</th> </tr>