mrsiret Posted February 25, 2016 Posted February 25, 2016 hello guys i loking for html code for my website any one can give me the code? Quote
ganjaradio Posted February 25, 2016 Posted February 25, 2016 you need to make a check that checks if the ip and port is opened i dont exactly remember the words for example if ip=xxx port=xxx show Online else if ip= port= off show Offline sth like that Quote
mrsiret Posted February 25, 2016 Author Posted February 25, 2016 On 2/25/2016 at 2:09 PM, ganjaradio said: you need to make a check that checks if the ip and port is opened i dont exactly remember the words for example if ip=xxx port=xxx show Online else if ip= port= off show Offline sth like that you can give me the html code plz? i need the code and i change the ip port.. Quote
SQL Developer Posted February 25, 2016 Posted February 25, 2016 (edited) Wrong sorry for spam ;D Edited February 25, 2016 by L2LostWard Quote
SQL Developer Posted February 25, 2016 Posted February 25, 2016 Foto config.php <?php // Configurações do MySQL $sql['usr'] = "root"; # Usuário, Ex: "root" (Geralmente é root mesmo) $sql['pass'] = ""; # Senha, caso não tenha definido, deixe em branco, Ex: "" $sql['db'] = "l2jdb"; # Database, Ex: "l2jdb" $sql['host'] = "localhost"; # Endereço do servidor MySQL, Ex: "localhost" // Fim das configurações do MySQL // Não mexer abaixo $open = mysql_connect($sql['host'], $sql['usr'], $sql['pass']) or die("Não foi possível conectar-se à database."); $select_db = mysql_select_db($sql['db'], $open) or die("Database não encontrada ou inexistente."); // Não mexer acima // STATUS DO SERVIDOR //Configurações para mostrar Servidor Online/Offline no Site $servidor = 'ip';//IP onde o Server está hospedado $loginserver = @fsockopen($servidor, 2106, $errno, $errstr, 2); $gameserver = @fsockopen($servidor, 7777, $errno2, $errstr2, 2); // OPÇÃO DOS PLAYERS ONLINE //$select = mysql_query("SELECT * FROM characters WHERE online = '1'") or die (mysql_error()); //$co = mysql_num_rows($select); // OPÇÃO DOS PLAYERS ONLINE //PLAYERS ONLINE $online_add = "27";#ADICIONE AQUI O NUMERO A MAIS DE PLAYERS switch($online_add){ case $online_add < 0; echo "Valor da variavel esta incorreto"; break; exit; } $seleciona_valores = mysql_query("SELECT * FROM characters WHERE online = '1'") or die (mysql_error()); // Configurações Gerais $ddos = "Active"; $guard = "Active"; $update1 = "Fixed Reward Siege"; $update2 = "Fixed Reward Events"; $update3 = "Fixed TW Event"; $update4 = "Fixed Blessed 90%"; $update5 = "Fixed Quake Announce"; $update6 = "Fixed PvP/Pk Announce"; $update7 = "Fixed PVP AREA - Field of whispers"; // VOTES $votegs = "http://www.gamesites200.com/lineage2/in.php?id=33341"; $votetop = "http://www.topservers200.com/in.php?id=8829"; $votejbr = "http://top.l2jbrasil.com/index.php?a=in&u=la2lmserver"; // DOWNLOADS $system = "http://la2lm.com/system.zip"; $systemtextures = "http://la2lm.com/textures.zip"; $client = "http://la2lm.com/client.zip"; ?> status.php <div class="sidebar-left"> <div class="bar_box"><span class="style-1">STATUS SERVER</span></div> <div class="pt_box"> <span class="style-2">Loginserver :</span><?php print $loginserver ? '<img src="imgs/check.png"/>' : '<img src="imgs/error.png"/>'; ?> <span class="style-2">Gameserver : </span><?php print $gameserver ? '<img src="imgs/check.png"/>' : '<img src="imgs/error.png"/>'; ?> <div align="center" style="padding:10px 0;"><img src="imgs/line.png" width="172" height="2" alt="line" /></div> <span class="style-3">Players Online : </span> <span class="style-4"><?php print(mysql_num_rows($seleciona_valores)+$online_add); ?></span> <span class="style-3">DDOS : </span> <span class="style-4"><?php echo $ddos; ?></span> <span class="style-3">GUARD : </span> <span class="style-4"><?php echo $guard; ?></span> </div> <div class="bar_box" style="padding:0 19px;"><span class="style-1">UPDATES</span></div> <div class="pt_box"> <div class="style-5"><?php echo $update1; ?></div> <div class="style-5"><?php echo $update2; ?></div> <div class="style-5"><?php echo $update3; ?></div> <div class="style-5"><?php echo $update4; ?></div> <div class="style-5"><?php echo $update5; ?></div> <div class="style-5"><?php echo $update6; ?></div> <div class="style-5"><?php echo $update7; ?></div> <div class="style-6"><a href="#">» See more updates</a></div> </div> <div class="bar_box" style="padding:0 19px;"><span class="style-1">GALLERY</span></div> <div class="pt_box"> <div class="align-quads"> <div class="quad-gallery-1"></div> <div class="quad-gallery-2"></div> <div class="quad-gallery-3"></div> <!-- ABAIXA BLOCOS --> <div class="quad-gallery-4"></div> <div class="quad-gallery-5"></div> <div class="quad-gallery-6"></div> </div><!-- Align Quads --> <div class="style-7"><a href="#">» See the full gallery</a></div> </div> <div class="bar_box" style="padding:0 10px;"><span class="style-1">NETWORKS</span></div> <div class="pt_box"> <div style="width:200px; padding:20px 20px; margin:0 auto;" align="center"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like-box" data-href="http://www.facebook.com/lineage.lm" data-width="200" data-height="153" data-show-faces="false" data-stream="false" data-header="false"></div> </div> </div> <div class="bar_box" style="padding:0 17px;"><span class="style-1">COUNTER</span></div> <div class="pt_box"> <div style="width:200px; padding:20px 0px; margin:0 auto;" align="center"> <!-- CODIGO FLAG COUNTER --> <a href="http://info.flagcounter.com/pOu8"><img src="http://s07.flagcounter.com/count/pOu8/bg_6F5934/txt_FFFFFF/border_CCCCCC/columns_2/maxflags_12/viewers_0/labels_0/pageviews_0/flags_0/" alt="Flag Counter" border="0"></a> <!-- CODIGO FLAG COUNTER --> </div> </div> </div> Quote
mrsiret Posted February 26, 2016 Author Posted February 26, 2016 On 2/25/2016 at 4:50 PM, L2LostWard said: Foto config.php <?php // Configurações do MySQL $sql['usr'] = "root"; # Usuário, Ex: "root" (Geralmente é root mesmo) $sql['pass'] = ""; # Senha, caso não tenha definido, deixe em branco, Ex: "" $sql['db'] = "l2jdb"; # Database, Ex: "l2jdb" $sql['host'] = "localhost"; # Endereço do servidor MySQL, Ex: "localhost" // Fim das configurações do MySQL // Não mexer abaixo $open = mysql_connect($sql['host'], $sql['usr'], $sql['pass']) or die("Não foi possível conectar-se à database."); $select_db = mysql_select_db($sql['db'], $open) or die("Database não encontrada ou inexistente."); // Não mexer acima // STATUS DO SERVIDOR //Configurações para mostrar Servidor Online/Offline no Site $servidor = 'ip';//IP onde o Server está hospedado $loginserver = @fsockopen($servidor, 2106, $errno, $errstr, 2); $gameserver = @fsockopen($servidor, 7777, $errno2, $errstr2, 2); // OPÇÃO DOS PLAYERS ONLINE //$select = mysql_query("SELECT * FROM characters WHERE online = '1'") or die (mysql_error()); //$co = mysql_num_rows($select); // OPÇÃO DOS PLAYERS ONLINE //PLAYERS ONLINE $online_add = "27";#ADICIONE AQUI O NUMERO A MAIS DE PLAYERS switch($online_add){ case $online_add < 0; echo "Valor da variavel esta incorreto"; break; exit; } $seleciona_valores = mysql_query("SELECT * FROM characters WHERE online = '1'") or die (mysql_error()); // Configurações Gerais $ddos = "Active"; $guard = "Active"; $update1 = "Fixed Reward Siege"; $update2 = "Fixed Reward Events"; $update3 = "Fixed TW Event"; $update4 = "Fixed Blessed 90%"; $update5 = "Fixed Quake Announce"; $update6 = "Fixed PvP/Pk Announce"; $update7 = "Fixed PVP AREA - Field of whispers"; // VOTES $votegs = "http://www.gamesites200.com/lineage2/in.php?id=33341"; $votetop = "http://www.topservers200.com/in.php?id=8829"; $votejbr = "http://top.l2jbrasil.com/index.php?a=in&u=la2lmserver"; // DOWNLOADS $system = "http://la2lm.com/system.zip"; $systemtextures = "http://la2lm.com/textures.zip"; $client = "http://la2lm.com/client.zip"; ?> status.php <div class="sidebar-left"> <div class="bar_box"><span class="style-1">STATUS SERVER</span></div> <div class="pt_box"> <span class="style-2">Loginserver :</span><?php print $loginserver ? '<img src="imgs/check.png"/>' : '<img src="imgs/error.png"/>'; ?> <span class="style-2">Gameserver : </span><?php print $gameserver ? '<img src="imgs/check.png"/>' : '<img src="imgs/error.png"/>'; ?> <div align="center" style="padding:10px 0;"><img src="imgs/line.png" width="172" height="2" alt="line" /></div> <span class="style-3">Players Online : </span> <span class="style-4"><?php print(mysql_num_rows($seleciona_valores)+$online_add); ?></span> <span class="style-3">DDOS : </span> <span class="style-4"><?php echo $ddos; ?></span> <span class="style-3">GUARD : </span> <span class="style-4"><?php echo $guard; ?></span> </div> <div class="bar_box" style="padding:0 19px;"><span class="style-1">UPDATES</span></div> <div class="pt_box"> <div class="style-5"><?php echo $update1; ?></div> <div class="style-5"><?php echo $update2; ?></div> <div class="style-5"><?php echo $update3; ?></div> <div class="style-5"><?php echo $update4; ?></div> <div class="style-5"><?php echo $update5; ?></div> <div class="style-5"><?php echo $update6; ?></div> <div class="style-5"><?php echo $update7; ?></div> <div class="style-6"><a href="#">» See more updates</a></div> </div> <div class="bar_box" style="padding:0 19px;"><span class="style-1">GALLERY</span></div> <div class="pt_box"> <div class="align-quads"> <div class="quad-gallery-1"></div> <div class="quad-gallery-2"></div> <div class="quad-gallery-3"></div> <!-- ABAIXA BLOCOS --> <div class="quad-gallery-4"></div> <div class="quad-gallery-5"></div> <div class="quad-gallery-6"></div> </div><!-- Align Quads --> <div class="style-7"><a href="#">» See the full gallery</a></div> </div> <div class="bar_box" style="padding:0 10px;"><span class="style-1">NETWORKS</span></div> <div class="pt_box"> <div style="width:200px; padding:20px 20px; margin:0 auto;" align="center"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like-box" data-href="http://www.facebook.com/lineage.lm" data-width="200" data-height="153" data-show-faces="false" data-stream="false" data-header="false"></div> </div> </div> <div class="bar_box" style="padding:0 17px;"><span class="style-1">COUNTER</span></div> <div class="pt_box"> <div style="width:200px; padding:20px 0px; margin:0 auto;" align="center"> <!-- CODIGO FLAG COUNTER --> <a href="http://info.flagcounter.com/pOu8"><img src="http://s07.flagcounter.com/count/pOu8/bg_6F5934/txt_FFFFFF/border_CCCCCC/columns_2/maxflags_12/viewers_0/labels_0/pageviews_0/flags_0/" alt="Flag Counter" border="0"></a> <!-- CODIGO FLAG COUNTER --> </div> </div> </div> you have html code for this i need game server and login server status.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.