Jump to content

Recommended Posts

Posted

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

Posted

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..

Posted

Fotostats.png

 

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>
Posted

 

Fotostats.png

 

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..

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • relax guys!!! maybe he sold the GOD files, and the vacation will last even longer!
    • This is my attempt to somehow bring the script to be usable. Remembering that the ideal is someone with real capacity to work on it. I'm just trying to improve in my spare time. Changed connection logic to work in php8 Organization of links I added my top rank next to l2jbrasil. My top is 4Team Servers, if you can use it, I would appreciate it!   Download: https://github.com/Sage-BR/icpn-votesystem If you have any bugs, post them here, but as I said, I will try to resolve them or report them to: ICPNetwork    L2JBrasil = The function that generates the playerid generated the incorrect id, now for l2jbrasil it uses "ID + Key" in the VoteAPI menu L2Votes = Now use "ID + Key" GameTOP200 = "Needs testing" Organized new API Hopezone EU = Uses “ID + Key” GameBytes = API fix, (So the API only returns FALSE or TRUE, I added logic using localstorage instead of a cookie to save the moment the API returned "true" and the counter generates it from there) L2Top.co = API fix, (So the API only returns FALSE or TRUE, I added logic using localstorage instead of a cookie to save the moment the API returned "true" and the counter generates it from there) GamingTop100 = API fix GameStop200 = API fix
    • New L2 Logo Faction Interlude Mid Server!  @everyone  BETA SERVER LOGINS ARE ONLINE ENJOY! 📌 Faction Manager Good VS Evil 🏆 Maximum Buffs Slots 24/12 ⚡ Safe Enchant +3 Max +18 💥 Champion System 💥 Vitality System 🔰 GMShop, Buffer & Gatekeeper 🔁 *LOGINS ONLINE * 1st March @ 20:00 GMT+2 🌐 Website: https://l2logo-faction.com/ D ྀི Discord: https://discord.com/invite/SKsDk5yY
    • *LOGINS ONLINE* 21st February @ 15:00 GMT+2   New L2 Logo Faction Interlude Mid Server!  @everyone  Faction Manager Good VS Evil  Maximum Buffs Slots 24/12  Safe Enchant +3 Max +18  Champion System  Vitality System  GMShop, Buffer & Gatekeeper  *LOGINS ONLINE* 21st February @ 15:00 GMT+2  Website: https://l2logo-faction.com/ D ྀི Discord: https://discord.com/invite/SKsDk5yY
    • Here lies Gaytits, the gayest scammer to ever exist... RIP King -- You won't be missed.
  • Topics

×
×
  • Create New...