Ir para conteúdo
  • Cadastre-se

Website Top Guilds não funciona GESIOR


Posts Recomendados

Fala, galera! Então, eu preciso de uma ajudinha de voces!

 

O meu TOP Guilds, está fixado dessa forma, que alguém editou, porém essas guilds nem existem!, gostaria que ele funcionasse de verdade.

 

Meu layout.php onde contém o top guilds:

Spoiler

<?php
if(!defined('INITIALIZED'))
    exit;
$playersOnline = $config['status']['serverStatus_players'];
$cacheSec = 30;
$cacheFile = 'cache/topplayers.tmp';
if (file_exists($cacheFile) && filemtime($cacheFile) > (time() - $cacheSec)) {
    $topData = file_get_contents($cacheFile);
} else {
    $topData = '';
    $i = 0;
    foreach($SQL->query("SELECT `name`, `level` FROM `players` WHERE `group_id` < 2 AND `account_id` != 3 ORDER BY `level` DESC LIMIT 5")->fetchAll() as $player) {
        $i++;
        $topData .= '<tr><td style="width: 80%"><strong>'.$i.'.</strong> <a href="?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</a></td><td><span class="label label-primary">Lvl. '.$player['level'].'</span></td></tr>';
    }

    file_put_contents($cacheFile, $topData);
}

$today = strtotime('today 10:00');
$tomorrow = strtotime('tomorrow 10:00');
$now = time();
$remaining = ($now > $today ? $tomorrow : $today) - $now;
?>
<!DOCTYPE html>
<html>
    <head>
<title><?PHP echo $title ?></title>
        <script type='text/javascript'>
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function MouseOverBigButton(source)
{
  source.firstChild.style.visibility = "visible";
}
function MouseOutBigButton(source)
{
  source.firstChild.style.visibility = "hidden";
}
function BigButtonAction(path)
{
  window.location = path;
}
varloginStatus=0; loginStatus='false';var activeSubmenuItem='latestnews';  var IMAGES=0; IMAGES='http://otland.net/./layouts/thora/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='http://otland.net';</script>        <link rel="shortcut icon" href="res/img/server.ico" type="image/x-icon">
        <link rel="icon" href="/./layouts/thora/res/img/server.ico" type="image/x-icon">
        <link href="/./layouts/thora/res/css/basic.css" rel="stylesheet"/>
        <link href="/./layouts/thora/res/css/slate1.css" rel="stylesheet"/>
        <link href="/./layouts/thora/res/css/style.css" rel="stylesheet"/>
              <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Slab:400,700|Alegreya+SC:400,700|Cinzel+Decorative:400,900' rel='stylesheet' type='text/css'>
<script src="/./layouts/thora/res/js/moment.js"></script>
<script src="/./layouts/thora/res/js/livestamp.js"></script>    
<script type="text/javascript" src="/./layouts/thora/res/js/global.js.php?up05"></script>
</head>
        <style>
        .jumbotron
        {
            background: url('/./layouts/thora/images/loggo.png') no-repeat;
            background-size: cover;

        }
        .quality
        {
            background: url('/./layouts/thora/images/quality.png') no-repeat;
            background-size: cover;

        }
        .navbar {
            margin-top: 130px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .pull-doown {
            margin-top: 70px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .pull-up {
            margin-top: 10px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .dragon {
            position: absolute;
            z-index: 2;
            margin-top: -140px;
            margin-left: 783px;
        }
        .szukaj {
            background-color: #242424;
            color: #242424;
            border-color: rgba(0,0,0,0.6);
        }
        .col-3.pull-right {
            width: 19.4043%;
        } 
        .col-3.pull-left {
            width: 19.4043%;
        } 
        .col-8 {
            width: 100%;
            padding-right: 0px!important;
            color: #242424;
        }
        </style>
    </head>
    <body>
<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&appId=655717851105382";
        fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

        <script src="<?PHP ECHO $layout_name; ?>/js/bootstrap.js"></script>
        <script>$("form").find("input").each(function(){if(!(this.placeholder&&"placeholder"in document.createElement(this.tagName))&&"password"!=this.type)
        {var a=this.getAttribute("placeholder");if(null!==a){var b=$(this);b.focus(function(){this.value==a&&(this.value="",b.css("color","#333"))});b.blur(function()
        {if(""===this.value||this.value==a)this.value=a,b.css("color","#aaa")});b.blur();var c=this;this.form&&$(c.form).submit(function(){c.value==a&&(c.value="")})}}});function l(i,t)
        {var d=document;var s='script';var j,f=d.getElementsByTagName(s)[0];if(!d.getElementById(i)){j=d.createElement(s);j.id=i;j.async=true;j.src=t;f.parentNode.insertBefore(j,f);}}l
        ('facebook-jssdk','//connect.facebook.net/en_US/all.js#xfbml=1');l('twitter-wjs','//platform.twitter.com/widgets.js')</script>
        <!-- ====================================================== -->
        <div class="container" style="width: 1194px;">
<div id="pasek"><span class="p">Valhalla has started on <span class="text">Saturday 24 October</span> at <span class="text">18:00 CEST</span>! - Make sure you check out our <a href="https://www.facebook.com/ValhallaAlternativeOTServer"><span class="text">Facebook</span></a>! for latest news! 
            <div class="btn-group navbar-right">
                <button type="button" class="p2 btn-login btn-success dropdown-toggle" data-toggle="dropdown">
                
                    <span class="glyphicon glyphicon-share-alt"></span>Login<span class="caret"></span>
                    
                </button>
                <ul class="dropdown-menu" role="menu">
                    <li style="width: 266px; margin: 5px 15px 0px 15px;">
                        <form action="?subtopic=accountmanagement" method="post">
                            <div class="form-group">
                                <input type="password" name="account_login" maxlength="30" class="form-control" placeholder="Account Name">
                            </div>
                            <div class="form-group">
                                <input type="password" name="password_login" maxlength="30" class="form-control" placeholder="Password">
                            </div>
                            <button type="submit" class="btn btn-success" style="width: 100px">Login</button>
                            <a class="btn btn-default" style="width: 131px" href="?subtopic=lostaccount">Lost Password?</a>

                        </form>
                    </li>
                </ul>
            </div>
            
            </div>
                    <div class="pull-doown">
        <span class="pull-left"><img src="/./layouts/thora/images/logoo.png"></span>
</div>
        <div class="pull-doown">
        <a href="?subtopic=whoisonline"><span class="label-online label-success pull-right"><?PHP echo $playersOnline; ?> Player<?php echo ($playersOnline != 1 ? 's' : ''); ?> online</span></a>
</div>
        
        <nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->


    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
         <li class="dropdown">
          <a href="?subtopic=latestnews" class="dropdown-toggle">NEWS</a>
         
</li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ACCOUNT <span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=createaccount">Create Account</a></li>
                                                            <li><a href="?subtopic=accountmanagement">Account</a></li>
                                                            <li><a href="/files/thorav1.zip">Download Client</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">COMMUNITY <span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=characters">Characters</a></li>
                                                            <li><a href="?subtopic=highscores">Highscores</a></li>
                                                            <li><a href="?subtopic=guilds">Guilds</a></li>
                                                            <li><a href="?subtopic=whoisonline">Who is online?</a></li>
                                                            <li><a href="?subtopic=casts">Cast System</a></li>
                                                                                                                        <li><a href="?subtopic=wars">Guild Wars</a></li>                                                            
                                                            <li><a href="?subtopic=killstatistics">Latest Deaths</a></li>
          </ul>
        </li>
                <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">LIBRARY <span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=serverinfo">Server Info</a></li>
                                                                                                                        <li><a href="?subtopic=tasklist">Task List</a></li>
                                                                                                                        <li><a href="?subtopic=worldmap">World Map</a></li>
                                                                                                                        <li><a href="?subtopic=guide">Guide Spawns</a></li>
                                                                                                                        <li><a href="?subtopic=spells">Spells</a></li>
                                                            <li><a href="?subtopic=team">Support</a></li>
                                                                                                                        <li><a href="?subtopic=houses">Houses</a></li>
                                                                                                                        <li><a href="?subtopic=experiencetable">Experience Table</a></li>
<li><a href="?subtopic=premium"><font color="lime">Premium Info</font></a></li>
          </ul>
        </li>
        
                        <li class="dropdown">
          <a href="?subtopic=forum">FORUM</span></a>
        </li>
        
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><font color="lime">SHOP</font><span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=shopsystem">Shop</a></li>
                                                            <li><a href="?subtopic=donate">Purchase Points</a></li>
<li><a href="?subtopic=premium"><font color="lime">Premium Info</font></a></li>
          </ul>
        </li>

                <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         VALHALLA WILL BE LAUNCHED IN: <font color="lime"><span class="countdown_3" id="advertisement_01"></span></font></a>
          
    
                                                <script type="text/javascript">getStartTime(1454987510, 1445702400,0,"advertisement_01");</script>    
                        </li>
      </ul>
      


     <ul class="nav navbar-nav navbar-right">

        <form action="?subtopic=characters" method="post" class="navbar-form navbar-left" role="search">
<div class="form-group">
                <div class="icon-addon addon-md">
                    <input type="text" name="name" placeholder="Search character..." class="form-control szukajka">
                    <label for="szukajka" class="glyphicon glyphicon-search" rel="tooltip" title="szukajka"></label>
                </div>
            </div>
      </form>

      </ul> -->

    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
        

                <div class="row-fluid">
                                <div class="col-3 pull-left">
                                <div class="well">
                                                <h2><font color="black">Webshop</font></h2>
                                               
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody>
                                                                                    
                                                                <img width="197" src="/./layouts/thora/images/logo2.gif"/>                    
                                                                                    

                                                <div>
                            <center><div style="width:180px;margin-top: -29px;position: relative;"><a class="btn btn-small btn-success btn-block" href="?subtopic=donate"><span class="glyphicon glyphicon-shopping-cart"></span> Get Premium!</a></div></center>
                        </div>
                                                        </tbody>
                                                </table>
                
                    </div>    


                <div class="well">
                        <h2><font color="black">Information</font></h2>
                        <table class="table table-striped table-condensed table-content">
                            <tbody>
                                <tr><td><strong>IP:</strong></td><td>tfme.ddne.net</td></tr>
                                <tr><td><strong>Client:</strong></td><td>8.6</td></tr>
                                <tr><td><strong>Type:</strong></td><td>PvP/RPG</td></tr>
                                                                <tr><td><strong>Server Info:</strong></td><td><a href="?subtopic=serverinfo">Here</a></td></tr>
                            </tbody>
                        </table>

                        <div>
                            <center><a class="btn btn-small btn-default btn-block" href="?subtopic=createaccount"><span class="glyphicon glyphicon-share-alt"></span> Create Account</a></center>
                        </div>
                        <div style="margin: 3px;"></div>

                                                <div>
                            <center><a class="btn btn-small btn-warning btn-block" href="/files/thorav2_antibot.zip"><span class="glyphicon glyphicon-download-alt"></span> Download Client</a></center>
                        </div>

                
                    </div>
                    </div>

                <div class="col-3 pull-right">
                                                    <div class="well">
                        <h2><font color="black">Powergamer of day</font></h2>
                                <table class="table table-condensed table-content table-striped">
                                    <tbody>
                                                                                <tr><td><a href="?subtopic=characters&name=Rook Sample">Rook Sample</a>&nbsp;<td><span class="label label-success pull-right">+0 exp</td></span></td></tr>
                                                                            </tbody>
                                </table>
                        <h2><font color="black">Exp loss of day</font></h2>
                                <table class="table table-condensed table-content table-striped">
                                    <tbody>
                                                                            </tbody>
                                </table>

                
                    </div>
                    


                                       
<div class="well">
                                                <h2><font color="black">Top 5 Level</font></h2>
                                               
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody><?php echo $topData; ?></tbody>
                                                </table>
                                        </div>
                                        <div class="well">
                                                <h2><font color="black">Top 5 Guilds</font></h2>
                                               
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody>
                                                                                                                                <tr><td>1.</td><td><a href="?subtopic=guilds&action=show&guild=26"><img src="guild_image.php?id=26" width="16" height="16" border="0"/> Loneliness</a>&nbsp;<td><span class="label label-danger pull-right">126 kills</td></span></td></tr>
                                                                                                                                <tr><td>2.</td><td><a href="?subtopic=guilds&action=show&guild=30"><img src="guild_image.php?id=30" width="16" height="16" border="0"/> Out Laws</a>&nbsp;<td><span class="label label-danger pull-right">65 kills</td></span></td></tr>
                                                                                                                                <tr><td>3.</td><td><a href="?subtopic=guilds&action=show&guild=39"><img src="guild_image.php?id=39" width="16" height="16" border="0"/> Amfethamine</a>&nbsp;<td><span class="label label-danger pull-right">57 kills</td></span></td></tr>
                                                                                                                                <tr><td>4.</td><td><a href="?subtopic=guilds&action=show&guild=25"><img src="guild_image.php?id=25" width="16" height="16" border="0"/> Daylight</a>&nbsp;<td><span class="label label-danger pull-right">51 kills</td></span></td></tr>
                                                                                                                                <tr><td>5.</td><td><a href="?subtopic=guilds&action=show&guild=15"><img src="guild_image.php?id=15" width="16" height="16" border="0"/> Semicolon Parenthesis</a>&nbsp;<td><span class="label label-danger pull-right">45 kills</td></span></td></tr>
                                                                                                                        </tbody>
                                                </table>
                                        </div>
</div>

        <div class="news">
        <div class="content-title">
<center>
<h1>Welcome to Valhalla RPG</h1>
<p>
ThoraOT.com is an custom map Tibia 7.6 server with war system, cast system, party experience sharing, oldschool quests and task system. This server is trying to replicate the old days with extra features which make the game way more enjoyable.
<center><a class="btn btn-success" href="?subtopic=createaccount"><span class="glyphicon glyphicon-registration-mark"></span> Create Account</a> <a class="btn btn-warning" href="/files/thorav2_antibot.zip"><span class="glyphicon glyphicon-download-alt"></span> Download Client</a></center>
<center><div class="slider">
                        <div class="sbox">
                            <div id="slides">
            
                            </div>
                        </div>
                    </div><div style="margin: 0 auto; padding: 0px; width: 170px; text-align: center;">

</p></center></div>
    <div id="news">
        <div class="col-8">        
        <div class="well well-lg">         
                         <?php if ($subtopic == '' || $subtopic == 'news') { ?>

                <!-- green box-->
                <!--<div class="alert alert-success">-->
                    <!--Burmourne will start in <span id="countdown"><span class="days">00</span> <span class="timeRefDays">days</span> <span class="hours">00</span><span class="timeRefHours">:</span><span class="minutes">00</span><span class="timeRefMinutes">:</span><span class="seconds">00</span><span class="timeRefSeconds"></span>.</span> <a class="alert-link" href="?view=register">Click here</a> to register!-->
                    <!--Burmourne has already started. <a class="alert-link" href="?view=register">Click here</a> to register.
                </div>-->

                <!-- red box-->
                <!--<div class="alert alert-danger">
                    Donec ullamcorper nulla non metus auctor fringilla.
                </div>-->
                <?php } ?>

                <?PHP echo $main_content; ?>
            </div>
        </div>
        <script src="./layouts/thora/res/js/bootstrap.js"></script>
        <script>
        $(function () {
            var targetA = $('a[href$="latestnews"]');
            var el = (targetA.find("button").length) ? targetA.find("button") : targetA.parent();
            el.addClass('active');
            
            $('input[name$=login], input[name=name]').click(function(e) {
                e.stopPropagation();
            });

            var count = 92890;
            var counter = setInterval(timer, 1000);

            function timer() {
                count = count - 1;
                if (count == -1) {
                    count = 24 * 60 * 60;
                }

                var seconds = count % 60;
                var minutes = Math.floor(count / 60);
                var hours = Math.floor(minutes / 60);
                minutes %= 60;
                hours %= 60;

                document.getElementById("timer").innerHTML = hours + " hours " + minutes + " minutes and " + seconds + " seconds";
            }
        });
        </script>
        
<footer class="footer">
      <div class="container">
        <p class="text-muted" style="color:#ffffff;">This website and its contents are copyright &copy; 2018 Valhalla RPG</p>
      </div>
  </footer>
    </body>
</html>

5acea77f52bf5_topguilds.thumb.png.d07410ffcfce6ba9857c6aa70db73615.png

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites

cara, esse layout não está completo, não tem esse systema, ele tá apenas SETADO, escrito, manualmente. O proprio cara que disponibilizou disse.

 

Citar

Layout does not work 100 % . I threw a made hand that was too easy.
dont work Top PowerGames, Top Guild and Player Online .

 

tem que fazer, hahaha 

Link para o post
Compartilhar em outros sites
24 minutos atrás, Jobs disse:

cara, esse layout não está completo, não tem esse systema, ele tá apenas SETADO, escrito, manualmente. O proprio cara que disponibilizou disse.

 

 

tem que fazer, hahaha 

você disse exatamente o que estava no meu tópico, porém, com outras palavras hahaha

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites
7 minutos atrás, Yamborghini disse:

você disse exatamente o que estava no meu tópico, porém, com outras palavras hahaha

em outras palavras bgl mo hard, to tentando aqui, vou pedir ajuda pra vê se consigo implementar outro sistema de top guilds.

Tendo sucesso vou arrumar esse layout e postar aqui e te marco.

Link para o post
Compartilhar em outros sites
<div class="well">
    <h2><font color="black">Top 5 Guilds</font></h2>
    <table class="table table-condensed table-content table-striped">
        <tbody>
<?php
    $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll();
    $i = 0;
    foreach($guildsPower as $guild) {
        echo '
           <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a>&nbsp;<td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>';
    }
?>
        </tbody>
    </table>
</div>
 </div>

fixado xd 

Editado por Jobs (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
1 hora atrás, Jobs disse:

<div class="well">
    <h2><font color="black">Top 5 Guilds</font></h2>
    <table class="table table-condensed table-content table-striped">
        <tbody>
<?php
    $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll();
    $i = 0;
    foreach($guildsPower as $guild) {
        echo '
           <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a>&nbsp;<td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>';
    }
?>
        </tbody>
    </table>
</div>
 </div>

fixado xd 

 

deu esse erro

 

Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\layouts\tibiarl\layout.phpon line 344

 

e parou de aparecer as coisas no meio da pagina, createaccount, latestnews etc

Editado por Yamborghini (veja o histórico de edições)

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites

você deve ter copiado errado, cola aqui, peguei o seu e editei.

 

 

<?php
if(!defined('INITIALIZED'))
    exit;
$playersOnline = $config['status']['serverStatus_players'];
$cacheSec = 30;
$cacheFile = 'cache/topplayers.tmp';
if (file_exists($cacheFile) && filemtime($cacheFile) > (time() - $cacheSec)) {
    $topData = file_get_contents($cacheFile);
} else {
    $topData = '';
    $i = 0;
    foreach($SQL->query("SELECT `name`, `level` FROM `players` WHERE `group_id` < 2 AND `account_id` != 3 ORDER BY `level` DESC LIMIT 5")->fetchAll() as $player) {
        $i++;
        $topData .= '<tr><td style="width: 80%"><strong>'.$i.'.</strong> <a href="?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</a></td><td><span class="label label-primary">Lvl. '.$player['level'].'</span></td></tr>';
    }

    file_put_contents($cacheFile, $topData);
}

$today = strtotime('today 10:00');
$tomorrow = strtotime('tomorrow 10:00');
$now = time();
$remaining = ($now > $today ? $tomorrow : $today) - $now;
?>
<!DOCTYPE html>
<html>
    <head>
<title><?PHP echo $title ?></title>
        <script type='text/javascript'>
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function MouseOverBigButton(source)
{
  source.firstChild.style.visibility = "visible";
}
function MouseOutBigButton(source)
{
  source.firstChild.style.visibility = "hidden";
}
function BigButtonAction(path)
{
  window.location = path;
}
varloginStatus=0; loginStatus='false';var activeSubmenuItem='latestnews';  var IMAGES=0; IMAGES='http://otland.net/./layouts/thora/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='http://otland.net';</script>        <link rel="shortcut icon" href="res/img/server.ico" type="image/x-icon">
        <link rel="icon" href="/./layouts/thora/res/img/server.ico" type="image/x-icon">
        <link href="/./layouts/thora/res/css/basic.css" rel="stylesheet"/>
        <link href="/./layouts/thora/res/css/slate1.css" rel="stylesheet"/>
        <link href="/./layouts/thora/res/css/style.css" rel="stylesheet"/>
              <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Slab:400,700|Alegreya+SC:400,700|Cinzel+Decorative:400,900' rel='stylesheet' type='text/css'>
<script src="/./layouts/thora/res/js/moment.js"></script>
<script src="/./layouts/thora/res/js/livestamp.js"></script>    
<script type="text/javascript" src="/./layouts/thora/res/js/global.js.php?up05"></script>
</head>
        <style>
        .jumbotron
        {
            background: url('/./layouts/thora/images/loggo.png') no-repeat;
            background-size: cover;

        }
        .quality
        {
            background: url('/./layouts/thora/images/quality.png') no-repeat;
            background-size: cover;

        }
        .navbar {
            margin-top: 130px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .pull-doown {
            margin-top: 70px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .pull-up {
            margin-top: 10px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .dragon {
            position: absolute;
            z-index: 2;
            margin-top: -140px;
            margin-left: 783px;
        }
        .szukaj {
            background-color: #242424;
            color: #242424;
            border-color: rgba(0,0,0,0.6);
        }
        .col-3.pull-right {
            width: 19.4043%;
        } 
        .col-3.pull-left {
            width: 19.4043%;
        } 
        .col-8 {
            width: 100%;
            padding-right: 0px!important;
            color: #242424;
        }
        </style>
    </head>
    <body>
<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&appId=655717851105382";
        fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

        <script src="<?PHP ECHO $layout_name; ?>/js/bootstrap.js"></script>
        <script>$("form").find("input").each(function(){if(!(this.placeholder&&"placeholder"in document.createElement(this.tagName))&&"password"!=this.type)
        {var a=this.getAttribute("placeholder");if(null!==a){var b=$(this);b.focus(function(){this.value==a&&(this.value="",b.css("color","#333"))});b.blur(function()
        {if(""===this.value||this.value==a)this.value=a,b.css("color","#aaa")});b.blur();var c=this;this.form&&$(c.form).submit(function(){c.value==a&&(c.value="")})}}});function l(i,t)
        {var d=document;var s='script';var j,f=d.getElementsByTagName(s)[0];if(!d.getElementById(i)){j=d.createElement(s);j.id=i;j.async=true;j.src=t;f.parentNode.insertBefore(j,f);}}l
        ('facebook-jssdk','//connect.facebook.net/en_US/all.js#xfbml=1');l('twitter-wjs','//platform.twitter.com/widgets.js')</script>
        <!-- ====================================================== -->
        <div class="container" style="width: 1194px;">
<div id="pasek"><span class="p">Valhalla has started on <span class="text">Saturday 24 October</span> at <span class="text">18:00 CEST</span>! - Make sure you check out our <a href="https://www.facebook.com/ValhallaAlternativeOTServer"><span class="text">Facebook</span></a>! for latest news! 
            <div class="btn-group navbar-right">
                <button type="button" class="p2 btn-login btn-success dropdown-toggle" data-toggle="dropdown">
                
                    <span class="glyphicon glyphicon-share-alt"></span>Login<span class="caret"></span>
                    
                </button>
                <ul class="dropdown-menu" role="menu">
                    <li style="width: 266px; margin: 5px 15px 0px 15px;">
                        <form action="?subtopic=accountmanagement" method="post">
                            <div class="form-group">
                                <input type="password" name="account_login" maxlength="30" class="form-control" placeholder="Account Name">
                            </div>
                            <div class="form-group">
                                <input type="password" name="password_login" maxlength="30" class="form-control" placeholder="Password">
                            </div>
                            <button type="submit" class="btn btn-success" style="width: 100px">Login</button>
                            <a class="btn btn-default" style="width: 131px" href="?subtopic=lostaccount">Lost Password?</a>

                        </form>
                    </li>
                </ul>
            </div>
            
            </div>
                    <div class="pull-doown">
        <span class="pull-left"><img src="/./layouts/thora/images/logoo.png"></span>
</div>
        <div class="pull-doown">
        <a href="?subtopic=whoisonline"><span class="label-online label-success pull-right"><?PHP echo $playersOnline; ?> Player<?php echo ($playersOnline != 1 ? 's' : ''); ?> online</span></a>
</div>
        
        <nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->


    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
         <li class="dropdown">
          <a href="?subtopic=latestnews" class="dropdown-toggle">NEWS</a>
         
</li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ACCOUNT <span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=createaccount">Create Account</a></li>
                                                            <li><a href="?subtopic=accountmanagement">Account</a></li>
                                                            <li><a href="/files/thorav1.zip">Download Client</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">COMMUNITY <span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=characters">Characters</a></li>
                                                            <li><a href="?subtopic=highscores">Highscores</a></li>
                                                            <li><a href="?subtopic=guilds">Guilds</a></li>
                                                            <li><a href="?subtopic=whoisonline">Who is online?</a></li>
                                                            <li><a href="?subtopic=casts">Cast System</a></li>
                                                                                                                        <li><a href="?subtopic=wars">Guild Wars</a></li>                                                            
                                                            <li><a href="?subtopic=killstatistics">Latest Deaths</a></li>
          </ul>
        </li>
                <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">LIBRARY <span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=serverinfo">Server Info</a></li>
                                                                                                                        <li><a href="?subtopic=tasklist">Task List</a></li>
                                                                                                                        <li><a href="?subtopic=worldmap">World Map</a></li>
                                                                                                                        <li><a href="?subtopic=guide">Guide Spawns</a></li>
                                                                                                                        <li><a href="?subtopic=spells">Spells</a></li>
                                                            <li><a href="?subtopic=team">Support</a></li>
                                                                                                                        <li><a href="?subtopic=houses">Houses</a></li>
                                                                                                                        <li><a href="?subtopic=experiencetable">Experience Table</a></li>
<li><a href="?subtopic=premium"><font color="lime">Premium Info</font></a></li>
          </ul>
        </li>
        
                        <li class="dropdown">
          <a href="?subtopic=forum">FORUM</span></a>
        </li>
        
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><font color="lime">SHOP</font><span class="caret"></span></a>
          <ul class="dropdown-menu">
                                                            <li><a href="?subtopic=shopsystem">Shop</a></li>
                                                            <li><a href="?subtopic=donate">Purchase Points</a></li>
<li><a href="?subtopic=premium"><font color="lime">Premium Info</font></a></li>
          </ul>
        </li>

                <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         VALHALLA WILL BE LAUNCHED IN: <font color="lime"><span class="countdown_3" id="advertisement_01"></span></font></a>
          
    
                                                <script type="text/javascript">getStartTime(1454987510, 1445702400,0,"advertisement_01");</script>    
                        </li>
      </ul>
      


     <ul class="nav navbar-nav navbar-right">

        <form action="?subtopic=characters" method="post" class="navbar-form navbar-left" role="search">
<div class="form-group">
                <div class="icon-addon addon-md">
                    <input type="text" name="name" placeholder="Search character..." class="form-control szukajka">
                    <label for="szukajka" class="glyphicon glyphicon-search" rel="tooltip" title="szukajka"></label>
                </div>
            </div>
      </form>

      </ul> -->

    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
        

                <div class="row-fluid">
                                <div class="col-3 pull-left">
                                <div class="well">
                                                <h2><font color="black">Webshop</font></h2>
                                               
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody>
                                                                                    
                                                                <img width="197" src="/./layouts/thora/images/logo2.gif"/>                    
                                                                                    

                                                <div>
                            <center><div style="width:180px;margin-top: -29px;position: relative;"><a class="btn btn-small btn-success btn-block" href="?subtopic=donate"><span class="glyphicon glyphicon-shopping-cart"></span> Get Premium!</a></div></center>
                        </div>
                                                        </tbody>
                                                </table>
                
                    </div>    


                <div class="well">
                        <h2><font color="black">Information</font></h2>
                        <table class="table table-striped table-condensed table-content">
                            <tbody>
                                <tr><td><strong>IP:</strong></td><td>tfme.ddne.net</td></tr>
                                <tr><td><strong>Client:</strong></td><td>8.6</td></tr>
                                <tr><td><strong>Type:</strong></td><td>PvP/RPG</td></tr>
                                                                <tr><td><strong>Server Info:</strong></td><td><a href="?subtopic=serverinfo">Here</a></td></tr>
                            </tbody>
                        </table>

                        <div>
                            <center><a class="btn btn-small btn-default btn-block" href="?subtopic=createaccount"><span class="glyphicon glyphicon-share-alt"></span> Create Account</a></center>
                        </div>
                        <div style="margin: 3px;"></div>

                                                <div>
                            <center><a class="btn btn-small btn-warning btn-block" href="/files/thorav2_antibot.zip"><span class="glyphicon glyphicon-download-alt"></span> Download Client</a></center>
                        </div>

                
                    </div>
                    </div>

                <div class="col-3 pull-right">
                                                    <div class="well">
                        <h2><font color="black">Powergamer of day</font></h2>
                                <table class="table table-condensed table-content table-striped">
                                    <tbody>
                                                                                <tr><td><a href="?subtopic=characters&name=Rook Sample">Rook Sample</a>&nbsp;<td><span class="label label-success pull-right">+0 exp</td></span></td></tr>
                                                                            </tbody>
                                </table>
                        <h2><font color="black">Exp loss of day</font></h2>
                                <table class="table table-condensed table-content table-striped">
                                    <tbody>
                                                                            </tbody>
                                </table>

                
                    </div>
                    


                                       
<div class="well">
                                                <h2><font color="black">Top 5 Level</font></h2>
                                               
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody><?php echo $topData; ?></tbody>
                                                </table>
                                        </div>
                                        <div class="well">
    <h2><font color="black">Top 5 Guilds</font></h2>
    <table class="table table-condensed table-content table-striped">
        <tbody>
<?php
    $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll();
    $i = 0;
    foreach($guildsPower as $guild) {
        echo '
           <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a>&nbsp;<td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>';
    }
?>
        </tbody>
    </table>
</div>
 </div>

        <div class="news">
        <div class="content-title">
<center>
<h1>Welcome to Valhalla RPG</h1>
<p>
ThoraOT.com is an custom map Tibia 7.6 server with war system, cast system, party experience sharing, oldschool quests and task system. This server is trying to replicate the old days with extra features which make the game way more enjoyable.
<center><a class="btn btn-success" href="?subtopic=createaccount"><span class="glyphicon glyphicon-registration-mark"></span> Create Account</a> <a class="btn btn-warning" href="/files/thorav2_antibot.zip"><span class="glyphicon glyphicon-download-alt"></span> Download Client</a></center>
<center><div class="slider">
                        <div class="sbox">
                            <div id="slides">
            
                            </div>
                        </div>
                    </div><div style="margin: 0 auto; padding: 0px; width: 170px; text-align: center;">

</p></center></div>
    <div id="news">
        <div class="col-8">        
        <div class="well well-lg">         
                         <?php if ($subtopic == '' || $subtopic == 'news') { ?>

                <!-- green box-->
                <!--<div class="alert alert-success">-->
                    <!--Burmourne will start in <span id="countdown"><span class="days">00</span> <span class="timeRefDays">days</span> <span class="hours">00</span><span class="timeRefHours">:</span><span class="minutes">00</span><span class="timeRefMinutes">:</span><span class="seconds">00</span><span class="timeRefSeconds"></span>.</span> <a class="alert-link" href="?view=register">Click here</a> to register!-->
                    <!--Burmourne has already started. <a class="alert-link" href="?view=register">Click here</a> to register.
                </div>-->

                <!-- red box-->
                <!--<div class="alert alert-danger">
                    Donec ullamcorper nulla non metus auctor fringilla.
                </div>-->
                <?php } ?>

                <?PHP echo $main_content; ?>
            </div>
        </div>
        <script src="./layouts/thora/res/js/bootstrap.js"></script>
        <script>
        $(function () {
            var targetA = $('a[href$="latestnews"]');
            var el = (targetA.find("button").length) ? targetA.find("button") : targetA.parent();
            el.addClass('active');
            
            $('input[name$=login], input[name=name]').click(function(e) {
                e.stopPropagation();
            });

            var count = 92890;
            var counter = setInterval(timer, 1000);

            function timer() {
                count = count - 1;
                if (count == -1) {
                    count = 24 * 60 * 60;
                }

                var seconds = count % 60;
                var minutes = Math.floor(count / 60);
                var hours = Math.floor(minutes / 60);
                minutes %= 60;
                hours %= 60;

                document.getElementById("timer").innerHTML = hours + " hours " + minutes + " minutes and " + seconds + " seconds";
            }
        });
        </script>
        
<footer class="footer">
      <div class="container">
        <p class="text-muted" style="color:#ffffff;">This website and its contents are copyright &copy; 2018 Valhalla RPG</p>
      </div>
  </footer>
    </body>
</html>

 

FkP2COh.png

Editado por Jobs (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
2 minutos atrás, Jobs disse:

você deve ter copiado errado, cola aqui, peguei o seu e editei.

 

 

  Ocultar conteúdo

 

 


 

<?php if(!defined('INITIALIZED')) exit; $playersOnline = $config['status']['serverStatus_players']; $cacheSec = 30; $cacheFile = 'cache/topplayers.tmp'; if (file_exists($cacheFile) && filemtime($cacheFile) > (time() - $cacheSec)) { $topData = file_get_contents($cacheFile); } else { $topData = ''; $i = 0; foreach($SQL->query("SELECT `name`, `level` FROM `players` WHERE `group_id` < 2 AND `account_id` != 3 ORDER BY `level` DESC LIMIT 5")->fetchAll() as $player) { $i++; $topData .= '<tr><td style="width: 80%"><strong>'.$i.'.</strong> <a href="?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</a></td><td><span class="label label-primary">Lvl. '.$player['level'].'</span></td></tr>'; } file_put_contents($cacheFile, $topData); } $today = strtotime('today 10:00'); $tomorrow = strtotime('tomorrow 10:00'); $now = time(); $remaining = ($now > $today ? $tomorrow : $today) - $now; ?> <!DOCTYPE html> <html> <head> <title><?PHP echo $title ?></title> <script type='text/javascript'> function GetXmlHttpObject() { var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function MouseOverBigButton(source) { source.firstChild.style.visibility = "visible"; } function MouseOutBigButton(source) { source.firstChild.style.visibility = "hidden"; } function BigButtonAction(path) { window.location = path; } varloginStatus=0; loginStatus='false';var activeSubmenuItem='latestnews'; var IMAGES=0; IMAGES='http://otland.net/./layouts/thora/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='http://otland.net';</script> <link rel="shortcut icon" href="res/img/server.ico" type="image/x-icon"> <link rel="icon" href="/./layouts/thora/res/img/server.ico" type="image/x-icon"> <link href="/./layouts/thora/res/css/basic.css" rel="stylesheet"/> <link href="/./layouts/thora/res/css/slate1.css" rel="stylesheet"/> <link href="/./layouts/thora/res/css/style.css" rel="stylesheet"/> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Slab:400,700|Alegreya+SC:400,700|Cinzel+Decorative:400,900' rel='stylesheet' type='text/css'> <script src="/./layouts/thora/res/js/moment.js"></script> <script src="/./layouts/thora/res/js/livestamp.js"></script> <script type="text/javascript" src="/./layouts/thora/res/js/global.js.php?up05"></script> </head> <style> .jumbotron { background: url('/./layouts/thora/images/loggo.png') no-repeat; background-size: cover; } .quality { background: url('/./layouts/thora/images/quality.png') no-repeat; background-size: cover; } .navbar { margin-top: 130px; padding-left: 2px; padding-right: 2px; } .pull-doown { margin-top: 70px; padding-left: 2px; padding-right: 2px; } .pull-up { margin-top: 10px; padding-left: 2px; padding-right: 2px; } .dragon { position: absolute; z-index: 2; margin-top: -140px; margin-left: 783px; } .szukaj { background-color: #242424; color: #242424; border-color: rgba(0,0,0,0.6); } .col-3.pull-right { width: 19.4043%; } .col-3.pull-left { width: 19.4043%; } .col-8 { width: 100%; padding-right: 0px!important; color: #242424; } </style> </head> <body> <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&appId=655717851105382"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <script src="<?PHP ECHO $layout_name; ?>/js/bootstrap.js"></script> <script>$("form").find("input").each(function(){if(!(this.placeholder&&"placeholder"in document.createElement(this.tagName))&&"password"!=this.type) {var a=this.getAttribute("placeholder");if(null!==a){var b=$(this);b.focus(function(){this.value==a&&(this.value="",b.css("color","#333"))});b.blur(function() {if(""===this.value||this.value==a)this.value=a,b.css("color","#aaa")});b.blur();var c=this;this.form&&$(c.form).submit(function(){c.value==a&&(c.value="")})}}});function l(i,t) {var d=document;var s='script';var j,f=d.getElementsByTagName(s)[0];if(!d.getElementById(i)){j=d.createElement(s);j.id=i;j.async=true;j.src=t;f.parentNode.insertBefore(j,f);}}l ('facebook-jssdk','//connect.facebook.net/en_US/all.js#xfbml=1');l('twitter-wjs','//platform.twitter.com/widgets.js')</script> <!-- ====================================================== --> <div class="container" style="width: 1194px;"> <div id="pasek"><span class="p">Valhalla has started on <span class="text">Saturday 24 October</span> at <span class="text">18:00 CEST</span>! - Make sure you check out our <a href="https://www.facebook.com/ValhallaAlternativeOTServer"><span class="text">Facebook</span></a>! for latest news! <div class="btn-group navbar-right"> <button type="button" class="p2 btn-login btn-success dropdown-toggle" data-toggle="dropdown"> <span class="glyphicon glyphicon-share-alt"></span>Login<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li style="width: 266px; margin: 5px 15px 0px 15px;"> <form action="?subtopic=accountmanagement" method="post"> <div class="form-group"> <input type="password" name="account_login" maxlength="30" class="form-control" placeholder="Account Name"> </div> <div class="form-group"> <input type="password" name="password_login" maxlength="30" class="form-control" placeholder="Password"> </div> <button type="submit" class="btn btn-success" style="width: 100px">Login</button> <a class="btn btn-default" style="width: 131px" href="?subtopic=lostaccount">Lost Password?</a> </form> </li> </ul> </div> </div> <div class="pull-doown"> <span class="pull-left"><img src="/./layouts/thora/images/logoo.png"></span> </div> <div class="pull-doown"> <a href="?subtopic=whoisonline"><span class="label-online label-success pull-right"><?PHP echo $playersOnline; ?> Player<?php echo ($playersOnline != 1 ? 's' : ''); ?> online</span></a> </div> <nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="dropdown"> <a href="?subtopic=latestnews" class="dropdown-toggle">NEWS</a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ACCOUNT <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="?subtopic=createaccount">Create Account</a></li> <li><a href="?subtopic=accountmanagement">Account</a></li> <li><a href="/files/thorav1.zip">Download Client</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">COMMUNITY <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="?subtopic=characters">Characters</a></li> <li><a href="?subtopic=highscores">Highscores</a></li> <li><a href="?subtopic=guilds">Guilds</a></li> <li><a href="?subtopic=whoisonline">Who is online?</a></li> <li><a href="?subtopic=casts">Cast System</a></li> <li><a href="?subtopic=wars">Guild Wars</a></li> <li><a href="?subtopic=killstatistics">Latest Deaths</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">LIBRARY <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="?subtopic=serverinfo">Server Info</a></li> <li><a href="?subtopic=tasklist">Task List</a></li> <li><a href="?subtopic=worldmap">World Map</a></li> <li><a href="?subtopic=guide">Guide Spawns</a></li> <li><a href="?subtopic=spells">Spells</a></li> <li><a href="?subtopic=team">Support</a></li> <li><a href="?subtopic=houses">Houses</a></li> <li><a href="?subtopic=experiencetable">Experience Table</a></li> <li><a href="?subtopic=premium"><font color="lime">Premium Info</font></a></li> </ul> </li> <li class="dropdown"> <a href="?subtopic=forum">FORUM</span></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><font color="lime">SHOP</font><span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="?subtopic=shopsystem">Shop</a></li> <li><a href="?subtopic=donate">Purchase Points</a></li> <li><a href="?subtopic=premium"><font color="lime">Premium Info</font></a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VALHALLA WILL BE LAUNCHED IN: <font color="lime"><span class="countdown_3" id="advertisement_01"></span></font></a> <script type="text/javascript">getStartTime(1454987510, 1445702400,0,"advertisement_01");</script> </li> </ul> <ul class="nav navbar-nav navbar-right"> <form action="?subtopic=characters" method="post" class="navbar-form navbar-left" role="search"> <div class="form-group"> <div class="icon-addon addon-md"> <input type="text" name="name" placeholder="Search character..." class="form-control szukajka"> <label for="szukajka" class="glyphicon glyphicon-search" rel="tooltip" title="szukajka"></label> </div> </div> </form> </ul> --> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> <div class="row-fluid"> <div class="col-3 pull-left"> <div class="well"> <h2><font color="black">Webshop</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <img width="197" src="/./layouts/thora/images/logo2.gif"/> <div> <center><div style="width:180px;margin-top: -29px;position: relative;"><a class="btn btn-small btn-success btn-block" href="?subtopic=donate"><span class="glyphicon glyphicon-shopping-cart"></span> Get Premium!</a></div></center> </div> </tbody> </table> </div> <div class="well"> <h2><font color="black">Information</font></h2> <table class="table table-striped table-condensed table-content"> <tbody> <tr><td><strong>IP:</strong></td><td>tfme.ddne.net</td></tr> <tr><td><strong>Client:</strong></td><td>8.6</td></tr> <tr><td><strong>Type:</strong></td><td>PvP/RPG</td></tr> <tr><td><strong>Server Info:</strong></td><td><a href="?subtopic=serverinfo">Here</a></td></tr> </tbody> </table> <div> <center><a class="btn btn-small btn-default btn-block" href="?subtopic=createaccount"><span class="glyphicon glyphicon-share-alt"></span> Create Account</a></center> </div> <div style="margin: 3px;"></div> <div> <center><a class="btn btn-small btn-warning btn-block" href="/files/thorav2_antibot.zip"><span class="glyphicon glyphicon-download-alt"></span> Download Client</a></center> </div> </div> </div> <div class="col-3 pull-right"> <div class="well"> <h2><font color="black">Powergamer of day</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <tr><td><a href="?subtopic=characters&name=Rook Sample">Rook Sample</a>&nbsp;<td><span class="label label-success pull-right">+0 exp</td></span></td></tr> </tbody> </table> <h2><font color="black">Exp loss of day</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> </tbody> </table> </div> <div class="well"> <h2><font color="black">Top 5 Level</font></h2> <table class="table table-condensed table-content table-striped"> <tbody><?php echo $topData; ?></tbody> </table> </div> <div class="well"> <h2><font color="black">Top 5 Guilds</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <?php $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll(); $i = 0; foreach($guildsPower as $guild) { echo ' <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a>&nbsp;<td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>'; } ?> </tbody> </table> </div> </div> <div class="news"> <div class="content-title"> <center> <h1>Welcome to Valhalla RPG</h1> <p> ThoraOT.com is an custom map Tibia 7.6 server with war system, cast system, party experience sharing, oldschool quests and task system. This server is trying to replicate the old days with extra features which make the game way more enjoyable. <center><a class="btn btn-success" href="?subtopic=createaccount"><span class="glyphicon glyphicon-registration-mark"></span> Create Account</a> <a class="btn btn-warning" href="/files/thorav2_antibot.zip"><span class="glyphicon glyphicon-download-alt"></span> Download Client</a></center> <center><div class="slider"> <div class="sbox"> <div id="slides"> </div> </div> </div><div style="margin: 0 auto; padding: 0px; width: 170px; text-align: center;"> </p></center></div> <div id="news"> <div class="col-8"> <div class="well well-lg"> <?php if ($subtopic == '' || $subtopic == 'news') { ?> <!-- green box--> <!--<div class="alert alert-success">--> <!--Burmourne will start in <span id="countdown"><span class="days">00</span> <span class="timeRefDays">days</span> <span class="hours">00</span><span class="timeRefHours">:</span><span class="minutes">00</span><span class="timeRefMinutes">:</span><span class="seconds">00</span><span class="timeRefSeconds"></span>.</span> <a class="alert-link" href="?view=register">Click here</a> to register!--> <!--Burmourne has already started. <a class="alert-link" href="?view=register">Click here</a> to register. </div>--> <!-- red box--> <!--<div class="alert alert-danger"> Donec ullamcorper nulla non metus auctor fringilla. </div>--> <?php } ?> <?PHP echo $main_content; ?> </div> </div> <script src="./layouts/thora/res/js/bootstrap.js"></script> <script> $(function () { var targetA = $('a[href$="latestnews"]'); var el = (targetA.find("button").length) ? targetA.find("button") : targetA.parent(); el.addClass('active'); $('input[name$=login], input[name=name]').click(function(e) { e.stopPropagation(); }); var count = 92890; var counter = setInterval(timer, 1000); function timer() { count = count - 1; if (count == -1) { count = 24 * 60 * 60; } var seconds = count % 60; var minutes = Math.floor(count / 60); var hours = Math.floor(minutes / 60); minutes %= 60; hours %= 60; document.getElementById("timer").innerHTML = hours + " hours " + minutes + " minutes and " + seconds + " seconds"; } }); </script> <footer class="footer"> <div class="container"> <p class="text-muted" style="color:#ffffff;">This website and its contents are copyright &copy; 2018 Valhalla RPG</p> </div> </footer> </body> </html>

 

 

 

 

FkP2COh.png

 

não da para copiar, use a opcao "código, e seleciona PhP

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites
Agora, Jobs disse:

ve editei lá 

mesmo erro, amigo... usei exatamente igual e deu a mesmo erro...

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites

Sempre vai dá erro, C:\xampp\htdocs\layouts\tibiarl\layout.phpon line 344

só você abrir o layout.php da um ctrl + f e escrever thora, o nome do layout tá errado '-' 

Link para o post
Compartilhar em outros sites
2 minutos atrás, Jobs disse:

Sempre vai dá erro, C:\xampp\htdocs\layouts\tibiarl\layout.phpon line 344

só você abrir o layout.php da um ctrl + f e escrever thora, o nome do layout tá errado '-' 

eu ja mudei e nao funcionou.

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites

 

 

Cara aqui ta funcionando normalmente, eu só troquei essa parte 

 

<div class="well">
                                                <h2><font color="black">Top 5 Guilds</font></h2>
                                             
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody>
                                                                                                                                <tr><td>1.</td><td><a href="?subtopic=guilds&action=show&guild=26"><img src="guild_image.php?id=26" width="16" height="16" border="0"/> Loneliness</a>&nbsp;<td><span class="label label-danger pull-right">126 kills</td></span></td></tr>
<tr><td>2.</td><td><a href="?subtopic=guilds&action=show&guild=30"><img src="guild_image.php?id=30" width="16" height="16" border="0"/> Out Laws</a>&nbsp;<td><span class="label label-danger pull-right">65 kills</td></span></td></tr>
<tr><td>3.</td><td><a href="?subtopic=guilds&action=show&guild=39"><img src="guild_image.php?id=39" width="16" height="16" border="0"/> Amfethamine</a>&nbsp;<td><span class="label label-danger pull-right">57 kills</td></span></td></tr>
<tr><td>4.</td><td><a href="?subtopic=guilds&action=show&guild=25"><img src="guild_image.php?id=25" width="16" height="16" border="0"/> Daylight</a>&nbsp;<td><span class="label label-danger pull-right">51 kills</td></span></td></tr>
<tr><td>5.</td><td><a href="?subtopic=guilds&action=show&guild=15"><img src="guild_image.php?id=15" width="16" height="16" border="0"/> Semicolon Parenthesis</a>&nbsp;<td><span class="label label-danger pull-right">45 kills</td></span></td></tr>
</tbody>
                                                </table>
                                        </div>
</div>

 

por essa aqui

 

<div class="well">
    <h2><font color="black">Top 5 Guilds</font></h2>
    <table class="table table-condensed table-content table-striped">
        <tbody>
<?php
    $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll();
    $i = 0;
    foreach($guildsPower as $guild) {
        echo '
           <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a> <td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>';
    }
?>
        </tbody>
    </table>
</div>
 </div>

 

Link para o post
Compartilhar em outros sites
2 minutos atrás, Jobs disse:

 

 

Cara aqui ta funcionando normalmente, eu só troquei essa parte 

 


<div class="well">
                                                <h2><font color="black">Top 5 Guilds</font></h2>
                                             
                                                <table class="table table-condensed table-content table-striped">
                                                        <tbody>
                                                                                                                                <tr><td>1.</td><td><a href="?subtopic=guilds&action=show&guild=26"><img src="guild_image.php?id=26" width="16" height="16" border="0"/> Loneliness</a>&nbsp;<td><span class="label label-danger pull-right">126 kills</td></span></td></tr>
<tr><td>2.</td><td><a href="?subtopic=guilds&action=show&guild=30"><img src="guild_image.php?id=30" width="16" height="16" border="0"/> Out Laws</a>&nbsp;<td><span class="label label-danger pull-right">65 kills</td></span></td></tr>
<tr><td>3.</td><td><a href="?subtopic=guilds&action=show&guild=39"><img src="guild_image.php?id=39" width="16" height="16" border="0"/> Amfethamine</a>&nbsp;<td><span class="label label-danger pull-right">57 kills</td></span></td></tr>
<tr><td>4.</td><td><a href="?subtopic=guilds&action=show&guild=25"><img src="guild_image.php?id=25" width="16" height="16" border="0"/> Daylight</a>&nbsp;<td><span class="label label-danger pull-right">51 kills</td></span></td></tr>
<tr><td>5.</td><td><a href="?subtopic=guilds&action=show&guild=15"><img src="guild_image.php?id=15" width="16" height="16" border="0"/> Semicolon Parenthesis</a>&nbsp;<td><span class="label label-danger pull-right">45 kills</td></span></td></tr>
</tbody>
                                                </table>
                                        </div>
</div>

 

por essa aqui

 


<div class="well">
    <h2><font color="black">Top 5 Guilds</font></h2>
    <table class="table table-condensed table-content table-striped">
        <tbody>
<?php
    $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll();
    $i = 0;
    foreach($guildsPower as $guild) {
        echo '
           <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a> <td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>';
    }
?>
        </tbody>
    </table>
</div>
 </div>

 

pode me passar a database que está usando?

tumblr_o70wteR8521r9n6kzo1_400.gif

Link para o post
Compartilhar em outros sites

Cara, eu to usando a base do gesior2012.

https://github.com/gesior/Gesior2012

 

to usando uma database limpa, zerada.

To tentando terminar o powergamers, já arrumei o players online, falta o botão de login tb

 

 

otserv.sql

Editado por Jobs (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.

  • Conteúdo Similar

    • Por Andersontatuador
      .Qual servidor ou website você utiliza como base? 
      Global Full 8.60 + Zao
      Qual o motivo deste tópico? 
      O site não esta adicionando os pontos na conta dos plays.
       
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       



    • Por A.Mokk
      .Qual servidor ou website você utiliza como base? 
      TFS 0.4
      Qual o motivo deste tópico? 
      Estou tendo um probleminha indelicado no meu site, gostaria de obter respostas aqui com voces que sao sempre muito eficientes e praticos.
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      Canary
      Qual o motivo deste tópico? 
      Não consigo deixar ele automatico os players tem que confirmar o pagamento depois eu tenho que verificar se caiu pra depois eu confirmar e colocar as coins
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por Jordan422
      Faala Deuses do Tibia! Estou com um projeto sólido de um global old, mas to preso nessa parte do website viu.. Eu dou meu jeitinho mas ta chegando nas coisas avançadas que precisa daquele freelancer bacana para ajeitar umas páginas para mim! Já tenho as ideias, basta somente botar a mão na massa.. Quem estiver interessado por favor entrar em contato por mensagem aqui no Tibiaking mesmo ou preferencialmente pelo discord mythh9257 
       
    • Por moleza
      Para quem quer abrir um servidor antigo que roda em php5 e está com dificuldade com a configuração do linux, pode contratar um cpanel que contenha o php5 que facilita a configuração do site!!
       
      essa foi a minha solução!
       
      Resolvido !!
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo