Ir para conteúdo
  • Cadastre-se

Pedido Status Gesior para Server Multworld


Posts Recomendados

Ola Galera eu estou com meu servidor de naruto rodando com 2 mundos no mesmo dedicado , ate ai tudo bem funcionou normal mas o status do meu gesior fico bugado porque ele so esta reconhecendo o mundo 1 , e tem hora que nem pega o status fica uptime: 0 e players online: 0 sendo que o servidor esta online normalmente teria como vcs me ajudarem com um status que reconhece quantos players tem online nos 2 mundo ?

 

vou poastar meu layout.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title><?PHP echo $title ?></title>
<link rel="stylesheet" href="<?PHP echo $layout_name; ?>/imagess/shadowbox.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $layout_name; ?>/imagess/templatep.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $layout_name; ?>/imagess/mod_yoo_slider.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $layout_name; ?>/imagess/mod_yoo_drawer.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $layout_name; ?>/imagess/mod_yoo_search.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $layout_name; ?>/imagess/mod_yoo_carousel.css" type="text/css" />
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/jquery.js"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/mootools.js"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/caption.js"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/mod_yoo_slider.js"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/mod_yoo_drawer.js"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/mod_yoo_search.js"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/mod_yoo_carousel.js"></script>
<script type="text/javascript">
var YtSettings = { tplurl: '<?PHP echo $config['server']['serverName']; ?>', color: 'concrete', layout: 'left', fontDefault: 'font-medium', widthDefault: 'width-wide', widthThinPx: 790, widthWidePx: 960, widthFluidPx: 0.9 };
</script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/ajax.js"></script>
<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/imagess/style.css"/>
<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/imagess/comment_style.css"/>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/plugins/system/yoo_effects/yoo_effects.js.php@lb=1&re=1&sl=1"></script>
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/imagess/template.js"></script>
</head>
<body id="page" class="yoopage font-medium width-wide left showright default yootools-black">
<div id="page-body">
<div class="page-body-m">
<div class="page-body-t">
<div class="page-body-b">
<div class="page-body-h">
<div class="wrapper floatholder">
<div id="header">
<div class="header-l">
<div class="header-r">
<div id="toolbar">
<div class="floatbox ie_fix_floats">
<div id="date">
</div>
<div id="topmenu">
<ul class="menu">
<li class="level1 item1 "><span><a>IP:<?PHP echo $config['server']['ip']; ?></a></span></li>
                                                        <li class="level1 item2 "><a href="?subtopic=createaccount" class="level1 item2"><span>Criar Conta</span></a></li>
                                                        <li class="level1 item3 last"><a href="?subtopic=team" class="level1 item2 last">Gamemaster List</a></li>
 </ul>
</div>
<div id="styleswitcher">
</div>
 </div>
</div>
<div id="menubar">
<div class="menubar-l">
<div class="menubar-r"></div>
</div>
</div>
<div id="menu">
<ul class="menu">
<li class="level1 item1 first active current"><a href="?subtopic=latestnews" class="level1 item1 first active current"><span><span class="title">Inicio</span><span class="sub">Pagina Inicial</span></span></a></li>
<li class="level1 item2 parent"><span class="separator level1 item2 parent"><span><span class="title">Shop</span><span class="sub">Shop Payment</span></span></span>
<ul class="level2">
                                                    <li class="level2 item1 first"><a href="?subtopic=donate" class="level2 item2"><span>Comprar Pontos</span></a></li>
<li class="level2 item2"><a href="?subtopic=shopsystem" class="level2 item3 last"><span>Ofertas Do Shop</span></a></li>
</ul>
</li>
<li class="level1 item3 parent"><span class="separator level1 item3 parent"><span><span class="title">Forums</span><span class="sub">Forum</span></span></span>
<ul class="level2">
<li class="level2 item1 first last"><a href="?subtopic=forum" class="level2 item1 first last"><span>Forum</span></a></li>
</ul>
</li>
 
<li class="level1 item5 last"><a href="?subtopic=createaccount" class="level1 item5"><span><span class="title">Criar Conta</span>
<span class="sub">Criar Conta</span></span></a></li>
<li class="level1 item4 parent"><span class="separator level1 item4 parent"><span><span class="title">Outros</span><span class="sub">Server Addons</span></span></span>
<ul class="level2">
<li class="level2 item1 first"><a href="?subtopic=wars" class="level2 item3"><span>Guild Wars</span></a></li>
</ul></li>
                                                        </ul></li>
 </div>
<div id="logo">
<div class="spotlight"></div>
</div>
</div>
</div>
</div>
<!-- header end -->
<div id="top">
<div class="floatbox ie_fix_floats">
<div class="topblock width100 float-left">
<div class="module deepest blank">
<div class="slideshow">
<div id="yoo-carousel-1" class="yoo-carousel" style="width: 960px;height: 200px;">
<div style="overflow: hidden; height: 200px;">
<div class="frame" style="width: 960px;">
<div class="prev">
<a class="button-prev" href="javascript:void(0)" title="Previous slide" style="height: 200px;">
</a>
</div>
<div class="panel-container" style="width: 960px;">
<div class="panel-container-bl">
<div class="panel-container-br" style="height: 200px;">
<div class="panel" style="width: 960px;">
<div style="width: 5763px;">
<div class="floatbox" style="background: transparent url('<?PHP echo $layout_name; ?>/imagess/logo/1.png') repeat scroll 0% 0%; width: 960px; height: 200px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><br /></div>
</div>
</div>
</div>
</div>
</div>
<div class="next">
<a class="button-next" href="javascript:void(0)" title="Next slide" style="height: 200px;">
</a>
</div>
</div>
</div>
</div>
</div><script type="text/javascript">
 
// <!--
 
window.addEvent('domready', function() { new YOOcarousel('yoo-carousel-1', { transitionEffect: 'crossfade', transitionDuration: 3000, rotateAction: 'mouseover', rotateActionDuration: 1000, rotateActionEffect: 'crossfade', slideInterval: 1000, autoplay: 'off' }); });
 
// -->
 
</script>
</div>
</div>
 </div>
</div>
<!-- top end -->
<div id="middle">
<div class="middle-container-t">
<div class="middle-tl"></div>
<div class="middle-tr"></div>
<div class="middle-t"></div>
</div>
<div class="middle-l">
<div class="middle-l-ie6"></div>
<div class="middle-r-ie6"></div>
<div class="middle-r">
<div class="middle-m">
<div class="background">
<div id="left">
<div id="left_container" class="clearfix">
<div class="mod-tab mod-menu">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">News</span> Menu</h3>
</div>
</div>
<div style="overflow: hidden;">
<ul class="menu">
<li class="level1 item3 first"><a href="?subtopic=latestnews" class="level1 item3 first"><span>Latest news</span></a></li>
<li class="level1 item3 first"><a href="?subtopic=archive" class="level1 item3 first"><span>News archive</span></a></li>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mod-tab mod-menu">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color"><?PHP echo $config['server']['serverName ']; ?></span> Comunidade</h3>
</div>
</div>
<div style="overflow: hidden;">
<ul class="menu">
<li class="level1 item3 first"><a href="?subtopic=downloads" class="level1 item3 first"><font color="red">Downloads</font></a></li>
<li class="level1 item3 first"><a href="?subtopic=characters" class="level1 item3 first"><span>Personagens</span></a></li>
 
<li class="level1 item7 last"><a href="?subtopic=whoisonline" class="level1 item7">Quem Esta Online?</a></li>
 
<li class="level1 item7 last"><a href="?subtopic=records" class="level1 item7">Records Online</a></li>
 
<li class="level1 item7"><a href="?subtopic=highscores" class="level1 item7"><span>Rank</span></a></li>
 
<li class="level1 item7 last"><a href="?subtopic=frags" class="level1 item7">Top Frags</span></a></li>
 
<li class="level1 item7"><a href="?subtopic=guilds" class="level1 item7"><span>Guilds</span></a></li>
<li class="level1 item7"><a href="?subtopic=wars" class="level1 item7"><font color="red">War System</font></a></li>
<li class="level1 item7"><a href="?subtopic=cast" class="level1 item7"><font color="red">Cast System</font></a></li>
 
<li class="level1 item7"><a href="?subtopic=killstatistics" class="level1 item7"><span>Kill Statistics</span></a></li>
 
<li class="level1 item7 last"></li>
 
</ul>
 </div>
</div>
</div>
</div>
</div>
</div>
</div>
            <div class="mod-tab mod-menu">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color"><?PHP echo $config['server']['serverName']; ?></span> Livraria</h3>
</div>
</div>
<div style="overflow: hidden;">
<ul class="menu">
<li class="level1 item7 last"><a href="?subtopic=houses" class="level1 item7">Houses</a></li>
<li class="level1 item7 first"><a href="?subtopic=polls" class="level1 item7">Polls</a></li>
<li class="level1 item7 last"><a href="?subtopic=serverinfo" class="level1 item7">Server Info</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Sync</span> Shop</h3>
</div>
</div>
<div style="overflow: hidden;">
<ul class="menu">
<li class="level1 item7 first"><a href="?subtopic=donate" class="level1 item7"><font color="green"><b>Comprar Pontos</b></font></a></li>
<li class="level1 item7 last"><a href="?subtopic=shopsystem" class="level1 item7"><font color="red"><b><blink>Ofertas Do Shop</blink></b></font></a></li>
<?PHP if($logged)
echo '<li class="level1 item7 last"><a href="?subtopic=shopsystem&action=show_history" class="level1 item7"><font color="yellow"><b>Suas Compras</b></font></a></li>'; ?>
 
 
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
            <center>
</center>
</div>
</div>
<!-- left end -->
<div id="main">
<div id="main_container" class="clearfix">
<div id="mainmiddle" class="floatbox">
<div id="right">
<!-- -->
<div class="mod-tab">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Top 5</span> Players</h3>
</div>
</div>
<div style="overflow: hidden;">
<div>
<div>
                                    <?php
$limitt = 5;
$skills = $SQL->query('SELECT name,level,experience FROM players WHERE group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY level DESC, experience DESC LIMIT '.$limitt)->fetchAll();
$number_of_rows = 0;
foreach($skills as $skillss)
{
$number_of_rows++;
echo '+ <b></b><a href="index.php?subtopic=characters&name='.urlencode($skillss['name']).'" class=menu">'.$skillss['name].'</a><br>';
echo '<em class="style2">Level: <b>'.urlencode($skillss['level']).'</b></em></li><br />';
}
?> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- -->
             <div class="mod-tab">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Infor</span>masao</h3>
</div>
</div>
<div style="overflow: hidden;">
<font color="white">
<?PHP if($config['status']['serverStatus_online'] == 1) echo '<font color="limegreen"><b>Server Online</b></font>'; else echo '<font color="red"><b>Sever Offline</b></font>'; ?><br />
Uptime: <?PHP if($config['status']['serverStatus_online'] == 1) echo $config['status']['serverStatus_uptime'].''; else echo '0h 0m'; ?><br />
Players Online: <?PHP if($config['status']['serverStatus_online'] == 1) echo $config['status']['serverStatus_players'].''; else echo '0'; ?><br />
Record: <?PHP $record = $SQL->query('SELECT `record` FROM `server_record` ORDER BY `record` DESC LIMIT 1;'); foreach($record as $result) { echo ''.$result['record'].''; } ?><br />
<?PHP
         $plik = "online.txt";
             $czas = 60;
                 $t = time();
             $ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];    
         $u = explode("\n", str_replace("\r", "", @join("", @file($plik))));
         foreach($u as $i => $v) {
             $e = explode("|", $v);
             if($e[0] == $ip || $e[1] < $t) unset($u[$i]);
         }
         $u[] = $ip . "|" . ($t + $czas);
         $fp = fopen($plik, "w");
             flock($fp, 2);
                 fputs($fp, join("\n", $u));
             flock($fp, 3);
         fclose($fp);
         echo 'Usuarios Vendo a Pagina: '.count($u);
    ?></a></font>
</div>
</div>
</div>
</div>
</div>
</div>
</div>                                               
<div class="mod-tab">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Gerenciar</span> Conta</h3>
</div>
</div>
<div style="overflow: hidden;">
<?PHP if($logged)
{
echo '
                                                      + <b><a href="?subtopic=accountmanagement" class="menu">Minha Conta</a><br />
+ <a href="?subtopic=forum" class="menu">Forum</a><br />
+ <a href="?subtopic=polls" class="menu">Perguntas</a><br />
                                                      + <a href="?subtopic=accountmanagement&action=logout" class="menu">Sair Da Conta</a></b><br />
';
}
else
{
 
echo '<form action="?subtopic=accountmanagement" method="post" ><font color="white">Account:<br></font><input class="menuForm" type="password" name="account_login" SIZE="18" maxlength="10" ><br><font color="white">Password:<br></font><input class="menuForm" type="password" name="password_login" size="18" maxlength="29" ><br><br><input type="image" src="'.$layout_name.'/images/login.gif" value="Login" /></form>+ <b><a href="?subtopic=createaccount" class="menu">Criar Conta</a></b><br />
+ <a href="?subtopic=lostaccount" class="menu">Recover account</a><br />
+ <a href="?subtopic=tibiarules" class="menu">'.$config['server']['serverName'].' Rules</a><br />';
}
if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
echo '<center><br /><h6>Admin Panel</h6></center>
+ <a href="?subtopic=adminpanel" class="menu">Admin Panel</a><br />
+ <a href="?subtopic=shopadmin" class="menu">Shop Admin</a><br />
+ <a href="?subtopic=namelock" class="menu">Namelock</a><br />
+ <a href="?subtopic=polls&control=true" class="menu">Polls Admin</a><br />
+ <a href="?subtopic=bugtracker&control=true" class="menu">Bug Tracker Admin</a><br />
+ <a href="?subtopic=hause-clean" class="menu">Clean Hauses</a><br />';
?>
 
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mod-default">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4 deepest">
<h3 class="module"><span class="module-2"><span class="module-3"><span class="color">Procurar</span> Personagem</span></span></h3>
<div class="default">
<div id="yoo-search-1" class="yoo-search">
<form action="?subtopic=characters" method="post">
<div class="searchbox" style="">
<button class="search-magnifier" type="submit" value="Search"></button>
<input class="searchfield" type="text" onFocus="if(this.value=='character name...') this.value='';" onBlur="if(this.value=='') this.value='character name...';" value="character name..." size="20" alt="character name..." maxlength="25" name="name" autocomplete="off" />
<button class="search-close" type="reset" value="Reset"></button>
</div>
<input type="hidden" name="task"   value="search" />
<input type="hidden" name="option" value="com_search" />
</form>
<div class="resultbox" style="width: 400px;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //koment//-->
 
<!--//koment//-->
            <div class="mod-tab">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Support</span> System</h3>
</div>
</div>
<div style="overflow: hidden;">
<div>
<div>
 
<?php
$limitt = 6;
$skills = $SQL->query('SELECT name,group_id,online FROM players WHERE group_id > 1 AND group_id < 7 ORDER BY group_id DESC LIMIT '.$limitt)->fetchAll();
$number_of_rows = 0;
foreach($skills as $skillss)
{
$number_of_rows++;
echo '+ <b></b><a href="index.php?subtopic=characters&name='.urlencode($skillss['name']).'" class=menu">'.(($skillss['online]>0)?('<font color="green">'.$skillss['name'].'</font></a><br />'):('<font color=red">'.$skillss['name].'</font></a></b><br />'));
                                            }
?> </div>
</div>
</div>
</div>
</div>
</div>     </div> </div> </div>
            <div class="mod-tab">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Vote</span> Now</h3>
</div>
</div>
<div style="overflow: hidden;">
<div>
<div>
 
<?php
 $topic = $SQL->query("SELECT * FROM `z_polls` WHERE `end` > ".time().";")->fetch();
 
                    if($topic['end'] > time())
                        $active = '<font color="#c4b346" size="2"><b><i>'.$topic['question'].'</i></b></font><br/><br/><a href=?subtopic=polls&id=.$temat['id].'>Vote Now!</a>';
                    else
                        $active = '<font color="#c4b346" size="2"><b><i>There isn`t any active poll at the moment.</i></b></font>';
 
                        echo "<center> $active </center>";
                    ?>   </div>
</div>
</div>
</div>
</div>
</div>     </div> </div> </div>
<!--//koment//-->
 
</div>
<!-- right end -->
<div id="content">
<div id="content_container" class="clearfix">
<div id="contenttop" class="floatbox">
<div class="contenttopbox left width100  float-left">
<div class="module deepest blank">
<script type="text/javascript">
// <!--
new YOOslider('yoo-slider-1', '#yoo-slider-1 .slide', { layout: 'horizontal', sizeNormal: 175, sizeFull: 310 });
// -->
</script>
</div>
</div>
</div>
<!-- contenttop end -->
<div id="breadcrumb"><span class="breadcrumbs pathway"></span></div>
                                                                    <!-- main content here-->
<div class="floatbox">
<div class="post">
<?PHP echo $main_content; ?>
</div>                                                                   
</div>
</div>
</div>
<!-- content end -->
</div>
<!-- mainmiddle end -->
</div>
</div>
<!-- main end -->
</div>
</div>
</div>
</div>
<div class="middle-container-b">
<div class="middle-bl"></div>
<div class="middle-br"></div>
<div class="middle-b"></div>
</div>
</div>
<!-- middle end -->
<div id="footer">
<center>
Copyright 2014. Todos Direitos Reservados. <?PHP echo $config['server']['serverName']; ?>
</center>
</div>
<!-- footer end -->
<div id="debug">
</div>
<!-- debug end -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- page-body end -->
</body>
</html>

 


UP

Editado por hellz01 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo