query("SELECT * FROM mybb_users WHERE uid = 1;") or die ($connection->error); $arh_data = $query_arh->fetch_assoc(); $arh_avatar = $arh_data['avatar']; $av = explode(':', $arh_avatar); if ($arh_avatar != 'http://forum.mentlegen.pl/admin/styles/sharepoint/images/default_avatar.gif') { if ($av == NULL || $av[0] != "http") $arh_avatar = 'http://forum.mentlegen.pl/'.$arh_avatar; } $query_arhi = $connection->query("SELECT fid4 FROM mybb_userfields WHERE ufid = ".$arh_data['uid'].";") or die ($connection->error); $arh_steamid = $query_arhi->fetch_assoc(); $arh_steamid = $arh_steamid['fid4']; */ function getFriendId($steamId) { //Test input steamId for invalid format //Example SteamID: "STEAM_X:Y:ZZZZZZZZ" $gameType = 0; //This is X. It's either 0 or 1 depending on which game you are playing (CSS, L4D, TF2, etc) $authServer = 0; //This is Y. Some people have a 0, some people have a 1 $clientId = ''; //This is ZZZZZZZZ. //Remove the "STEAM_" $steamId = str_replace('STEAM_', '' ,$steamId); //Split steamId into parts $parts = explode(':', $steamId); $gameType = $parts[0]; $authServer = $parts[1]; $clientId = $parts[2]; //Calculate friendId $result = bcadd((bcadd('76561197960265728', $authServer)), (bcmul($clientId, '2'))); return($result); } /* $arh_communityid = getFriendId($arh_steamid); $arh_dane = simplexml_load_file('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=xml&steamids='.$arh_communityid) or die ('Dead'); echo $arh_dane; $arh_web = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='.$arh_communityid); $arh_dane = json_decode($arh_web, true); $arh_dane = $arh_dane['response']['players'][0]; */ //echo $arh_steamid; /* $arh = SteamID::getFromSteamID($arh_steamid); if ($arh_dane['personastate'] == (1 || 2 || 4)) { $arh_status = 'Online'; } else { $arh_status = 'Offline'; } */ $query = $connection->query("SELECT * FROM mybb_users WHERE usergroup = 4 OR usergroup = 10 OR additionalgroups LIKE '%,10,%' OR additionalgroups LIKE '10,%' OR additionalgroups = 10 OR additionalgroups LIKE '%,10' OR usergroup = 9 OR additionalgroups LIKE '%,9,%' OR additionalgroups LIKE '9,%' OR additionalgroups = 9 OR additionalgroups LIKE '%,9' OR usergroup = 22 OR additionalgroups LIKE '%,22,%' OR additionalgroups LIKE '22,%' OR additionalgroups = 22 OR additionalgroups LIKE '%,22' OR usergroup = 24 OR additionalgroups LIKE '%,24,%' OR additionalgroups LIKE '24,%' OR additionalgroups = 24 OR additionalgroups LIKE '%,24' OR usergroup = 23 OR additionalgroups LIKE '%,23,%' OR additionalgroups LIKE '23,%' OR additionalgroups = 23 OR additionalgroups LIKE '%,23';") or die ('Error'); if ($query->num_rows > 0) { $web = 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='; while ($data = $query->fetch_assoc()) { $avatar = $data['avatar']; if ($avatar == NULL) $avatar = 'http://forum.mentlegen.pl/images/default_avatar.png'; $ava = explode(':', $avatar); if ($avatar != 'http://forum.mentlegen.pl/admin/styles/sharepoint/images/default_avatar.gif') { if ($ava == NULL || $ava[0] != "http") $avatar = 'http://forum.mentlegen.pl/'.$avatar; } $id = $data['steamid']; $usergroup = $data['usergroup']; $agroups = explode(',', $data['additionalgroups']); /*$player = SteamID::getFromSteamID($steamid); $player_web = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='.$communityid); $player = json_decode($player_web, true); $player = $player['response']['players'][0]; if ($player['personastate'] == (1 || 2 || 4)) { $status = 'Online'; } else { $status = 'Offline'; } */ if ($usergroup == 9 || in_array(9, $agroups)) { $admins['mn'][] = $id; $admins['mn'][$id]['rank'] = 'Admin'; $admins['mn'][$id]['avatar'] = $avatar; $admins['mn'][$id]['name'] = $data['username']; } elseif ($usergroup == 10 || in_array(10, $agroups)) { $admins['mn'][] = $id; $admins['mn'][$id]['rank'] = 'GlobalAdmin'; $admins['mn'][$id]['avatar'] = $avatar; $admins['mn'][$id]['name'] = $data['username']; } elseif ($usergroup == 22 || in_array(22, $agroups)) { $admins['ttt'][] = $id; $admins['ttt'][$id]['rank'] = 'Admin'; $admins['ttt'][$id]['avatar'] = $avatar; $admins['ttt'][$id]['name'] = $data['username']; } elseif ($usergroup == 23 || in_array(23, $agroups)) { $admins['rog'][] = $id; $admins['rog'][$id]['rank'] = 'Właściciel'; $admins['rog'][$id]['avatar'] = $avatar; $admins['rog'][$id]['name'] = $data['username']; } elseif ($usergroup == 24 || in_array(24, $agroups)) { $admins['gr'][] = $id; $admins['gr'][$id]['rank'] = 'Admin'; $admins['gr'][$id]['avatar'] = $avatar; $admins['gr'][$id]['name'] = $data['username']; } elseif ($usergroup == 4) { $admins['mn'][] = $id; $admins['mn'][$id]['rank'] = 'HeadAdmin'; $admins['mn'][$id]['avatar'] = $avatar; $admins['mn'][$id]['name'] = $data['username']; $admins['ttt'][] = $id; $admins['ttt'][$id]['rank'] = 'HeadAdmin'; $admins['ttt'][$id]['avatar'] = $avatar; $admins['ttt'][$id]['name'] = $data['username']; $admins['gr'][] = $id; $admins['gr'][$id]['rank'] = 'HeadAdmin'; $admins['gr'][$id]['avatar'] = $avatar; $admins['gr'][$id]['name'] = $data['username']; $admins['rog'][] = $id; $admins['rog'][$id]['rank'] = 'HeadAdmin'; $admins['rog'][$id]['avatar'] = $avatar; $admins['rog'][$id]['name'] = $data['username']; } $web = $web.$id.','; } $context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n'))); $pweb = file_get_contents($web, false, $context); $pweb = json_decode($pweb, true); } ?>

Administracja na serwerach

Mentlegen {24/7}

Online'; } else { $status = ''; } echo ''; echo ' '.$status.$admins['mn'][$id]['rank']; echo ''; } else { continue; } } /* $query = $connection->query("SELECT * FROM mybb_users WHERE usergroup = 10 OR additionalgroups LIKE '%,10,%' OR additionalgroups LIKE '10,%' OR additionalgroups = 10 OR additionalgroups LIKE '%,10';") or die ('Error'); if ($query->num_rows > 0) { while ($data = $query->fetch_assoc()) { $avatar = $data['avatar']; if ($avatar != 'http://forum.mentlegen.pl/admin/styles/sharepoint/images/default_avatar.gif') { $avatar = 'http://forum.mentlegen.pl/'.$avatar; } $query = $connection->query("SELECT fid4 FROM mybb_userfields WHERE ufid = ".$data['uid'].";"); $steamid = $query->fetch_assoc(); $steamid = $steamid['fid4']; $communityid = getFriendId($steamid); //$player = SteamID::getFromSteamID($steamid); $player_web = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='.$communityid); $player = json_decode($player_web, true); $player = $player['response']['players'][0]; if ($player['personastate'] == (1 || 2 || 4)) { $status = ''; } else { $status = ''; } echo ''; echo ' '.$status.' '; echo ''; } } $query2 = $connection->query("SELECT * FROM mybb_users WHERE usergroup = 9 OR additionalgroups LIKE '%,9,%' OR additionalgroups LIKE '9,%' OR additionalgroups = 9 OR additionalgroups LIKE '%,9';"); if ($query2->num_rows > 0) { while ($data = $query2->fetch_array()) { $avatar = $data['avatar']; $ava = explode(':', $avatar); if (avatar != 'http://forum.mentlegen.pl/admin/styles/sharepoint/images/default_avatar.gif') { if ($ava == NULL || $ava[0] != "http") $avatar = 'http://forum.mentlegen.pl/'.$avatar; } $query = $connection->query("SELECT fid4 FROM mybb_userfields WHERE ufid = ".$data['uid'].";"); $steamid = $query->fetch_assoc(); $steamid = $steamid['fid4']; $communityid = getFriendId($steamid); //$player = SteamID::getFromSteamID($steamid); $player_web = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='.$communityid); $player = json_decode($player_web, true); $player = $player['response']['players'][0]; if ($player['personastate'] == (1 || 2 || 4)) { $status = ''; } else { $status = ''; } echo ''; echo ' '.$status.' '; echo ''; } } */ ?>
Avatar Nick na forum Nick na Steam Link do profilu Steam Status Steam Ranga
Offline
Avatar '.$admins['mn'][$id]['name'].' '.$admins['mn'][$id]['name'].' '.$player['personaname'].' Link
OnlineOffline
Avatar '.$data['username'].' '.$data['username'].' '.$player['personaname'].' LinkAdmin
OnlineOffline
Avatar '.$data['username'].' '.$data['username'].' '.$player['personaname'].' LinkAdmin

GentleTraitors

Online'; } else { $status = ''; } echo ''; echo ' '.$status.$admins['ttt'][$id]['rank']; echo ''; } else { continue; } } /* $query = $connection->query("SELECT * FROM mybb_users WHERE usergroup = 22 OR additionalgroups LIKE '%,22,%' OR additionalgroups LIKE '22,%' OR additionalgroups = 22 OR additionalgroups LIKE '%,22';") or die ('Error'); if ($query->num_rows > 0) { while ($data = $query->fetch_assoc()) { $avatar = $data['avatar']; $ava = explode(':', $avatar); if (avatar != 'http://forum.mentlegen.pl/admin/styles/sharepoint/images/default_avatar.gif') { if ($ava == NULL || $ava[0] != "http") $avatar = 'http://forum.mentlegen.pl/'.$avatar; } $query = $connection->query("SELECT fid4 FROM mybb_userfields WHERE ufid = ".$data['uid'].";"); $steamid = $query->fetch_assoc(); $steamid = $steamid['fid4']; $communityid = getFriendId($steamid); //$player = SteamID::getFromSteamID($steamid); $player_web = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='.$communityid); $player = json_decode($player_web, true); $player = $player['response']['players'][0]; if ($player['personastate'] == (1 || 2 || 4)) { $status = ''; } else { $status = ''; } echo ''; echo ' '.$status.' '; echo ''; } } */ ?>
Avatar Nick na forum Nick na Steam Link do profilu Steam Status Steam Ranga
Offline
Avatar '.$admins['ttt'][$id]['name'].' '.$admins['ttt'][$id]['name'].' '.$player['personaname'].' Link
OnlineOffline
Avatar '.$data['username'].' '.$data['username'].' '.$player['personaname'].' LinkAdmin

GentleRunners

Online'; } else { $status = ''; } echo ''; echo ' '.$status.$admins['ci'][$id]['rank']; echo ''; } else { continue; } } /* $query = $connection->query("SELECT * FROM mybb_users WHERE usergroup = 24 OR additionalgroups LIKE '%,24,%' OR additionalgroups LIKE '24,%' OR additionalgroups = 24 OR additionalgroups LIKE '%,24';") or die ('Error'); if ($query->num_rows > 0) { while ($data = $query->fetch_assoc()) { $avatar = $data['avatar']; $ava = explode(':', $avatar); if (avatar != 'http://forum.mentlegen.pl/admin/styles/sharepoint/images/default_avatar.gif') { if ($ava == NULL || $ava[0] != "http") $avatar = 'http://forum.mentlegen.pl/'.$avatar; } $query = $connection->query("SELECT fid4 FROM mybb_userfields WHERE ufid = ".$data['uid'].";"); $steamid = $query->fetch_assoc(); $steamid = $steamid['fid4']; $communityid = getFriendId($steamid); //$player = SteamID::getFromSteamID($steamid); $player_web = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='.$api.'&format=json&steamids='.$communityid); $player = json_decode($player_web, true); $player = $player['response']['players'][0]; if ($player['personastate'] == (1 || 2 || 4)) { $status = ''; } else { $status = ''; } echo ''; echo ' '.$status.' '; echo ''; } } */ ?>
Avatar Nick na forum Nick na Steam Link do profilu Steam Status Steam Ranga
Offline
Avatar '.$admins['ci'][$id]['name'].' '.$admins['ci'][$id]['name'].' '.$player['personaname'].' Link
OnlineOffline
Avatar '.$data['username'].' '.$data['username'].' '.$player['personaname'].' LinkAdmin