?> </span></h1> <p class="animated fadeInRightBig">Martin High School - Senior Class - Last One Standing Wins</p> <? if (SYSTEM_STARTED) { ?> <p class="animated fadeInLeftBig"><a href="https://twitter.com/MartinAssassins">The Game Has Begun</a></p> <? } else { ?> <div class="animated fadeInLeftBig" id="countdown"></div> <? } ?> <p class="animated fadeInRightBig">Total Players: <?php echo getTotalNumberOfPlayers(); ?> | Alive: <?php echo getNumberOfPlayersAlive(); ?> | Dead: <?php echo getNumberOfKills(); ?> | Suicide: <?php echo getNumberOfPlayersSuicide(); ?> </p> <a data-scroll class="btn btn-start animated fadeInUpBig" href="#statistics-top">View Stats</a> </div> </div> </div> <a id="tohash" href="#about"><i class="fa fa-angle-down"></i></a> </div> <div class="main-nav"> <div class="container"> <div class="navbar-header">
<?php require_once '/home/mhsa/includes/admin_include.php'; $page_title = 'Home'; $page_id = 1; include 'sections/header.php'; include 'sections/sidebar.php'; $num_users = getTotalNumberOfPlayers(); $num_killed = getNumberOfKills(); $num_alive = getNumberOfPlayersAlive(); $num_suicided = getNumberOfPlayersSuicide(); $killsPerDay = getKillsPerDay(); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Dashboard <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li class="active">Dashboard</li> </ol> </section> <!-- Main content --> <section class="content"> <!-- Small boxes (Stat box) -->
<?php require_once substr(getcwd(), 0, strpos(getcwd(), 'public_html')) . 'includes/include.php'; $top10 = array(); foreach (getTop10Players() as $user) { $top10[] = array($user['name'] . (strlen($user['twitter_name']) > 0 ? ' (<a target="_blank" href="https://twitter.com/' . $user['twitter_name'] . '">@' . $user['twitter_name'] . '</a>)' : ''), $user['num_kills'], $user['dead']); } echo json_encode(array('registered_users' => getTotalNumberOfPlayers(), 'alive_players' => getNumberOfPlayersAlive(), 'dead_players' => getNumberOfPlayersDead(), 'suicides' => getNumberOfPlayersSuicide(), 'assassinations' => getNumberOfKills(), 'top10' => $top10));