示例#1
0
    ?>
	  </td>
	</tr>
<?php 
    echo OS_RealmUsername($ProfileData[0]["bnet_username"]);
    if ($ProfileData[0]["user_level_expire"] != '0000-00-00 00:00:00') {
        ?>
<tr>
  <td class="padLeft" width="130"><?php 
        echo $lang["expire"];
        ?>
:</td>
  <td>
      <div>
	  <?php 
        echo OS_IsUserGameAdmin($ProfileData[0]["user_level"]);
        ?>
	  <?php 
        echo OS_ShowUserRole($ProfileData[0]["user_level"]);
        ?>
	  </div>
      <div><?php 
        echo OS_ExpireDateRemain($ProfileData[0]["user_level_expire"]);
        ?>
</div>
      <div><?php 
        echo $ProfileData[0]["role_expire_date"];
        ?>
</div>
  </td>
</tr>  
示例#2
0
    ?>
"></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"];
    ?>
</span>
 </div>
 <div class="<?php 
    echo $Game["hideElement"];
    ?>
示例#3
0
function OS_Mod_DisplayUserLevel($level = "", $expire = "")
{
    if ($level >= 1) {
        OS_IsUserGameAdmin($level);
        echo "<b>" . OS_ShowUserRole($level) . "</b>";
        if ($expire != '0000-00-00 00:00:00') {
            global $lang;
            ?>
	- <?php 
            echo OS_ExpireDateRemain($expire);
            ?>
 (<?php 
            echo date(OS_DATE_FORMAT, strtotime($expire));
            ?>
)
	<?php 
        } else {
            ?>
 (Never Expire)<?php 
        }
    }
}
示例#4
0
	<?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>");
    ?>
-->
	</td>
	<td width="35" class="font12"><?php 
    echo $Data["level"];
    ?>
</td>
	<td width="80" class="font12"><?php 
    echo $Data["score"];
    ?>
</td>
示例#5
0
        ?>
"><?php 
        echo $data["bnet_username"];
        ?>
</a>
			<?php 
        if ($data["blacklisted"] == 1) {
            ?>
			 <span style="color:red">(blacklisted)</span>
			<?php 
        }
        ?>
			</td>
			<td width="180">
			<?php 
        echo OS_IsUserGameAdmin($data["user_level"]);
        ?>
 
			<?php 
        echo OS_ShowUserRole($data["user_level"]);
        ?>
 ( <?php 
        echo $data["user_level"];
        ?>
 )</td>
			<td>
     <?php 
        if ($data["user_level_expire"] != '0000-00-00 00:00:00') {
            ?>
	 
	 <?php 
示例#6
0
   <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);
    ?>
	<?php 
    echo OS_bnet_icon($User["user_bnet"], 14, 14, "imgvalign");
    ?>
	<?php 
    echo OS_protected_icon($User["user_ppwd"], $User["user_bnet"], $lang["protected_account"], 14, 14, "imgvalign");
    ?>
 
  </h1>

  
  <table style="border:none; border:0; font-family: Arial, Verdana; font-size:12px;"> 
示例#7
0
    function OS_ShowOnline()
    {
        $CurrentTime = time();
        global $db;
        $sth = $db->prepare("SELECT COUNT(*) FROM `online_users` WHERE user_id>= 1 \n\t AND timedate>'" . ($CurrentTime - OS_OnlineTime) . "' ");
        $result = $sth->execute();
        $r = $sth->fetch(PDO::FETCH_NUM);
        $TotalOnline = $r[0];
        $sth = $db->prepare("SELECT COUNT(*) FROM `online_users` WHERE user_id<= 0 \n\t AND timedate>'" . ($CurrentTime - OS_OnlineTime) . "' ");
        $result = $sth->execute();
        $r = $sth->fetch(PDO::FETCH_NUM);
        $TotalGuests = $r[0];
        $TotalUsers = $TotalGuests + $TotalOnline;
        $sth = $db->prepare("SELECT * FROM `online_users` WHERE user_id<= 0 \n\t AND timedate>'" . ($CurrentTime - OS_OnlineTime) . "' LIMIT 50");
        $result = $sth->execute();
        $BOTS = "";
        $BotsOnline = 0;
        while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
            //Hard-coded BOTS. To do: function for bots
            if (!isset($GoogleBot) and strstr($row["user_agent"], "google.com")) {
                $GoogleBot = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Google[BOT]</span>, ';
            }
            if (!isset($BaiduBot) and strstr($row["user_agent"], "Baiduspider")) {
                $BaiduBot = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Baiduspider[BOT]</span>, ';
            }
            if (!isset($AhrefsBot) and strstr($row["user_agent"], "ahrefs.com")) {
                $AhrefsBot = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">AhrefsBot[BOT]</span>, ';
            }
            if (!isset($Yandex) and strstr($row["user_agent"], "yandex.com")) {
                $Yandex = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Yandex[BOT]</span>, ';
            }
            if (!isset($Bing) and strstr($row["user_agent"], "bing.com")) {
                $Bing = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Bing[BOT]</span>, ';
            }
            if (!isset($Majestic12) and strstr($row["user_agent"], "majestic12.co.uk")) {
                $Majestic12 = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Majestic-12[BOT]</span>, ';
            }
            if (!isset($MSN) and strstr($row["user_agent"], "search.msn.com")) {
                $MSN = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">MSN[BOT]</span>, ';
            }
            if (!isset($Alexa) and strstr($row["user_agent"], "alexa.com")) {
                $Alexa = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Alexa[BOT]</span>, ';
            }
            if (!isset($W3C) and strstr($row["user_agent"], "validator.w3.org")) {
                $W3C = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">W3C[Validator]</span>, ';
            }
            if (!isset($Yahoo) and strstr($row["user_agent"], "yahoo.")) {
                $Yahoo = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">Yahoo[BOT]</span>, ';
            }
            if (!isset($BLEXBot) and strstr($row["user_agent"], "BLEXBot")) {
                $BLEXBot = 1;
                $TotalGuests -= 1;
                $TotalOnline++;
                $BotsOnline++;
                $BOTS .= '<span style="color:#A8A8A8;">BLEXBot[BOT]</span>, ';
            }
        }
        ?>
<div class="clr"></div>
 <div class="ct-wrapper"  id="content" class="s-c-x">
  <div class="outer-wrapper wrapper">
   <div class="content section" id="main-column">
    <div class="widget Blog padding">
     <div class="blog-posts hfeed padLeft padTop padBottom inner">
	 
	 <div>
	 In total there are <b><?php 
        echo $TotalUsers;
        ?>
</b> users online :: <?php 
        echo $TotalOnline;
        ?>
 registered and <?php 
        echo $TotalGuests;
        ?>
 guests (based on users active over the past <?php 
        echo ROUND(OS_OnlineTime / 60, 0);
        ?>
 minutes)
	 </div>
	 
	 <?php 
        $M = 0;
        if ($TotalOnline - $BotsOnline >= 1) {
            $sth = $db->prepare("SELECT o.user_id, o.timedate, o.user_ip, o.user_agent, u.user_name, u.user_level, u.user_bnet\n\t FROM `online_users` as o \n\t LEFT JOIN " . OSDB_USERS . " as u on u.user_id = o.user_id\n\t WHERE o.user_id>= 1 AND o.timedate>'" . ($CurrentTime - OS_OnlineTime) . "' \n\t ORDER BY  u.user_last_login DESC\n\t LIMIT 50");
            $result = $sth->execute();
            $OnlineUsers = array();
            $c = 0;
            $BuildOnlineUsers = "";
            $Bots = "";
            while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
                $OnlineUsers[$c]["user_id"] = $row["user_id"];
                $OnlineUsers[$c]["user_ip"] = $row["user_ip"];
                $OnlineUsers[$c]["timedate"] = $row["timedate"];
                $OnlineUsers[$c]["user_agent"] = $row["user_agent"];
                $OnlineUsers[$c]["user_name"] = $row["user_name"];
                $level = $row["user_level"];
                $c++;
                $style = ' style="font-size:13px; color: #5A5A5A; "';
                $img = "";
                $bnet = "";
                if ($row["user_bnet"] >= 1) {
                    $bnet = ' <img src="' . OS_HOME . 'img/bnet.png" alt="bnet" width="16" height="16" class="imgvalign" /> ';
                    //245592
                    $style = ' style="color: #245592; font-size:13px;"';
                }
                if ($row["user_level"] >= 5) {
                    $style = ' style="color: #009900; font-size:13px;"';
                    $img = '<img src="' . OS_HOME . 'img/safelist.png" width="16" height="16" class="imgvalign" alt="icon" />';
                }
                if ($row["user_level"] == 10) {
                    $style = ' style="font-weight: bold; color: #B40303; font-size:13px;"';
                    $img = '<img src="' . OS_HOME . 'img/safelist.png" width="16" height="16" class="imgvalign" alt="icon" />';
                }
                $img = OS_IsUserGameAdmin($level, 1, "imgvalign", 16, 16, 0);
                $BuildOnlineUsers .= "{$img} {$bnet} <a href='" . OS_HOME . "?member=" . $row["user_id"] . "'><span" . $style . ">" . $row["user_name"] . "</span></a>, ";
                $M = 1;
            }
            $BuildOnlineUsers = substr($BuildOnlineUsers, 0, -2);
            ?>
	 <div>Registered users:</div>
	 <span>
	 <?php 
            echo $BuildOnlineUsers;
            ?>
 
	 </span>
	 <?php 
        }
        $BOTS = substr($BOTS, 0, -2);
        if ($TotalOnline <= 0) {
            ?>
<div>Registered users:</div><?php 
        } else {
            if (!empty($BOTS) and $M >= 1) {
                echo ", ";
            }
        }
        echo $BOTS;
        ?>

	 <?php 
        $time = time() - 3600 * 24;
        $sth = $db->prepare("SELECT * FROM " . OSDB_USERS . " WHERE code='' AND user_last_login>={$time} ORDER BY user_last_login DESC LIMIT 50");
        $result = $sth->execute();
        ?>
	 <div class="padTop">Recently visited:</div>
	 <?php 
        $latest = "";
        $c = 0;
        while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
            $style = ' style="font-size:13px; color: #5A5A5A; "';
            if ($row["user_bnet"] >= 1) {
                //245592
                $style = ' style="color: #245592; font-size:13px;"';
            }
            if ($row["user_level"] == 9) {
                $style = ' style="color: #009900; font-size:13px;"';
            }
            if ($row["user_level"] == 10) {
                $style = ' style="font-weight: bold; color: #B40303; font-size:13px;"';
            }
            $img = OS_IsUserGameAdmin($row["user_level"], 1, "imgvalign", 16, 16, 0);
            //$style = ' style="font-size:13px; color: #5A5A5A; "'; $bnet = "";
            $latest .= $img . '<a href="' . OS_HOME . '?member=' . $row["user_id"] . '"><span' . $style . '> ' . $row["user_name"] . '</span></a>, ';
            //if ( $c>=8 ) { $latest.="<br />"; $c=0; }
            $c++;
        }
        $latest = substr($latest, 0, -2);
        echo $latest;
        ?>
	  
	 </div>
    </div>
   </div>
  </div>
</div>
	 <?php 
    }
示例#8
0
            echo LinkUserProfile($Comment["username"], OS_HOME . "?member=" . $Comment["user_id"]);
            ?>
</b>
		</span>, 
<?php 
        }
        ?>
		<i><?php 
        echo $Comment["date"];
        ?>
</i>
		<?php 
        echo OS_bnet_icon($Comment["user_bnet"], 16, 16, "imgvalign");
        ?>
		<?php 
        echo OS_IsUserGameAdmin($Comment["user_level"], 1, "imgvalign", 16, 16);
        ?>
        <?php 
        if (is_logged() and isset($_SESSION["level"]) and $_SESSION["level"] >= 9) {
            ?>
		<a style="float: right; padding-right: 10px;" href="javascript:;" onclick="if (confirm('Delete comment?') ) { location.href='<?php 
            echo OS_HOME;
            ?>
?post_id=<?php 
            echo $Comment["post_id"];
            ?>
&delete_comment=<?php 
            echo $Comment["id"];
            ?>
' }" >&times;</a>
        | <a style="padding-left: 10px; font-size:11px;" href="<?php 
示例#9
0
	    <a href="<?php 
                    echo OS_HOME;
                    ?>
?u=<?php 
                    echo strip_tags($PlayerName);
                    ?>
" target="_blank">
		<span class="PlayerListSingle col<?php 
                    echo $PlayerData["slot"];
                    ?>
"><?php 
                    echo $PlayerName;
                    ?>
</span>
	    <?php 
                    echo OS_IsUserGameAdmin($PlayerData["level"]);
                    ?>
		</a>
	 <?php 
                }
                ?>
	  <?php 
                if (!empty($PlayerData["realm"])) {
                    ?>
<div style="font-size:11px;"><?php 
                    echo $PlayerData["realm"];
                    ?>
</div><?php 
                }
                ?>
	  </td>
示例#10
0
	  <?php 
    if (!empty($search_admin)) {
        $addstr2 = "&amp;log_admin=" . $search_admin;
    } else {
        $addstr2 = "";
    }
    ?>
	  <?php 
    if (isset($_GET["page"])) {
        $addstr3 = "&amp;page=" . (int) $_GET["page"];
    } else {
        $addstr3 = "";
    }
    ?>
	  <td><?php 
    echo OS_IsUserGameAdmin($level);
    ?>
 <a href="<?php 
    echo OS_HOME;
    ?>
adm/?admin_logs<?php 
    echo $addstr;
    ?>
&amp;log_admin=<?php 
    echo $admin;
    ?>
"><?php 
    echo $admin;
    ?>
</a> [<?php 
    echo $gamelobby;
示例#11
0
            echo $dis;
            ?>
 type="text" size="10" value="<?php 
            echo $row["points"];
            ?>
" name="points" />
	  <input <?php 
            echo $dis;
            ?>
 type="submit" value="save" class="menuButtons" />
	  </form>
	  </div>
	  </td>
	  <td>
	   <?php 
            echo OS_IsUserGameAdmin($row["user_level"]);
            ?>
	   <?php 
            echo OS_ShowUserRole($row["user_level"]);
            ?>
	  <?php 
            echo $banned;
            ?>
 
	  </td>
	</tr>
	<?php 
        }
        if (isset($GeoIP) and $GeoIP == 1) {
            geoip_close($GeoIPDatabase);
        }
示例#12
0
			<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>
			<?php 
    if (OS_is_admin()) {
        ?>
	        <div class="padLeft"><?php 
        echo $Member["user_email"];
        ?>
示例#13
0
    ?>
	   <a href="<?php 
    echo OS_HOME;
    ?>
?member=<?php 
    echo $User["id"];
    ?>
"><b><?php 
    echo $User["user_name"];
    ?>
</b></a>
	   <?php 
    echo OS_IsMemberActive($User["code"], $lang["unconfirmed_email"]);
    ?>
	   <?php 
    echo OS_IsUserGameAdmin($User["user_level"], 1, "imgvalign floatR", 20, 20);
    ?>
	   <?php 
    echo OS_bnet_icon($User["user_bnet"]);
    ?>
	   <?php 
    echo OS_protected_icon($User["user_ppwd"], $User["user_bnet"], $lang["protected_account"]);
    ?>
	     <?php 
    if (OS_is_admin()) {
        ?>
	     <div><?php 
        echo $User["user_email"];
        ?>
</div><?php 
        echo EditUserLink($User["id"]);
示例#14
0
    </tr>
   
   <?php 
foreach ($AdminsData as $Admin) {
    ?>
    <tr>
	   <td><?php 
    echo OS_AdminIcon($Admin["level"]);
    ?>
</td>
       <td width="180" class="padLeft"><?php 
    echo OS_AdminLink($Admin["id"], $Admin["name"]);
    ?>
</td>
	   <td width="32"><?php 
    echo OS_IsUserGameAdmin($Admin["level"]);
    ?>
</td>
	   <td width="135"><?php 
    echo $Admin["server"];
    ?>
</td>
	   <td><?php 
    echo $Admin["last_login"];
    ?>
</td>
    </tr>
   <?php 
}
?>
   </table>