Exemplo n.º 1
0
 <td width="68" class="padLeft slot<?php 
    echo $Game["counter"];
    ?>
">
 <a name="<?php 
    echo strtolower($Game["name"]);
    ?>
"></a>
 <?php 
    echo OS_ShowHero($Game["heroid"], $Game["description"], $Game["hero"], 100, 64, 64, $Game["hero_link"]);
    ?>
 </td>
 <td width="260">
 <div class="SingleGamePlayerName">
    <?php 
    echo OS_ShowUserFlag($Game["letter"], $Game["country"]);
    ?>
    <?php 
    echo OS_SingleGameUser($Game["userid"], $Game["full_name"], $Game["name"], $BestPlayer, $Game["level"]);
    ?>
	<?php 
    echo OS_IsUserGameAdmin($Game["admin"]);
    ?>
	<?php 
    echo OS_IsUserGameBanned($Game["banned"], $lang["banned"]);
    ?>
	<span class="player_scores<?php 
    echo $Game["class"];
    ?>
"><?php 
    echo $Game["score_points"];
Exemplo n.º 2
0
            }
            if (empty($row["admin"])) {
                $admin = '<span class="banned">[system]</span>';
            } else {
                $admin = $row["admin"];
            }
            $reason = str_replace(array("&amp;#039;", "&amp;quot;"), array("'", '"'), $row["reason"]);
            ?>
   <tr class="row" style="height:36px;">
     <td width="180" class="padLeft font12">
	 <input type="checkbox" name="checkbox[]" value="<?php 
            echo $row["id"];
            ?>
">
     <?php 
            echo OS_ShowUserFlag($Letter, $Country, 175);
            ?>
 
	 <?php 
            if (isset($_GET["duplicate"])) {
                ?>
	 <a href="<?php 
                echo OS_HOME;
                ?>
adm/?bans=&search_bans=<?php 
                echo trim($row["name"]);
                ?>
"><span style="color:red;">[show]</span></a>
	 <?php 
            }
            ?>
Exemplo n.º 3
0
    function OS_ShowTopCountry()
    {
        global $db;
        //TOP BY COUNTRIES
        $sth = $db->prepare("SELECT COUNT( country_code ) AS total, country_code \n    FROM  `" . OSDB_STATS . "` \n    GROUP BY country_code\n    ORDER BY total DESC \n    LIMIT 100");
        $result = $sth->execute();
        $c = 0;
        $TopCountriesData = array();
        if (empty($Countries)) {
            include "inc/countries.php";
        }
        while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
            $TopCountriesData[$c]["counter"] = $c + 1;
            $TopCountriesData[$c]["total"] = $row["total"];
            $TopCountriesData[$c]["code"] = $row["country_code"];
            if (isset($Countries[strtoupper($row["country_code"])])) {
                $TopCountriesData[$c]["country"] = $Countries[strtoupper($row["country_code"])];
            } else {
                $TopCountriesData[$c]["country"] = $row["country_code"];
            }
            $c++;
        }
        ?>
<a name="top_countries"></a>
<div id="content" class="s-c-x">
<div class="wrapper">   
    <div id="main-column">
     <div class="padding">
      <div class="inner">  
	  <h2>Total players by country</h2>
	  <div>
	  <table>
	  <tr>
	    <th>#</th>
	    <th>Country</th>
		<th>Total players:</th>
	  </tr>
	  <?php 
        foreach ($TopCountriesData as $TopCountry) {
            ?>
	  <tr>
	    <td width="32"><?php 
            echo $TopCountry["counter"];
            ?>
</td>
	    <td width="195">
		<?php 
            echo OS_ShowUserFlag($TopCountry["code"], $TopCountry["country"]);
            ?>
 
		<?php 
            echo $TopCountry["country"];
            ?>
		</td>
		<td><a href="<?php 
            echo OS_HOME;
            ?>
?top&amp;country=<?php 
            echo $TopCountry["code"];
            ?>
"><?php 
            echo $TopCountry["total"];
            ?>
 players</a></td>
	  </tr>
	  <?php 
        }
        $sth = $db->prepare("SELECT COUNT(*) FROM " . OSDB_STATS . " \n  WHERE id>=1 LIMIT 1");
        $result = $sth->execute();
        $r = $sth->fetch(PDO::FETCH_NUM);
        $TotalStatsPlayers = number_format($r[0]);
        ?>
	   </table>
	   </div>
	   <div class="padLeft">
	   There are total of <b><?php 
        echo $TotalStatsPlayers;
        ?>
</b> players.
	   </div>
     </div>
    </div>
   </div>
  </div>
</div>
   <?php 
    }
Exemplo n.º 4
0
		  <th width="120">Date</th>
		   <?php 
        if (isset($_GET["search_type"]) and $_GET["search_type"] <= 1) {
            ?>
		  <th>Banned by</th>
		  <?php 
        }
        ?>
		</tr>
		<?php 
        foreach ($IPData as $data) {
            ?>
		   <tr>
		     <td>
			 <?php 
            echo OS_ShowUserFlag($data["letter"], $data["country"], 175);
            ?>
  
			 <a href="<?php 
            echo OS_HOME;
            ?>
?u=<?php 
            echo $data["name"];
            ?>
"><b><?php 
            echo $data["name"];
            ?>
</b></a>
			 <span style="float:right"><a href="javascript:;" onclick="if(confirm('Delete ban?')) { location.href='<?php 
            echo OS_HOME;
            ?>
Exemplo n.º 5
0
    if (OS_TOP_ONLINE == 1) {
        ?>
    <td width="26"><?php 
        echo OS_DisplayOnline($Data["gamename"], $Data["gameid"], $Data["botid"]);
        ?>
</td>
	<?php 
    }
    ?>
    <td width="190" class="font12">
	<?php 
    echo OS_ComparePlayers('checkbox', $Data["id"]);
    ?>
	
	<?php 
    echo OS_ShowUserFlag($Data["letter"], $Data["country"]);
    ?>
	<?php 
    echo OS_TopUser($Data["id"], $Data["player"]);
    ?>
	<?php 
    echo OS_IsUserGameBanned($Data["banned"], $lang["banned"]);
    ?>
	
	<?php 
    echo OS_IsUserGameAdmin($Data["admin"]);
    ?>
	<!--
	<?php 
    echo OS_IsUserGameLeaver($Data["leaver"], $lang["leaves"] . ": " . $Data["leaver"] . "<div>" . $lang["stayratio"] . ": " . $Data["stayratio"] . "%</div>");
    ?>
Exemplo n.º 6
0
    die;
}
foreach ($UserData as $User) {
    ?>
<div id="content" class="s-c-x">
<div class="wrapper">   
    <div id="main-column">
     <div class="padding">
      <div class="inner">
	 
<table>
   <tr>
     <td class="padLeft" width="400">
  <h1>
	<?php 
    echo OS_ShowUserFlag($User["letter"], $User["country"], 220);
    ?>
    <?php 
    echo $User["player"];
    ?>
  
	<?php 
    echo OS_IsUserGameBanned($User["banned"], $lang["banned"]);
    ?>
 
	<?php 
    echo OS_IsUserGameAdmin($User["GameAdmin"]);
    ?>
	<?php 
    echo OS_IsUserGameLeaver($User["leaver"], $lang["leaves"] . ": " . $User["leaver"] . "<div>" . $lang["stayratio"] . ": " . $User["stayratio"] . "%</div>", 1);
    ?>
Exemplo n.º 7
0
                    $PlayerData["wins"] = '<span class="no_rank">' . $lang["gl_not_ranked"] . '</span>';
                    $PlayerData["losses"] = "";
                }
                ?>
	 <tr>
	  <td class="padLeft"><?php 
                echo $PlayerData["slot"];
                ?>
</td>
	  <td class="slot<?php 
                echo $PlayerData["slot"];
                ?>
" width="250">
	  <?php 
                if (!empty($PlayerData["letter"])) {
                    OS_ShowUserFlag($PlayerData["letter"], $PlayerData["country"]);
                }
                ?>
      <?php 
                if ($PlayerData["wins"] <= 0 and $PlayerData["losses"] <= 0) {
                    ?>
	
      <span class="PlayerListSingle col<?php 
                    echo $PlayerData["slot"];
                    ?>
"><?php 
                    echo $PlayerName;
                    ?>
</span>
      <?php 
                } else {
Exemplo n.º 8
0
	 <th width="130"><?php 
echo $lang["date"];
?>
</th>
	 <th width="120"><?php 
echo $lang["bannedby"];
?>
</th>
   </tr>
  <?php 
foreach ($BansData as $Ban) {
    ?>
  <tr class="row">
    <td width="180" class="padLeft font12">
	  <?php 
    echo OS_ShowUserFlag($Ban["letter"], $Ban["country"]);
    ?>
	  <a href="<?php 
    echo OS_HOME;
    ?>
?u=<?php 
    echo strtolower($Ban["name"]);
    ?>
"><?php 
    echo $Ban["name"];
    ?>
</a>
	  <?php 
    if (is_logged() and isset($_SESSION["level"]) and $_SESSION["level"] >= 9) {
        ?>
	  <a style="float: right; font-size:11px; padding-right: 5px;" href="<?php 
Exemplo n.º 9
0
	     <tr>
		    <td width="220"><img src="<?php 
    echo $Member["avatar"];
    ?>
" alt="user_avatar" width="220" /></td>
			<td>
			<h2>
			<?php 
    echo OS_bnet_icon($Member["user_bnet"], 32, 32, "imgvalign padLeft");
    ?>
			<?php 
    echo $Member["user_name"];
    ?>
 
			<?php 
    echo OS_ShowUserFlag($Member["letter"], $Member["country"], 160);
    ?>
			<?php 
    echo OS_IsMemberActive($Member["code"], "Waiting for activation", 1, "imgvalign", 24, 24);
    ?>
			<?php 
    echo OS_IsUserGameAdmin($Member["user_level"], 1, "imgvalign", 24, 24);
    ?>
			<!--<?php 
    echo OS_user_admin_icon($Member["user_level"], $lang["member_root"], $lang["member_admin"], 24, 24, "imgvalign");
    ?>
-->
			<?php 
    echo OS_protected_icon($Member["user_ppwd"], $Member["user_bnet"], $lang["protected_account"], 24, 24, "imgvalign");
    ?>
			</h2>