• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC TOP Guilds dont work!

boxxer321

Well-Known Member
Joined
Nov 5, 2011
Messages
118
Reaction score
59
Hey guys! So I need a little help from you!
My TOP guilds are fixed that way, which someone edited, but these guilds do not even exist !, I wish it worked for real.

My layout.php where it contains the top guilds:
<?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?fam...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="Valhalla RPG"><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>

oTPQqci.png
 
Delete cache/topplayers.tmp, then it should load the guilds again from the database.

yes, @slawkens, but the Top Guilds are in this order because of the script... the creator made like this... "Loneliss 126 Kills" for exemple, was been set in the top Guilds...

this guild does not exist, inclusive hahahaha
 
Back
Top