• 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!

Solved Change Vocation Script Not Working Fully

Post the code of the online display thingy.
Code:
			<div id='menu_top_online'>
						<center><a href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							$kutas16 = $config['status']['serverStatus_players'] + 0;
							echo $kutas16 ?></font></a></center></br>						<a href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>
 
Code:
[COLOR=#000000]                                        <div id='menu_top_online'>
                        <center><a href="?subtopic=whoisonline"><font style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;">
             <small>Currently
          [COLOR=#0000BB]<?PHP
            [/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000BB]$config[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'status'[/COLOR][COLOR=#007700]][[/COLOR][COLOR=#DD0000]'serverStatus_online'[/COLOR][COLOR=#007700]] == [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700])
                echo [/COLOR][COLOR=#0000BB]$config[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'status'[/COLOR][COLOR=#007700]][[/COLOR][COLOR=#DD0000]'serverStatus_players'[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#DD0000]' Online'[/COLOR][COLOR=#007700];
            else
                echo [/COLOR][COLOR=#DD0000]'<b>offline</b>'[/COLOR][COLOR=#007700];
          [/COLOR][COLOR=#0000BB]?>[/COLOR]</small></font></a></center>[/COLOR]</br>                        <a rel="nofollow" href="?subtopic=createaccount">
                            <div class='fadehover'>
                                <img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                </div>
            </div>

Should work.
 
Here it is.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    floatPosition: google.translate.TranslateElement.FloatPosition.BOTTOM_RIGHT
  });
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
		<meta http-equiv='content-language' content='en & pl' />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<META HTTP-EQUIV="Reply-to" CONTENT="Insaneria">
		<meta name="revisit-after" content="1 Days"/>

		<meta name="date" content="2012-01-29">
		<meta http-equiv="Creation-date" content="2012-01-29 T09:40:00Z" />
		<meta http-equiv="pragma" content="no-cache">
		<meta content="global" name="distribution">
		<meta content="ots" name="classification">
		<meta content="general" name="rating">

		<link rel="stylesheet" type="text/css" href="<? echo $layout_name; ?>/css/basic.css" />
		<link rel="stylesheet" type="text/css" href="<? echo $layout_name; ?>/css/tooltip.css" />
		<link rel="stylesheet" type="text/css" href="<? echo $layout_name; ?>/css/screen.css" />
		<meta name="page-topic" content="Insaneria">
		
		<meta name='author' content='Insaneria :*' />
		<meta name='description' content='Insaneria' />
		<meta name='keywords' content='Insaneria' />
		
		<link rel="shortcut icon" href="<? echo $layout_name; ?>/images/server.ico" type="image/x-icon"/>
		<link rel="icon" href="<? echo $layout_name; ?>/images/server.ico" type="image/x-icon"/> 
		
		<title>Insaneria - Real Map</title>

		<link rel="stylesheet" type="text/css" href="<? echo $layout_name; ?>/js2/tooltip.css" />
		<script src='<? echo $layout_name; ?>/js2/tooltip.js'></script>
		<script type="text/javascript" src="<? echo $layout_name; ?>/js/jQuery.js"></script>
		<script type="text/javascript" src="<? echo $layout_name; ?>/js/jQuery2.js"></script>
		
		<script type="text/javascript" src="..<? echo $layout_name; ?>/js/initialize.js"></script>
		<script type='text/javascript'> var IMAGES=0; IMAGES='<? echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
		<SCRIPT TYPE="text/javascript">
			<!-- // Framekiller
			setTimeout ("changePage()", 6000);
			function changePage()
			{
			 if (parent.frames.length > 2) {
			  if (browserTyp == "ie") {
				parent.location=document.location;
			  } else {
				self.top.location=document.location;
			  }
			 }
			}
			// -->
		</SCRIPT>
		<script type='text/javascript'>
			$(document).ready(function(){
			$("img.a").hover(
				function() {
					$(this).stop().animate({"opacity": "0"}, "slow");
				},
				function() {
					$(this).stop().animate({"opacity": "1"}, "slow");
				});
			});
		</script>
		<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://legoria.eu/<? echo $layout_name; ?>/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='http://legoria.eu/';</script>	
	

	</head>
	
	<body>
		<div id='page'>
			<div id='logo'>
				<div class='img'>
					<div id='menu_top_home'>
						<a href="?subtopic=latestnews">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/home.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/home_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
					<div id='menu_top_acc'>
						<a href="?subtopic=accountmanagement">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/account.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/account_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
					<div id='menu_top_guild'>
						<a href="?subtopic=guilds">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/guilds.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/guilds_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
					<div id='menu_top_shop'>
						<a href="?subtopic=shopsystem">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/shop.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/shop_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>

					<div id='menu_top_forum'>
						<a href="http://insaneria.forumotion.eu/">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/forum.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/forum_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
					<div id='menu_top_high'>
						<a href="?subtopic=highscores">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/highscores.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/highscores_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>

								<div id='menu_top_online'>
						<center><a href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							$kutas16 = $config['status']['serverStatus_players'] + 0;
							echo $kutas16 ?></font></a></center></br>						<a href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>

			<div id='menu'>
				<div class='nav-top'>
					<div class='text'>
						<div id="icon-news"></div>
							News
					</div>
				</div>
				<div class='bg'>
					<ul>
						<li><a href="?subtopic=latestnews"><b>Latest News</b></a></li>
						<li><a href="?subtopic=archive"><b>News Archive</b></a></li>

	
					</ul>
				</div>
				
				<div class='nav-top'>
					<div class='text'>
						<div id="icon-account"></div>
							Account
					</div>
				</div>
				<div class='bg'>
					<ul>
						
						
						
                                	<?php 
									if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
									echo '<li><a href="?subtopic=adminpanel"><font color="red"><b>! Admin Panel !</b></font></a></li>';
									if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
									echo '<li><a href="?subtopic=namelock"><font color="red"><b>! Name Lock !</b></font></a></li>';
									if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
									echo '<li><a href="?subtopic=shopadmin"><font color="red"><b>! Shop Admin !</b></font></a></li>';
									if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
									echo '<li><a href="?subtopic=auctionpanel"><font color="red"><b>! Auction Panel !</b></font></a></li>';
									if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
							
									{
										echo '
										<li><a href="?subtopic=accountmanagement"><b>My Account</b></a></li>
										<li><a href="?subtopic=accountmanagement&action=logout"><b>Logout</b></a></li>
										<li><a href="?subtopic=guilds&action=createguild"><font color="yellow"><b>Create New Guild</font></b></a></li>
										<li><a href="?subtopic=createaccount"><b>Create Account</b></a></li>
										<li><a href="?subtopic=lostaccount"><b>Lost Account</b></a></li>
										<li><a href="?subtopic=tibiarules"><b>Server Rules</b></a></li>';
									}
									else
									{
										echo '<li><a href="?subtopic=accountmanagement"><b>Login</b></a></li>';
										echo '<li><a href="?subtopic=createaccount"><b>Create Account</b></a></li>';
										echo '<li><a href="?subtopic=lostaccount"><b>Lost Account</b></a></li>';
										echo '<li><a href="?subtopic=tibiarules"><b>Server Rules</b></a></li>';
									}
									?>							
					</ul>
				</div>
				
				<div class='nav-top'>
					<div class='text'>
						<div id="icon-community"></div>
							Community
					</div>
				</div>
				<div class='bg'>
					<ul>
						<li><a href="?subtopic=characters"><b>Characters</b></a></li>
						<li><a href="?subtopic=whoisonline"><b>Who Is Online?</b></a></li>
						<li><a href="?subtopic=highscores"><b>Highscores</b></a></li>
						<li><a href="?subtopic=frag"><b>Top Fragger</b></a></li>
						<li><a href="?subtopic=killstatistics"><b>Last deaths</b></a></li>
						<li><a href="?subtopic=guilds"><b>Guilds</b></a></li>
						<li><a href="?subtopic=wars"><b><font color="red">Guild wars</font></b></a></li>
						<li><a href="?subtopic=bans"><b><strike>Banishments</strike></b></a></li>
						<li><a href="?subtopic=team"><font color="green"><b>Support</b></font></a></li>
						<li><a href="?subtopic=pktgildie"><b><font color="yellow">Points For Guilds</font></b></a></li>
					</ul>
				</div>
				
				<div class='nav-top'>
					<div class='text'>
						<div id="icon-forum"></div>
							Forum
					</div>
				</div>
				<div class='bg'>
					<ul>
						<li><a href="http://insaneria.forumotion.eu/"><font color="white"><b>Forum</b></font></a></li>
					</ul>
				</div>

				<div class='nav-top'>
					<div class='text'>
						<div id="icon-library"></div>
							Library
					</div>
				</div>
				<div class='bg'>
					<ul>
						<li><a href="?subtopic=downloads"><b>Download</b></a></li>
					</ul>
				</div>

				
				<div class='nav-top'>
					<div class='text'>
						<div id="icon-shop"></div>
							Shop
					</div>
				</div>
				<div class='bg'>
					<ul>
					<li><a href="?subtopic=buychar"><b><font color="red">Buy Characters</font></b></a></li>
						<li><a href="?subtopic=buypoints"><b><font color="red">Buy Points</font></b></a></li>
						<li><a href="?subtopic=shopsystem"><b><font color="green">Shop Offer</font></b></a></li>
					</ul>
				</div>
				<div id="menu_bot"></div>
			</div>
			
			<div id='content'>


				<div id="cnt-right">
                	<div id="content-cnt">
                    	<div id="content-bg">
                        	<div id="content-top">
                            	<div id="content-bot">
                                <?php echo $main_content; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="footer"><p style="color: #FFF;">Copyrights &copy; 2012 by Insaneria. All rights reserved.</p></div>
            </div>
		
        	<div id="cnt-box2">
				<div id='menu'>
					<div class='nav-top'>
						<div class='text'>
									<div id="icon-status"></div>
								Status
								 
						</div>
					</div>
				
	<div class='bg'>
						
								<center>	    <?PHP
                                if($config['status']['serverStatus_online'] == 1)
                                    echo '<img src="/images/online.png">';
                                else
                                    echo '<img src="/images/offline.png" width="143px" height="40px">';
                            ?>
					</center>
					</div>
					
					
					
					<div class='nav-top'>
						<div class='text'>
							<div id="icon-sss"></div>
							Systems
						</div>
					</div>
					<div class='bg'>
						<ul>
							<li><a href="?subtopic=hunting"><b>Hunting Arenas</b></a></li>
							<li><a href="?subtopic=bonusaddon"><b>Addon Bonus</b></a></li>
							<li><a href="?subtopic=lottery"><b>Lottery System</b></a></li>
							<li><a href="?subtopic=auctions"><b>Auction System</b></a></li>
						</ul>
					</div>

						<div id="cnt-box3">
				<div id='menu'>
					<div class='nav-top'>
						<div class='text'>
									<div id="icon-events"></div>
								Games
						</div>
						</div>
						<div class='bg'>
						<ul>
							<li><a href="?subtopic=bomberman"><b>Bomberman</b></a></li>
							<li><a href="?subtopic=casino"><b>Casino</b></a></li>
	                     	<li><a href="?subtopic=soccer"><b>Football</b></a></li>
							
						</ul>
					
					</div>
						<div id="cnt-box4">
				<div id='menu'>
					<div class='nav-top'>
						<div class='text'>
								Towns
						</div>
						</div>
						<div class='bg'>
						<li><a href="?subtopic=iod"><b>Island Of Destiny</b></a></li>
						<ul>
						
					
							
						</ul>

					
					</div>
					
					<div id="menu_bot"></div>
				</div>
				<center><script id="_wauvz2">var _wau = _wau || []; _wau.push(["classic", "34m04z279pct", "vz2"]);
(function() {var s=document.createElement("script"); s.async=true;
s.src="http://widgets.amung.us/classic.js";
document.getElementsByTagName("head")[0].appendChild(s);
})();</script></center>
				<div id="menu-bottom2">&nbsp;</div>
					<div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"></div>
<div id="dot1" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt=""></div>
<div id="dot2" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>
<div id="dot3" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt="."></div>
<div id="dot4" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>
<div id="dot5" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt="."></div>
<div id="dot6" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>

<script type='text/javascript'>



<!-- Begin
var nDots = 7;
if (document.all&&window.print)
document.body.style.cssText="overflow-x:hidden;overflow-y:scroll"
var Xpos = 0;
var Ypos = 0;


var DELTAT = .01;
var SEGLEN = 10;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 35;
var BOUNCE = 0.75;

var isNetscape = navigator.appName=="Netscape";

var followmouse = true;

var dots = new Array();
init();
function init()
{
    var i = 0;
    for (i = 0; i < nDots; i++) {
        dots[i] = new dot(i);
    }
    
     for (i = 0; i < nDots; i++) {
        dots[i].obj.left = dots[i].X + "px";
        dots[i].obj.top = dots[i].Y + "px";
    }
    
    if (isNetscape) {
        startanimate();
    } else {
        setTimeout("startanimate()", 20);
    }
}

function dot(i) 
{
    this.X = Xpos;
    this.Y = Ypos;
    this.dx = 0;
    this.dy = 0;
    this.obj = eval("document.getElementById('dot" + i + "').style");
}

document.onmousemove = MoveHandler;

function startanimate() {	
    setInterval("animate()", 20);
}

function MoveHandler(e) {

	if (!e) {
		Xpos = window.event.x + document.body.scrollLeft;
		Ypos = window.event.y + document.body.scrollTop;
	} else {
		Xpos = e.pageX;
		Ypos = e.pageY;
	}
}

function vec(X, Y)
{
    this.X = X;
    this.Y = Y;
}

function springForce(i, j, spring)
{
    var dx = (dots[i].X - dots[j].X);
    var dy = (dots[i].Y - dots[j].Y);
    var len = Math.sqrt(dx*dx + dy*dy);
    if (len > SEGLEN) {
        var springF = SPRINGK * (len - SEGLEN);
        spring.X += (dx / len) * springF;
        spring.Y += (dy / len) * springF;
    }
}

function animate() {	
     var start = 0;
    if (followmouse) {
        dots[0].X = Xpos;
        dots[0].Y = Ypos;
        start = 1;
    }
    
    for (i = start ; i < nDots; i++ ) {
        
        var spring = new vec(0, 0);
        if (i > 0) {
            springForce(i-1, i, spring);
        }
        if (i < (nDots - 1)) {
            springForce(i+1, i, spring);
        }
        
         var resist = new vec(-dots[i].dx * RESISTANCE,
            -dots[i].dy * RESISTANCE);
        
         var accel = new vec((spring.X + resist.X)/ MASS,
            (spring.Y + resist.Y)/ MASS + GRAVITY);
        
          dots[i].dx += (DELTAT * accel.X);
        dots[i].dy += (DELTAT * accel.Y);
        
          if (Math.abs(dots[i].dx) < STOPVEL &&
            Math.abs(dots[i].dy) < STOPVEL &&
            Math.abs(accel.X) < STOPACC &&
            Math.abs(accel.Y) < STOPACC) {
            dots[i].dx = 0;
            dots[i].dy = 0;
        }
        
         dots[i].X += dots[i].dx;
        dots[i].Y += dots[i].dy;

         var height, width;
        if (isNetscape) {
            height = window.innerHeight + document.scrollTop;
            width = window.innerWidth + document.scrollLeft;
        } else {	
            height = document.body.clientHeight + document.body.scrollTop;
            width = document.body.clientWidth + document.body.scrollLeft;
        }
        
        if (dots[i].Y >=  height - DOTSIZE - 1) {
            if (dots[i].dy > 0) {
                dots[i].dy = BOUNCE * -dots[i].dy;
            }
            dots[i].Y = height - DOTSIZE - 1;
        }
        if (dots[i].X >= width - DOTSIZE) {
            if (dots[i].dx > 0) {
                dots[i].dx = BOUNCE * -dots[i].dx;
            }
            dots[i].X = width - DOTSIZE - 1;
        }
        if (dots[i].X < 0) {
            if (dots[i].dx < 0) {
                dots[i].dx = BOUNCE * -dots[i].dx;
            }
            dots[i].X = 0;
        }
        
        dots[i].obj.left = dots[i].X + "px";
        dots[i].obj.top =  dots[i].Y + "px";
    }
}
// End -->
</SCRIPT>
			</div>
	</body>
</html>
Also if you wouldn't mind,could you tell me how I can add new icons beside the menus ?
[Like the golden key beside account]
 
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    floatPosition: google.translate.TranslateElement.FloatPosition.BOTTOM_RIGHT
  });
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
        <meta http-equiv='content-language' content='en & pl' />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <META HTTP-EQUIV="Reply-to" CONTENT="Insaneria">
        <meta name="revisit-after" content="1 Days"/>

        <meta name="date" content="2012-01-29">
        <meta http-equiv="Creation-date" content="2012-01-29 T09:40:00Z" />
        <meta http-equiv="pragma" content="no-cache">
        <meta content="global" name="distribution">
        <meta content="ots" name="classification">
        <meta content="general" name="rating">

        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/css/basic.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/css/tooltip.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/css/screen.css" />
        <meta name="page-topic" content="Insaneria">
        
        <meta name='author' content='Insaneria :*' />
        <meta name='description' content='Insaneria' />
        <meta name='keywords' content='Insaneria' />
        
        <link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/server.ico" type="image/x-icon"/>
        <link rel="icon" href="<?php echo $layout_name; ?>/images/server.ico" type="image/x-icon"/> 
        
        <title>Insaneria - Real Map</title>

        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/js2/tooltip.css" />
        <script src='<?php echo $layout_name; ?>/js2/tooltip.js'></script>
        <script type="text/javascript" src="<?php echo $layout_name; ?>/js/jQuery.js"></script>
        <script type="text/javascript" src="<?php echo $layout_name; ?>/js/jQuery2.js"></script>
        
        <script type="text/javascript" src="..<?php echo $layout_name; ?>/js/initialize.js"></script>
        <script type='text/javascript'> var IMAGES=0; IMAGES='<?php echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
        <SCRIPT TYPE="text/javascript">
            <!-- // Framekiller
            setTimeout ("changePage()", 6000);
            function changePage()
            {
             if (parent.frames.length > 2) {
              if (browserTyp == "ie") {
                parent.location=document.location;
              } else {
                self.top.location=document.location;
              }
             }
            }
            // -->
        </SCRIPT>
        <script type='text/javascript'>
            $(document).ready(function(){
            $("img.a").hover(
                function() {
                    $(this).stop().animate({"opacity": "0"}, "slow");
                },
                function() {
                    $(this).stop().animate({"opacity": "1"}, "slow");
                });
            });
        </script>
        <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://legoria.eu/<?php echo $layout_name; ?>/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='http://legoria.eu/';</script>    
    

    </head>
    
    <body>
        <div id='page'>
            <div id='logo'>
                <div class='img'>
                    <div id='menu_top_home'>
                        <a href="?subtopic=latestnews">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/home.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/home_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_acc'>
                        <a href="?subtopic=accountmanagement">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/account.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/account_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_guild'>
                        <a href="?subtopic=guilds">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/guilds.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/guilds_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_shop'>
                        <a href="?subtopic=shopsystem">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/shop.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/shop_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>

                    <div id='menu_top_forum'>
                        <a href="http://insaneria.forumotion.eu/">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/forum.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/forum_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_high'>
                        <a href="?subtopic=highscores">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/highscores.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/highscores_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>

                                        <div id='menu_top_online'>
                        <center><a href="?subtopic=whoisonline"><font style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;">
             <small>Currently
          <?PHP
            if($config['status']['serverStatus_online'] == 1)
                echo $config['status']['serverStatus_players'].' Online';
            else
                echo '<b>offline</b></font>';
          ?></font></small></a></center>                        <a href="?subtopic=createaccount">

                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/register.png' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/register_on.png' class='b' />
                            </div>
                        </a>
                    </div>
                </div>
            </div>

            <div id='menu'>
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-news"></div>
                            News
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="?subtopic=latestnews"><b>Latest News</b></a></li>
                        <li><a href="?subtopic=archive"><b>News Archive</b></a></li>

    
                    </ul>
                </div>
                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-account"></div>
                            Account
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        
                        
                        
                                    <?php 
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=adminpanel"><font color="red"><b>! Admin Panel !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=namelock"><font color="red"><b>! Name Lock !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=shopadmin"><font color="red"><b>! Shop Admin !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=auctionpanel"><font color="red"><b>! Auction Panel !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                            
                                    {
                                        echo '
                                        <li><a href="?subtopic=accountmanagement"><b>My Account</b></a></li>
                                        <li><a href="?subtopic=accountmanagement&action=logout"><b>Logout</b></a></li>
                                        <li><a href="?subtopic=guilds&action=createguild"><font color="yellow"><b>Create New Guild</font></b></a></li>
                                        <li><a href="?subtopic=createaccount"><b>Create Account</b></a></li>
                                        <li><a href="?subtopic=lostaccount"><b>Lost Account</b></a></li>
                                        <li><a href="?subtopic=tibiarules"><b>Server Rules</b></a></li>';
                                    }
                                    else
                                    {
                                        echo '<li><a href="?subtopic=accountmanagement"><b>Login</b></a></li>';
                                        echo '<li><a href="?subtopic=createaccount"><b>Create Account</b></a></li>';
                                        echo '<li><a href="?subtopic=lostaccount"><b>Lost Account</b></a></li>';
                                        echo '<li><a href="?subtopic=tibiarules"><b>Server Rules</b></a></li>';
                                    }
                                    ?>                            
                    </ul>
                </div>
                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-community"></div>
                            Community
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="?subtopic=characters"><b>Characters</b></a></li>
                        <li><a href="?subtopic=whoisonline"><b>Who Is Online?</b></a></li>
                        <li><a href="?subtopic=highscores"><b>Highscores</b></a></li>
                        <li><a href="?subtopic=frag"><b>Top Fragger</b></a></li>
                        <li><a href="?subtopic=killstatistics"><b>Last deaths</b></a></li>
                        <li><a href="?subtopic=guilds"><b>Guilds</b></a></li>
                        <li><a href="?subtopic=wars"><b><font color="red">Guild wars</font></b></a></li>
                        <li><a href="?subtopic=bans"><b><strike>Banishments</strike></b></a></li>
                        <li><a href="?subtopic=team"><font color="green"><b>Support</b></font></a></li>
                        <li><a href="?subtopic=pktgildie"><b><font color="yellow">Points For Guilds</font></b></a></li>
                    </ul>
                </div>
                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-forum"></div>
                            Forum
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="http://insaneria.forumotion.eu/"><font color="white"><b>Forum</b></font></a></li>
                    </ul>
                </div>

                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-library"></div>
                            Library
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="?subtopic=downloads"><b>Download</b></a></li>
                    </ul>
                </div>

                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-shop"></div>
                            Shop
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                    <li><a href="?subtopic=buychar"><b><font color="red">Buy Characters</font></b></a></li>
                        <li><a href="?subtopic=buypoints"><b><font color="red">Buy Points</font></b></a></li>
                        <li><a href="?subtopic=shopsystem"><b><font color="green">Shop Offer</font></b></a></li>
                    </ul>
                </div>
                <div id="menu_bot"></div>
            </div>
            
            <div id='content'>


                <div id="cnt-right">
                    <div id="content-cnt">
                        <div id="content-bg">
                            <div id="content-top">
                                <div id="content-bot">
                                <?php echo $main_content; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="footer"><p style="color: #FFF;">Copyrights &copy; 2012 by Insaneria. All rights reserved.</p></div>
            </div>
        
            <div id="cnt-box2">
                <div id='menu'>
                    <div class='nav-top'>
                        <div class='text'>
                                    <div id="icon-status"></div>
                                Status
                                 
                        </div>
                    </div>
                
    <div class='bg'>
                        
                                <center>        <?PHP
                                if($config['status']['serverStatus_online'] == 1)
                                    echo '<img src="/images/online.png">';
                                else
                                    echo '<img src="/images/offline.png" width="143px" height="40px">';
                            ?>
                    </center>
                    </div>
                    
                    
                    
                    <div class='nav-top'>
                        <div class='text'>
                            <div id="icon-sss"></div>
                            Systems
                        </div>
                    </div>
                    <div class='bg'>
                        <ul>
                            <li><a href="?subtopic=hunting"><b>Hunting Arenas</b></a></li>
                            <li><a href="?subtopic=bonusaddon"><b>Addon Bonus</b></a></li>
                            <li><a href="?subtopic=lottery"><b>Lottery System</b></a></li>
                            <li><a href="?subtopic=auctions"><b>Auction System</b></a></li>
                        </ul>
                    </div>

                        <div id="cnt-box3">
                <div id='menu'>
                    <div class='nav-top'>
                        <div class='text'>
                                    <div id="icon-events"></div>
                                Games
                        </div>
                        </div>
                        <div class='bg'>
                        <ul>
                            <li><a href="?subtopic=bomberman"><b>Bomberman</b></a></li>
                            <li><a href="?subtopic=casino"><b>Casino</b></a></li>
                             <li><a href="?subtopic=soccer"><b>Football</b></a></li>
                            
                        </ul>
                    
                    </div>
                        <div id="cnt-box4">
                <div id='menu'>
                    <div class='nav-top'>
                        <div class='text'>
                                Towns
                        </div>
                        </div>
                        <div class='bg'>
                        <li><a href="?subtopic=iod"><b>Island Of Destiny</b></a></li>
                        <ul>
                        
                    
                            
                        </ul>

                    
                    </div>
                    
                    <div id="menu_bot"></div>
                </div>
                <center><script id="_wauvz2">var _wau = _wau || []; _wau.push(["classic", "34m04z279pct", "vz2"]);
(function() {var s=document.createElement("script"); s.async=true;
s.src="http://widgets.amung.us/classic.js";
document.getElementsByTagName("head")[0].appendChild(s);
})();</script></center>
                <div id="menu-bottom2">&nbsp;</div>
                    <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"></div>
<div id="dot1" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt=""></div>
<div id="dot2" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>
<div id="dot3" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt="."></div>
<div id="dot4" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>
<div id="dot5" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt="."></div>
<div id="dot6" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>

<script type='text/javascript'>



<!-- Begin
var nDots = 7;
if (document.all&&window.print)
document.body.style.cssText="overflow-x:hidden;overflow-y:scroll"
var Xpos = 0;
var Ypos = 0;


var DELTAT = .01;
var SEGLEN = 10;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 35;
var BOUNCE = 0.75;

var isNetscape = navigator.appName=="Netscape";

var followmouse = true;

var dots = new Array();
init();
function init()
{
    var i = 0;
    for (i = 0; i < nDots; i++) {
        dots[i] = new dot(i);
    }
    
     for (i = 0; i < nDots; i++) {
        dots[i].obj.left = dots[i].X + "px";
        dots[i].obj.top = dots[i].Y + "px";
    }
    
    if (isNetscape) {
        startanimate();
    } else {
        setTimeout("startanimate()", 20);
    }
}

function dot(i) 
{
    this.X = Xpos;
    this.Y = Ypos;
    this.dx = 0;
    this.dy = 0;
    this.obj = eval("document.getElementById('dot" + i + "').style");
}

document.onmousemove = MoveHandler;

function startanimate() {    
    setInterval("animate()", 20);
}

function MoveHandler(e) {

    if (!e) {
        Xpos = window.event.x + document.body.scrollLeft;
        Ypos = window.event.y + document.body.scrollTop;
    } else {
        Xpos = e.pageX;
        Ypos = e.pageY;
    }
}

function vec(X, Y)
{
    this.X = X;
    this.Y = Y;
}

function springForce(i, j, spring)
{
    var dx = (dots[i].X - dots[j].X);
    var dy = (dots[i].Y - dots[j].Y);
    var len = Math.sqrt(dx*dx + dy*dy);
    if (len > SEGLEN) {
        var springF = SPRINGK * (len - SEGLEN);
        spring.X += (dx / len) * springF;
        spring.Y += (dy / len) * springF;
    }
}

function animate() {    
     var start = 0;
    if (followmouse) {
        dots[0].X = Xpos;
        dots[0].Y = Ypos;
        start = 1;
    }
    
    for (i = start ; i < nDots; i++ ) {
        
        var spring = new vec(0, 0);
        if (i > 0) {
            springForce(i-1, i, spring);
        }
        if (i < (nDots - 1)) {
            springForce(i+1, i, spring);
        }
        
         var resist = new vec(-dots[i].dx * RESISTANCE,
            -dots[i].dy * RESISTANCE);
        
         var accel = new vec((spring.X + resist.X)/ MASS,
            (spring.Y + resist.Y)/ MASS + GRAVITY);
        
          dots[i].dx += (DELTAT * accel.X);
        dots[i].dy += (DELTAT * accel.Y);
        
          if (Math.abs(dots[i].dx) < STOPVEL &&
            Math.abs(dots[i].dy) < STOPVEL &&
            Math.abs(accel.X) < STOPACC &&
            Math.abs(accel.Y) < STOPACC) {
            dots[i].dx = 0;
            dots[i].dy = 0;
        }
        
         dots[i].X += dots[i].dx;
        dots[i].Y += dots[i].dy;

         var height, width;
        if (isNetscape) {
            height = window.innerHeight + document.scrollTop;
            width = window.innerWidth + document.scrollLeft;
        } else {    
            height = document.body.clientHeight + document.body.scrollTop;
            width = document.body.clientWidth + document.body.scrollLeft;
        }
        
        if (dots[i].Y >=  height - DOTSIZE - 1) {
            if (dots[i].dy > 0) {
                dots[i].dy = BOUNCE * -dots[i].dy;
            }
            dots[i].Y = height - DOTSIZE - 1;
        }
        if (dots[i].X >= width - DOTSIZE) {
            if (dots[i].dx > 0) {
                dots[i].dx = BOUNCE * -dots[i].dx;
            }
            dots[i].X = width - DOTSIZE - 1;
        }
        if (dots[i].X < 0) {
            if (dots[i].dx < 0) {
                dots[i].dx = BOUNCE * -dots[i].dx;
            }
            dots[i].X = 0;
        }
        
        dots[i].obj.left = dots[i].X + "px";
        dots[i].obj.top =  dots[i].Y + "px";
    }
}
// End -->
</SCRIPT>
            </div>
    </body>
</html>

Here is the Golden key icon code in layout.php

Code:
<div id="icon-account"></div>

In screen.css you can find these lines and it's pretty obvious how to add new icons. :p

Code:
#icon-news, #icon-sss, #icon-account, #icon-community, #icon-library, #icon-forum, #icon-shop, #icon-events, #icon-status, #icon-admin {
    width:32px;
    height:32px;
    float:left;
    margin:-8px 5px 0 2px;
}

#icon-news { background:url("../images/menu/news.gif") no-repeat scroll 0 0 transparent; }
#icon-account { background:url("../images/menu/account.gif") no-repeat scroll 0 0 transparent; }
#icon-community { background:url("../images/menu/community.gif") no-repeat scroll 0 0 transparent; }
#icon-library { background:url("../images/menu/library.gif") no-repeat scroll 0 0 transparent; }
#icon-forum { background:url("../images/menu/icon-forum.gif") no-repeat scroll 0 0 transparent; }
#icon-shop { background:url("../images/menu/shop.gif") no-repeat scroll 0 0 transparent; }
#icon-status { background:url("../images/menu/status.gif") no-repeat scroll 0 0 transparent; }
#icon-events { background:url("../images/menu/events.gif") no-repeat scroll 0 0 transparent; }
#icon-admin { background:url("../images/menu/admin.gif") no-repeat scroll 0 0 transparent; }
#icon-sss { background:url("../images/menu/sss.gif") no-repeat scroll 0 0 transparent; }
 
It's working fine over here, weird that it's not showing properly for you.
 
I can see it's showing the amount of players online sometimes, so it's probably something with your webserver.

chmod 777 -R /var/www
 
Code:
			<div id='menu_top_online'>
						<center><a href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							echo(($SQL->query('SELECT COUNT(id) FROM players WHERE online=1')->fetch())[0]) ?></font></a></center></br>						<a href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>
Try that.
It uses a sql query, but at least it works a lot better.
 
Code:
			<div id='menu_top_online'>
						<center><a rel="nofollow" href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							echo(($SQL->query('SELECT COUNT(id) FROM players WHERE online=1')->fetch())[0]) ?></font></a></center></br>						<a rel="nofollow" href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>
Try that.
It uses a sql query, but at least it works a lot better.

Page goes blank when I try to add it :o.

layout.php when I added your script.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    floatPosition: google.translate.TranslateElement.FloatPosition.BOTTOM_RIGHT
  });
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
        <meta http-equiv='content-language' content='en & pl' />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <META HTTP-EQUIV="Reply-to" CONTENT="Insaneria">
        <meta name="revisit-after" content="1 Days"/>

        <meta name="date" content="2012-01-29">
        <meta http-equiv="Creation-date" content="2012-01-29 T09:40:00Z" />
        <meta http-equiv="pragma" content="no-cache">
        <meta content="global" name="distribution">
        <meta content="ots" name="classification">
        <meta content="general" name="rating">

        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/css/basic.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/css/tooltip.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/css/screen.css" />
        <meta name="page-topic" content="Insaneria">
        
        <meta name='author' content='Insaneria :*' />
        <meta name='description' content='Insaneria' />
        <meta name='keywords' content='Insaneria' />
        
        <link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/server.ico" type="image/x-icon"/>
        <link rel="icon" href="<?php echo $layout_name; ?>/images/server.ico" type="image/x-icon"/> 
        
        <title>Insaneria - Real Map</title>

        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/js2/tooltip.css" />
        <script src='<?php echo $layout_name; ?>/js2/tooltip.js'></script>
        <script type="text/javascript" src="<?php echo $layout_name; ?>/js/jQuery.js"></script>
        <script type="text/javascript" src="<?php echo $layout_name; ?>/js/jQuery2.js"></script>
        
        <script type="text/javascript" src="..<?php echo $layout_name; ?>/js/initialize.js"></script>
        <script type='text/javascript'> var IMAGES=0; IMAGES='<?php echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
        <SCRIPT TYPE="text/javascript">
            <!-- // Framekiller
            setTimeout ("changePage()", 6000);
            function changePage()
            {
             if (parent.frames.length > 2) {
              if (browserTyp == "ie") {
                parent.location=document.location;
              } else {
                self.top.location=document.location;
              }
             }
            }
            // -->
        </SCRIPT>
        <script type='text/javascript'>
            $(document).ready(function(){
            $("img.a").hover(
                function() {
                    $(this).stop().animate({"opacity": "0"}, "slow");
                },
                function() {
                    $(this).stop().animate({"opacity": "1"}, "slow");
                });
            });
        </script>
        <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://legoria.eu/<?php echo $layout_name; ?>/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='http://legoria.eu/';</script>    
    

    </head>
    
    <body>
        <div id='page'>
            <div id='logo'>
                <div class='img'>
                    <div id='menu_top_home'>
                        <a href="?subtopic=latestnews">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/home.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/home_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_acc'>
                        <a href="?subtopic=accountmanagement">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/account.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/account_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_guild'>
                        <a href="?subtopic=guilds">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/guilds.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/guilds_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_shop'>
                        <a href="?subtopic=shopsystem">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/shop.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/shop_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>

                    <div id='menu_top_forum'>
                        <a href="http://insaneria.forumotion.eu/">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/forum.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/forum_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>
                    <div id='menu_top_high'>
                        <a href="?subtopic=highscores">
                            <div class='fadehover'>
                                <img src='<?php echo $layout_name; ?>/images/bar/highscores.png' alt='Legoria.eu :: PvP' class='a' />
                                <img src='<?php echo $layout_name; ?>/images/bar/highscores_on.png' alt='Legoria.eu :: PvP' class='b' />
                            </div>
                        </a>
                    </div>

        <div id='menu_top_online'>
						<center><a href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							echo(($SQL->query('SELECT COUNT(id) FROM players WHERE online=1')->fetch())[0]) ?></font></a></center></br>						<a href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>

            <div id='menu'>
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-news"></div>
                            News
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="?subtopic=latestnews"><b>Latest News</b></a></li>
                        <li><a href="?subtopic=archive"><b>News Archive</b></a></li>

    
                    </ul>
                </div>
                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-account"></div>
                            Account
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        
                        
                        
                                    <?php 
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=adminpanel"><font color="red"><b>! Admin Panel !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=namelock"><font color="red"><b>! Name Lock !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=shopadmin"><font color="red"><b>! Shop Admin !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                                    echo '<li><a href="?subtopic=auctionpanel"><font color="red"><b>! Auction Panel !</b></font></a></li>';
                                    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                            
                                    {
                                        echo '
                                        <li><a href="?subtopic=accountmanagement"><b>My Account</b></a></li>
                                        <li><a href="?subtopic=accountmanagement&action=logout"><b>Logout</b></a></li>
                                        <li><a href="?subtopic=guilds&action=createguild"><font color="yellow"><b>Create New Guild</font></b></a></li>
                                        <li><a href="?subtopic=createaccount"><b>Create Account</b></a></li>
                                        <li><a href="?subtopic=lostaccount"><b>Lost Account</b></a></li>
                                        <li><a href="?subtopic=tibiarules"><b>Server Rules</b></a></li>';
                                    }
                                    else
                                    {
                                        echo '<li><a href="?subtopic=accountmanagement"><b>Login</b></a></li>';
                                        echo '<li><a href="?subtopic=createaccount"><b>Create Account</b></a></li>';
                                        echo '<li><a href="?subtopic=lostaccount"><b>Lost Account</b></a></li>';
                                        echo '<li><a href="?subtopic=tibiarules"><b>Server Rules</b></a></li>';
                                    }
                                    ?>                            
                    </ul>
                </div>
                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-community"></div>
                            Community
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="?subtopic=characters"><b>Characters</b></a></li>
                        <li><a href="?subtopic=whoisonline"><b>Who Is Online?</b></a></li>
                        <li><a href="?subtopic=highscores"><b>Highscores</b></a></li>
                        <li><a href="?subtopic=frag"><b>Top Fragger</b></a></li>
                        <li><a href="?subtopic=killstatistics"><b>Last deaths</b></a></li>
                        <li><a href="?subtopic=guilds"><b>Guilds</b></a></li>
                        <li><a href="?subtopic=wars"><b><font color="red">Guild wars</font></b></a></li>
                        <li><a href="?subtopic=bans"><b><strike>Banishments</strike></b></a></li>
                        <li><a href="?subtopic=team"><font color="green"><b>Support</b></font></a></li>
                        <li><a href="?subtopic=pktgildie"><b><font color="yellow">Points For Guilds</font></b></a></li>
                    </ul>
                </div>
                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-forum"></div>
                            Forum
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="http://insaneria.forumotion.eu/"><font color="white"><b>Forum</b></font></a></li>
                    </ul>
                </div>

                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-library"></div>
                            Library
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                        <li><a href="?subtopic=downloads"><b>Download</b></a></li>
                    </ul>
                </div>

                
                <div class='nav-top'>
                    <div class='text'>
                        <div id="icon-shop"></div>
                            Shop
                    </div>
                </div>
                <div class='bg'>
                    <ul>
                    <li><a href="?subtopic=buychar"><b><font color="red">Buy Characters</font></b></a></li>
                        <li><a href="?subtopic=buypoints"><b><font color="red">Buy Points</font></b></a></li>
                        <li><a href="?subtopic=shopsystem"><b><font color="green">Shop Offer</font></b></a></li>
                    </ul>
                </div>
                <div id="menu_bot"></div>
            </div>
            
            <div id='content'>


                <div id="cnt-right">
                    <div id="content-cnt">
                        <div id="content-bg">
                            <div id="content-top">
                                <div id="content-bot">
                                <?php echo $main_content; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="footer"><p style="color: #FFF;">Copyrights &copy; 2012 by Insaneria. All rights reserved.</p></div>
            </div>
        
            <div id="cnt-box2">
                <div id='menu'>
                    <div class='nav-top'>
                        <div class='text'>
                                    <div id="icon-status"></div>
                                Status
                                 
                        </div>
                    </div>
                
    <div class='bg'>
                        
                                <center>        <?PHP
                                if($config['status']['serverStatus_online'] == 1)
                                    echo '<img src="/images/online.png">';
                                else
                                    echo '<img src="/images/offline.png" width="143px" height="40px">';
                            ?>
                    </center>
                    </div>
                    
                    
                    
                    <div class='nav-top'>
                        <div class='text'>
                            <div id="icon-sss"></div>
                            Systems
                        </div>
                    </div>
                    <div class='bg'>
                        <ul>
                            <li><a href="?subtopic=hunting"><b>Hunting Arenas</b></a></li>
                            <li><a href="?subtopic=bonusaddon"><b>Addon Bonus</b></a></li>
                            <li><a href="?subtopic=lottery"><b>Lottery System</b></a></li>
                            <li><a href="?subtopic=auctions"><b>Auction System</b></a></li>
                        </ul>
                    </div>

                        <div id="cnt-box3">
                <div id='menu'>
                    <div class='nav-top'>
                        <div class='text'>
                                    <div id="icon-events"></div>
                                Games
                        </div>
                        </div>
                        <div class='bg'>
                        <ul>
                            <li><a href="?subtopic=bomberman"><b>Bomberman</b></a></li>
                            <li><a href="?subtopic=casino"><b>Casino</b></a></li>
                             <li><a href="?subtopic=soccer"><b>Football</b></a></li>
                            
                        </ul>
                    
                    </div>
                        <div id="cnt-box4">
                <div id='menu'>
                    <div class='nav-top'>
                        <div class='text'>
						<div id="icon-town"></div>
                                Towns
                        </div>
                        </div>
                        <div class='bg'>
                        <li><a href="?subtopic=iod"><b>Island Of Destiny</b></a></li>
                        <ul>
                        
                    
                            
                        </ul>

                    
                    </div>
                    
                    <div id="menu_bot"></div>
                </div>
                <center><script id="_wauvz2">var _wau = _wau || []; _wau.push(["classic", "34m04z279pct", "vz2"]);
(function() {var s=document.createElement("script"); s.async=true;
s.src="http://widgets.amung.us/classic.js";
document.getElementsByTagName("head")[0].appendChild(s);
})();</script></center>
                <div id="menu-bottom2">&nbsp;</div>
                    <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"></div>
<div id="dot1" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt=""></div>
<div id="dot2" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>
<div id="dot3" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt="."></div>
<div id="dot4" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>
<div id="dot5" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/bs.gif" width="11" height="11" alt="."></div>
<div id="dot6" style="position: absolute; height: 35; width: 35;"><img src="<?PHP echo $layout_name; ?>/images/rs.gif" width="11" height="11" alt="."></div>

<script type='text/javascript'>



<!-- Begin
var nDots = 7;
if (document.all&&window.print)
document.body.style.cssText="overflow-x:hidden;overflow-y:scroll"
var Xpos = 0;
var Ypos = 0;


var DELTAT = .01;
var SEGLEN = 10;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 35;
var BOUNCE = 0.75;

var isNetscape = navigator.appName=="Netscape";

var followmouse = true;

var dots = new Array();
init();
function init()
{
    var i = 0;
    for (i = 0; i < nDots; i++) {
        dots[i] = new dot(i);
    }
    
     for (i = 0; i < nDots; i++) {
        dots[i].obj.left = dots[i].X + "px";
        dots[i].obj.top = dots[i].Y + "px";
    }
    
    if (isNetscape) {
        startanimate();
    } else {
        setTimeout("startanimate()", 20);
    }
}

function dot(i) 
{
    this.X = Xpos;
    this.Y = Ypos;
    this.dx = 0;
    this.dy = 0;
    this.obj = eval("document.getElementById('dot" + i + "').style");
}

document.onmousemove = MoveHandler;

function startanimate() {    
    setInterval("animate()", 20);
}

function MoveHandler(e) {

    if (!e) {
        Xpos = window.event.x + document.body.scrollLeft;
        Ypos = window.event.y + document.body.scrollTop;
    } else {
        Xpos = e.pageX;
        Ypos = e.pageY;
    }
}

function vec(X, Y)
{
    this.X = X;
    this.Y = Y;
}

function springForce(i, j, spring)
{
    var dx = (dots[i].X - dots[j].X);
    var dy = (dots[i].Y - dots[j].Y);
    var len = Math.sqrt(dx*dx + dy*dy);
    if (len > SEGLEN) {
        var springF = SPRINGK * (len - SEGLEN);
        spring.X += (dx / len) * springF;
        spring.Y += (dy / len) * springF;
    }
}

function animate() {    
     var start = 0;
    if (followmouse) {
        dots[0].X = Xpos;
        dots[0].Y = Ypos;
        start = 1;
    }
    
    for (i = start ; i < nDots; i++ ) {
        
        var spring = new vec(0, 0);
        if (i > 0) {
            springForce(i-1, i, spring);
        }
        if (i < (nDots - 1)) {
            springForce(i+1, i, spring);
        }
        
         var resist = new vec(-dots[i].dx * RESISTANCE,
            -dots[i].dy * RESISTANCE);
        
         var accel = new vec((spring.X + resist.X)/ MASS,
            (spring.Y + resist.Y)/ MASS + GRAVITY);
        
          dots[i].dx += (DELTAT * accel.X);
        dots[i].dy += (DELTAT * accel.Y);
        
          if (Math.abs(dots[i].dx) < STOPVEL &&
            Math.abs(dots[i].dy) < STOPVEL &&
            Math.abs(accel.X) < STOPACC &&
            Math.abs(accel.Y) < STOPACC) {
            dots[i].dx = 0;
            dots[i].dy = 0;
        }
        
         dots[i].X += dots[i].dx;
        dots[i].Y += dots[i].dy;

         var height, width;
        if (isNetscape) {
            height = window.innerHeight + document.scrollTop;
            width = window.innerWidth + document.scrollLeft;
        } else {    
            height = document.body.clientHeight + document.body.scrollTop;
            width = document.body.clientWidth + document.body.scrollLeft;
        }
        
        if (dots[i].Y >=  height - DOTSIZE - 1) {
            if (dots[i].dy > 0) {
                dots[i].dy = BOUNCE * -dots[i].dy;
            }
            dots[i].Y = height - DOTSIZE - 1;
        }
        if (dots[i].X >= width - DOTSIZE) {
            if (dots[i].dx > 0) {
                dots[i].dx = BOUNCE * -dots[i].dx;
            }
            dots[i].X = width - DOTSIZE - 1;
        }
        if (dots[i].X < 0) {
            if (dots[i].dx < 0) {
                dots[i].dx = BOUNCE * -dots[i].dx;
            }
            dots[i].X = 0;
        }
        
        dots[i].obj.left = dots[i].X + "px";
        dots[i].obj.top =  dots[i].Y + "px";
    }
}
// End -->
</SCRIPT>
            </div>
    </body>
</html>
 
Forgot a ; :P
Code:
			<div id='menu_top_online'>
						<center><a href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							echo(($SQL->query('SELECT COUNT(id) FROM players WHERE online=1')->fetch())[0]); ?></font></a></center></br>						<a href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>
 
Forgot a ; :P
Code:
			<div id='menu_top_online'>
						<center><a rel="nofollow" href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							echo(($SQL->query('SELECT COUNT(id) FROM players WHERE online=1')->fetch())[0]); ?></font></a></center></br>						<a rel="nofollow" href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>
Still blank page :S
 
I'll never understand php. Sometimes it forces the use of variabeles.
Try this:
Code:
			<div id='menu_top_online'>
						<center><a href="?subtopic=whoisonline"><font size="4" style="color: white; font-variant: upper-caps; text-align: center; text-shadow: black 0px -1px, black -1px 0px, black 1px 1px, black 0px 1px;"><?PHP 
							$trolo = $SQL->query('SELECT COUNT(id) FROM players WHERE online=1')->fetch(); echo $trolo[0]; ?></font></a></center></br>						<a href="?subtopic=createaccount">
							<div class='fadehover'>
								<img src='<? echo $layout_name; ?>/images/bar/register.png' alt='Legoria.eu :: PvP' class='a' />
								<img src='<? echo $layout_name; ?>/images/bar/register_on.png' alt='Legoria.eu :: PvP' class='b' />
							</div>
						</a>
					</div>
				</div>
			</div>

If that fails, add this on the top of index.php to display errors:
Code:
error_reporting(E_ALL);
ini_set('display_errors', '1');
 
Back
Top