• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    Gesior 1.0 problema con servestatus.

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1Resuelto Gesior 1.0 problema con servestatus. Mar Nov 22, 2016 11:11 pm

    leonardgra

    leonardgra
    Nuevo Miembro
    Nuevo Miembro
    Buenas, tengo el gesior 1.0 pero me di cuenta que el server status siempre esta online inclusive con el servidor cerrado, cuando lo abro sigue estando online pero siempre con 0 players, alguien podria ayudarme a resolverlo?

    [Tienes que estar registrado y conectado para ver este vínculo]

    2 participantes

    2Resuelto teste Mar Nov 22, 2016 11:21 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    agrega esto en tu layout,php puedes colocarlo en la parte del medio pero que no este fuera de la viñetas html

    Código:
                <?PHP    
                $orderby = 'name';
    if(isset($_REQUEST['order']))
    {
       if($_REQUEST['order']== 'level')
          $orderby = 'level';
       elseif($_REQUEST['order'] == 'vocation')
          $orderby = 'vocation';
    }
    $players_online_data = $SQL->query('SELECT ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('flag') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('vocation') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('level') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('skull') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looktype') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookaddons') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookhead') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookbody') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looklegs') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookfeet') . ' FROM ' . $SQL->tableName('accounts') . ', ' . $SQL->tableName('players') . ', ' . $SQL->tableName('players_online') . ' WHERE ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players_online') . '.' . $SQL->fieldName('player_id') . ' AND ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players') . '.' . $SQL->fieldName('account_id') . ' ORDER BY ' . $SQL->fieldName($orderby))->fetchAll();
    $number_of_players_online = 0;
    $vocations_online_count = array(0,0,0,0,0); // change it if you got more then 5 vocations
    $players_rows = '';
    foreach($players_online_data as $player)
    {
       $vocations_online_count[$player['vocation']] += 1;
       $bgcolor = (($number_of_players_online++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
       $skull = '';
       if ($player['skull'] == 4)
          $skull = "<img style='border: 0;' src='./images/skulls/redskull.gif'/>";
       else if ($player['skull'] == 5)
          $skull = "<img style='border: 0;' src='./images/skulls/blackskull.gif'/>";

       $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=5%><img src="' . $config['site']['outfit_images_url'] . '?id=' . $player['looktype'] . '&addons=' . $player['lookaddons'] . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'] . '" alt="" /></td><TD WIDTH=65%><A HREF="?subtopic=characters&name='.urlencode($player['name']).'">'.htmlspecialchars($player['name']).$skull.'<img src="' . $config['site']['flag_images_url'] . $player['flag'] . $config['site']['flag_images_extension'] . '" title="Country: ' . $player['flag'] . '" alt="' . $player['flag'] . '" /></A></TD><TD WIDTH=10%>'.$player['level'].'</TD><TD WIDTH=20%>'.htmlspecialchars($vocation_name[$player['vocation']]).'</TD></TR>';
    }   
               
               
               
                ?>
               





    aqui tienes

    Código:
                <?php
                if(!defined('INITIALIZED'))
                  exit;
                ?>
                <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="Gram" />
                  <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" />
                  <!--  regular browsers -->
                  <link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">
                  <!-- For iPad with high-resolution Retina display running iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="152x152" href="<?php echo $layout_name; ?>/images/apple-touch-icon-152x152.png">
                  <!-- For iPad with high-resolution Retina display running iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="144x144" href="<?php echo $layout_name; ?>/images/apple-touch-icon-144x144.png">
                  <!-- For iPhone with high-resolution Retina display running iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="120x120" href="<?php echo $layout_name; ?>/images/apple-touch-icon-120x120.png">
                  <!-- For iPhone with high-resolution Retina display running iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $layout_name; ?>/images/apple-touch-icon-114x114.png">
                  <!-- For the iPad mini and the first- and second-generation iPad on iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="76x76" href="<?php echo $layout_name; ?>/images/apple-touch-icon-76x76.png">
                  <!-- For the iPad mini and the first- and second-generation iPad on iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $layout_name; ?>/images/apple-touch-icon-72x72.png">
                  <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
                  <link rel="apple-touch-icon" href="<?php echo $layout_name; ?>/images/apple-touch-icon.png">
                  <!-- Fallback for older devices: -->
                  <link rel="apple-touch-icon-precomposed" href="<?php echo $layout_name; ?>/images/apple-touch-icon-precomposed.png">
                  <?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='<?PHP echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
                  <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script>
                  <script type="text/javascript" src="<?PHP echo $layout_name; ?>/newsticker.js"></script>
                              <?PHP    
                $orderby = 'name';
    if(isset($_REQUEST['order']))
    {
       if($_REQUEST['order']== 'level')
          $orderby = 'level';
       elseif($_REQUEST['order'] == 'vocation')
          $orderby = 'vocation';
    }
    $players_online_data = $SQL->query('SELECT ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('flag') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('vocation') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('level') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('skull') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looktype') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookaddons') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookhead') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookbody') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looklegs') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookfeet') . ' FROM ' . $SQL->tableName('accounts') . ', ' . $SQL->tableName('players') . ', ' . $SQL->tableName('players_online') . ' WHERE ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players_online') . '.' . $SQL->fieldName('player_id') . ' AND ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players') . '.' . $SQL->fieldName('account_id') . ' ORDER BY ' . $SQL->fieldName($orderby))->fetchAll();
    $number_of_players_online = 0;
    $vocations_online_count = array(0,0,0,0,0); // change it if you got more then 5 vocations
    $players_rows = '';
    foreach($players_online_data as $player)
    {
       $vocations_online_count[$player['vocation']] += 1;
       $bgcolor = (($number_of_players_online++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
       $skull = '';
       if ($player['skull'] == 4)
          $skull = "<img style='border: 0;' src='./images/skulls/redskull.gif'/>";
       else if ($player['skull'] == 5)
          $skull = "<img style='border: 0;' src='./images/skulls/blackskull.gif'/>";

       $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=5%><img src="' . $config['site']['outfit_images_url'] . '?id=' . $player['looktype'] . '&addons=' . $player['lookaddons'] . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'] . '" alt="" /></td><TD WIDTH=65%><A HREF="?subtopic=characters&name='.urlencode($player['name']).'">'.htmlspecialchars($player['name']).$skull.'<img src="' . $config['site']['flag_images_url'] . $player['flag'] . $config['site']['flag_images_extension'] . '" title="Country: ' . $player['flag'] . '" alt="' . $player['flag'] . '" /></A></TD><TD WIDTH=10%>'.$player['level'].'</TD><TD WIDTH=20%>'.htmlspecialchars($vocation_name[$player['vocation']]).'</TD></TR>';
    }   
               
               
               
                ?>
                </head>
                <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">
                <a name="top"></a>
                  <div id="ArtworkHelper" style="background-image:url(<?PHP echo $layout_name; ?>/images/header/background-artwork.jpg);" >
                    <div style="width:1200px" id="Bodycontainer">
                      <div id="ContentRow">
                        <div id="MenuColumn">
                          <div id="LeftArtwork">
                            <img id="TibiaLogoArtworkTop" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-top.gif" alt="logoartwork" onClick="window.location = '?subtopic=latestnews';">
                            <img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = '?subtopic=latestnews';" 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='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>
                <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>
                <?PHP
                if($config['site']['download_page'])
                echo "<a href='?subtopic=download'>
                  <div id='submenu_download' 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_download' 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='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=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=fraggers'>
                  <div id='submenu_fraggers' 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_fraggers' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
                    <div class='SubmenuitemLabel'>Top Fraggers</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=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=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>
                </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='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'>
                <?PHP
                if($config['site']['serverinfo_page'])
                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>

                <?PHP
                if($config['site']['shop_system'])
                {
                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>
                <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'><div style=\"color: yellow;\">Buy Points</div></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'><div style=\"color: green;\">Shop Offer</div></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_show_history' 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_show_history' 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>";
                if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                echo "<a href='?subtopic=shopadmin'>
                  <div id='submenu_shopadmin' 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_shopadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
                    <div class='SubmenuitemLabel'><font color=red>! Shop Admin !</font></div>
                    <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
                  </div>
                </a>";
                echo "</div>";
                }
                ?>
                <div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>
                </div>
                  <script type='text/javascript'>InitializePage();</script></div>
                        <div id="ContentColumn">
                          <div class="Content">
                            <div id="ContentHelper">

                            <?php echo $newsTicker; ?>

                            <?php echo $featuredArticle; ?>

                    <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>
                    <div class="Border_2">
                      <div class="Border_3">
                        <div class="BoxContent" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/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;
                ?>
                            Perzonalizado y editado por Gram. Hecho por CipSoft GmbH.<br/>Esta pagina se ha visto <?PHP echo $page_views; ?> veces. Tiempo de carga: <?PHP echo round($time, 4); ?> segundos, queries: <?PHP echo $SQL->queriesCount; ?>
                          </div>
                        </div>
                        <div id="ThemeboxesColumn">
                          <div id="RightArtwork">
                            <img id="Monster" src="<?PHP echo $layout_name; ?>/images/Medusa.gif" alt="Monster of the Week">
                            <img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/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'] == 0)
                                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(<?PHP echo $layout_name; ?>/images/themeboxes/newcomer/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>
                    <div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
                  </div>

                        </div>
                      </div>
                    </div>
                    </div>
                  </div>
                </body>
                </html>



    Última edición por [Admin] God Maya el Mar Nov 22, 2016 11:50 pm, editado 1 vez

    2 participantes
    http://www.tibiaface.com

    3Resuelto Re: Gesior 1.0 problema con servestatus. Mar Nov 22, 2016 11:33 pm

    leonardgra

    leonardgra
    Nuevo Miembro
    Nuevo Miembro
    Podrias modificarlo tu?

    Código:
    <?php
    if(!defined('INITIALIZED'))
       exit;
    ?>
    <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="Gram" />
      <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" />
      <!--  regular browsers -->
      <link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">
      <!-- For iPad with high-resolution Retina display running iOS = 7: -->
      <link rel="apple-touch-icon" sizes="152x152" href="<?php echo $layout_name; ?>/images/apple-touch-icon-152x152.png">
      <!-- For iPad with high-resolution Retina display running iOS = 6: -->
      <link rel="apple-touch-icon" sizes="144x144" href="<?php echo $layout_name; ?>/images/apple-touch-icon-144x144.png">
      <!-- For iPhone with high-resolution Retina display running iOS = 7: -->
      <link rel="apple-touch-icon" sizes="120x120" href="<?php echo $layout_name; ?>/images/apple-touch-icon-120x120.png">
      <!-- For iPhone with high-resolution Retina display running iOS = 6: -->
      <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $layout_name; ?>/images/apple-touch-icon-114x114.png">
      <!-- For the iPad mini and the first- and second-generation iPad on iOS = 7: -->
      <link rel="apple-touch-icon" sizes="76x76" href="<?php echo $layout_name; ?>/images/apple-touch-icon-76x76.png">
      <!-- For the iPad mini and the first- and second-generation iPad on iOS = 6: -->
      <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $layout_name; ?>/images/apple-touch-icon-72x72.png">
      <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
      <link rel="apple-touch-icon" href="<?php echo $layout_name; ?>/images/apple-touch-icon.png">
      <!-- Fallback for older devices: -->
      <link rel="apple-touch-icon-precomposed" href="<?php echo $layout_name; ?>/images/apple-touch-icon-precomposed.png">
      <?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='<?PHP echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
      <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script>
      <script type="text/javascript" src="<?PHP echo $layout_name; ?>/newsticker.js"></script>
    </head>
    <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">
     <a name="top"></a>
      <div id="ArtworkHelper" style="background-image:url(<?PHP echo $layout_name; ?>/images/header/background-artwork.jpg);" >
        <div style="width:1200px" id="Bodycontainer">
          <div id="ContentRow">
            <div id="MenuColumn">
              <div id="LeftArtwork">
                <img id="TibiaLogoArtworkTop" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-top.gif" alt="logoartwork" onClick="window.location = '?subtopic=latestnews';">
                <img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = '?subtopic=latestnews';" 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='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>
    <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>
    <?PHP
    if($config['site']['download_page'])
    echo "<a href='?subtopic=download'>
      <div id='submenu_download' 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_download' 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='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=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=fraggers'>
      <div id='submenu_fraggers' 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_fraggers' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Top Fraggers</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=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=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>
    </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='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'>
    <?PHP
    if($config['site']['serverinfo_page'])
    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>

    <?PHP
    if($config['site']['shop_system'])
    {
    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>
    <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'><div style=\"color: yellow;\">Buy Points</div></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'><div style=\"color: green;\">Shop Offer</div></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_show_history' 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_show_history' 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>";
    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
    echo "<a href='?subtopic=shopadmin'>
      <div id='submenu_shopadmin' 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_shopadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><font color=red>! Shop Admin !</font></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    echo "</div>";
    }
    ?>
    <div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>
    </div>
      <script type='text/javascript'>InitializePage();</script></div>
            <div id="ContentColumn">
              <div class="Content">
                <div id="ContentHelper">

                <?php echo $newsTicker; ?>

                <?php echo $featuredArticle; ?>

        <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>
        <div class="Border_2">
          <div class="Border_3">
            <div class="BoxContent" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/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;
    ?>
                Perzonalizado y editado por Gram. Hecho por CipSoft GmbH.<br/>Esta pagina se ha visto <?PHP echo $page_views; ?> veces. Tiempo de carga: <?PHP echo round($time, 4); ?> segundos, queries: <?PHP echo $SQL->queriesCount; ?>
              </div>
            </div>
            <div id="ThemeboxesColumn">
              <div id="RightArtwork">
                <img id="Monster" src="<?PHP echo $layout_name; ?>/images/Medusa.gif" alt="Monster of the Week">
                <img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/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'] == 0)
                    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(<?PHP echo $layout_name; ?>/images/themeboxes/newcomer/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>
        <div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
      </div>

            </div>
          </div>
         </div>
        </div>
      </div>
    </body>
    </html>

    2 participantes

    4Resuelto Re: Gesior 1.0 problema con servestatus. Mar Nov 22, 2016 11:50 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    aqui tienes

    Código:
                <?php
                if(!defined('INITIALIZED'))
                  exit;
                ?>
                <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="Gram" />
                  <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" />
                  <!--  regular browsers -->
                  <link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">
                  <!-- For iPad with high-resolution Retina display running iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="152x152" href="<?php echo $layout_name; ?>/images/apple-touch-icon-152x152.png">
                  <!-- For iPad with high-resolution Retina display running iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="144x144" href="<?php echo $layout_name; ?>/images/apple-touch-icon-144x144.png">
                  <!-- For iPhone with high-resolution Retina display running iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="120x120" href="<?php echo $layout_name; ?>/images/apple-touch-icon-120x120.png">
                  <!-- For iPhone with high-resolution Retina display running iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $layout_name; ?>/images/apple-touch-icon-114x114.png">
                  <!-- For the iPad mini and the first- and second-generation iPad on iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="76x76" href="<?php echo $layout_name; ?>/images/apple-touch-icon-76x76.png">
                  <!-- For the iPad mini and the first- and second-generation iPad on iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $layout_name; ?>/images/apple-touch-icon-72x72.png">
                  <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
                  <link rel="apple-touch-icon" href="<?php echo $layout_name; ?>/images/apple-touch-icon.png">
                  <!-- Fallback for older devices: -->
                  <link rel="apple-touch-icon-precomposed" href="<?php echo $layout_name; ?>/images/apple-touch-icon-precomposed.png">
                  <?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='<?PHP echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
                  <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script>
                  <script type="text/javascript" src="<?PHP echo $layout_name; ?>/newsticker.js"></script>
                              <?PHP    
                $orderby = 'name';
    if(isset($_REQUEST['order']))
    {
       if($_REQUEST['order']== 'level')
          $orderby = 'level';
       elseif($_REQUEST['order'] == 'vocation')
          $orderby = 'vocation';
    }
    $players_online_data = $SQL->query('SELECT ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('flag') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('vocation') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('level') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('skull') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looktype') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookaddons') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookhead') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookbody') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looklegs') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookfeet') . ' FROM ' . $SQL->tableName('accounts') . ', ' . $SQL->tableName('players') . ', ' . $SQL->tableName('players_online') . ' WHERE ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players_online') . '.' . $SQL->fieldName('player_id') . ' AND ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players') . '.' . $SQL->fieldName('account_id') . ' ORDER BY ' . $SQL->fieldName($orderby))->fetchAll();
    $number_of_players_online = 0;
    $vocations_online_count = array(0,0,0,0,0); // change it if you got more then 5 vocations
    $players_rows = '';
    foreach($players_online_data as $player)
    {
       $vocations_online_count[$player['vocation']] += 1;
       $bgcolor = (($number_of_players_online++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
       $skull = '';
       if ($player['skull'] == 4)
          $skull = "<img style='border: 0;' src='./images/skulls/redskull.gif'/>";
       else if ($player['skull'] == 5)
          $skull = "<img style='border: 0;' src='./images/skulls/blackskull.gif'/>";

       $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=5%><img src="' . $config['site']['outfit_images_url'] . '?id=' . $player['looktype'] . '&addons=' . $player['lookaddons'] . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'] . '" alt="" /></td><TD WIDTH=65%><A HREF="?subtopic=characters&name='.urlencode($player['name']).'">'.htmlspecialchars($player['name']).$skull.'<img src="' . $config['site']['flag_images_url'] . $player['flag'] . $config['site']['flag_images_extension'] . '" title="Country: ' . $player['flag'] . '" alt="' . $player['flag'] . '" /></A></TD><TD WIDTH=10%>'.$player['level'].'</TD><TD WIDTH=20%>'.htmlspecialchars($vocation_name[$player['vocation']]).'</TD></TR>';
    }   
               
               
               
                ?>
                </head>
                <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">
                <a name="top"></a>
                  <div id="ArtworkHelper" style="background-image:url(<?PHP echo $layout_name; ?>/images/header/background-artwork.jpg);" >
                    <div style="width:1200px" id="Bodycontainer">
                      <div id="ContentRow">
                        <div id="MenuColumn">
                          <div id="LeftArtwork">
                            <img id="TibiaLogoArtworkTop" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-top.gif" alt="logoartwork" onClick="window.location = '?subtopic=latestnews';">
                            <img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = '?subtopic=latestnews';" 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='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>
                <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>
                <?PHP
                if($config['site']['download_page'])
                echo "<a href='?subtopic=download'>
                  <div id='submenu_download' 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_download' 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='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=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=fraggers'>
                  <div id='submenu_fraggers' 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_fraggers' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
                    <div class='SubmenuitemLabel'>Top Fraggers</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=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=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>
                </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='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'>
                <?PHP
                if($config['site']['serverinfo_page'])
                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>

                <?PHP
                if($config['site']['shop_system'])
                {
                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>
                <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'><div style=\"color: yellow;\">Buy Points</div></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'><div style=\"color: green;\">Shop Offer</div></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_show_history' 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_show_history' 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>";
                if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                echo "<a href='?subtopic=shopadmin'>
                  <div id='submenu_shopadmin' 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_shopadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
                    <div class='SubmenuitemLabel'><font color=red>! Shop Admin !</font></div>
                    <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
                  </div>
                </a>";
                echo "</div>";
                }
                ?>
                <div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>
                </div>
                  <script type='text/javascript'>InitializePage();</script></div>
                        <div id="ContentColumn">
                          <div class="Content">
                            <div id="ContentHelper">

                            <?php echo $newsTicker; ?>

                            <?php echo $featuredArticle; ?>

                    <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>
                    <div class="Border_2">
                      <div class="Border_3">
                        <div class="BoxContent" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/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;
                ?>
                            Perzonalizado y editado por Gram. Hecho por CipSoft GmbH.<br/>Esta pagina se ha visto <?PHP echo $page_views; ?> veces. Tiempo de carga: <?PHP echo round($time, 4); ?> segundos, queries: <?PHP echo $SQL->queriesCount; ?>
                          </div>
                        </div>
                        <div id="ThemeboxesColumn">
                          <div id="RightArtwork">
                            <img id="Monster" src="<?PHP echo $layout_name; ?>/images/Medusa.gif" alt="Monster of the Week">
                            <img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/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'] == 0)
                                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(<?PHP echo $layout_name; ?>/images/themeboxes/newcomer/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>
                    <div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
                  </div>

                        </div>
                      </div>
                    </div>
                    </div>
                  </div>
                </body>
                </html>



    Gesior 1.0 problema con servestatus. YNU5B25
    2 participantes
    http://www.tibiaface.com

    5Resuelto Re: Gesior 1.0 problema con servestatus. Mar Nov 22, 2016 11:59 pm

    leonardgra

    leonardgra
    Nuevo Miembro
    Nuevo Miembro
    Sigue sin funcionar bro.

    2 participantes

    6Resuelto Re: Gesior 1.0 problema con servestatus. Miér Nov 23, 2016 12:01 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    aqui esta este no fallara

    Código:
                <?php
                if(!defined('INITIALIZED'))
                  exit;
                ?>
                <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="Gram" />
                  <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" />
                  <!--  regular browsers -->
                  <link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">
                  <!-- For iPad with high-resolution Retina display running iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="152x152" href="<?php echo $layout_name; ?>/images/apple-touch-icon-152x152.png">
                  <!-- For iPad with high-resolution Retina display running iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="144x144" href="<?php echo $layout_name; ?>/images/apple-touch-icon-144x144.png">
                  <!-- For iPhone with high-resolution Retina display running iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="120x120" href="<?php echo $layout_name; ?>/images/apple-touch-icon-120x120.png">
                  <!-- For iPhone with high-resolution Retina display running iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $layout_name; ?>/images/apple-touch-icon-114x114.png">
                  <!-- For the iPad mini and the first- and second-generation iPad on iOS = 7: -->
                  <link rel="apple-touch-icon" sizes="76x76" href="<?php echo $layout_name; ?>/images/apple-touch-icon-76x76.png">
                  <!-- For the iPad mini and the first- and second-generation iPad on iOS = 6: -->
                  <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $layout_name; ?>/images/apple-touch-icon-72x72.png">
                  <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
                  <link rel="apple-touch-icon" href="<?php echo $layout_name; ?>/images/apple-touch-icon.png">
                  <!-- Fallback for older devices: -->
                  <link rel="apple-touch-icon-precomposed" href="<?php echo $layout_name; ?>/images/apple-touch-icon-precomposed.png">
                  <?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='<?PHP echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
                  <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script>
                  <script type="text/javascript" src="<?PHP echo $layout_name; ?>/newsticker.js"></script>
                              <?PHP    
                $orderby = 'name';
    if(isset($_REQUEST['order']))
    {
       if($_REQUEST['order']== 'level')
          $orderby = 'level';
       elseif($_REQUEST['order'] == 'vocation')
          $orderby = 'vocation';
    }
    $players_online_data = $SQL->query('SELECT ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('flag') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('vocation') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('level') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('skull') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looktype') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookaddons') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookhead') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookbody') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looklegs') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookfeet') . ' FROM ' . $SQL->tableName('accounts') . ', ' . $SQL->tableName('players') . ', ' . $SQL->tableName('players_online') . ' WHERE ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players_online') . '.' . $SQL->fieldName('player_id') . ' AND ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players') . '.' . $SQL->fieldName('account_id') . ' ORDER BY ' . $SQL->fieldName($orderby))->fetchAll();
    $number_of_players_online = 0;
    $vocations_online_count = array(0,0,0,0,0); // change it if you got more then 5 vocations
    $players_rows = '';
    foreach($players_online_data as $player)
    {
       $vocations_online_count[$player['vocation']] += 1;
       $bgcolor = (($number_of_players_online++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
       $skull = '';
       if ($player['skull'] == 4)
          $skull = "<img style='border: 0;' src='./images/skulls/redskull.gif'/>";
       else if ($player['skull'] == 5)
          $skull = "<img style='border: 0;' src='./images/skulls/blackskull.gif'/>";

       $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=5%><img src="' . $config['site']['outfit_images_url'] . '?id=' . $player['looktype'] . '&addons=' . $player['lookaddons'] . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'] . '" alt="" /></td><TD WIDTH=65%><A HREF="?subtopic=characters&name='.urlencode($player['name']).'">'.htmlspecialchars($player['name']).$skull.'<img src="' . $config['site']['flag_images_url'] . $player['flag'] . $config['site']['flag_images_extension'] . '" title="Country: ' . $player['flag'] . '" alt="' . $player['flag'] . '" /></A></TD><TD WIDTH=10%>'.$player['level'].'</TD><TD WIDTH=20%>'.htmlspecialchars($vocation_name[$player['vocation']]).'</TD></TR>';
    }   
               
               
               
                ?>
                </head>
                <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">
                <a name="top"></a>
                  <div id="ArtworkHelper" style="background-image:url(<?PHP echo $layout_name; ?>/images/header/background-artwork.jpg);" >
                    <div style="width:1200px" id="Bodycontainer">
                      <div id="ContentRow">
                        <div id="MenuColumn">
                          <div id="LeftArtwork">
                            <img id="TibiaLogoArtworkTop" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-top.gif" alt="logoartwork" onClick="window.location = '?subtopic=latestnews';">
                            <img id="LogoLink" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-string.gif" onClick="window.location = '?subtopic=latestnews';" 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='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>
                <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>
                <?PHP
                if($config['site']['download_page'])
                echo "<a href='?subtopic=download'>
                  <div id='submenu_download' 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_download' 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='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=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=fraggers'>
                  <div id='submenu_fraggers' 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_fraggers' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
                    <div class='SubmenuitemLabel'>Top Fraggers</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=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=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>
                </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='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'>
                <?PHP
                if($config['site']['serverinfo_page'])
                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>

                <?PHP
                if($config['site']['shop_system'])
                {
                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>
                <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'><div style=\"color: yellow;\">Buy Points</div></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'><div style=\"color: green;\">Shop Offer</div></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_show_history' 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_show_history' 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>";
                if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
                echo "<a href='?subtopic=shopadmin'>
                  <div id='submenu_shopadmin' 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_shopadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
                    <div class='SubmenuitemLabel'><font color=red>! Shop Admin !</font></div>
                    <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
                  </div>
                </a>";
                echo "</div>";
                }
                ?>
                <div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>
                </div>
                  <script type='text/javascript'>InitializePage();</script></div>
                        <div id="ContentColumn">
                          <div class="Content">
                            <div id="ContentHelper">

                            <?php echo $newsTicker; ?>

                            <?php echo $featuredArticle; ?>

                    <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>
                    <div class="Border_2">
                      <div class="Border_3">
                        <div class="BoxContent" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/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;
                ?>
                            Perzonalizado y editado por Gram. Hecho por CipSoft GmbH.<br/>Esta pagina se ha visto <?PHP echo $page_views; ?> veces. Tiempo de carga: <?PHP echo round($time, 4); ?> segundos, queries: <?PHP echo $SQL->queriesCount; ?>
                          </div>
                        </div>
                        <div id="ThemeboxesColumn">
                          <div id="RightArtwork">
                            <img id="Monster" src="<?PHP echo $layout_name; ?>/images/Medusa.gif" alt="Monster of the Week">
                            <img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/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'] >= 0)
                    echo ''.$number_of_players_online.'<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(<?PHP echo $layout_name; ?>/images/themeboxes/newcomer/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>
                    <div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
                  </div>

                        </div>
                      </div>
                    </div>
                    </div>
                  </div>
                </body>
                </html>



    Gesior 1.0 problema con servestatus. YNU5B25
    2 participantes
    http://www.tibiaface.com

    7Resuelto Re: Gesior 1.0 problema con servestatus. Miér Nov 23, 2016 12:04 am

    leonardgra

    leonardgra
    Nuevo Miembro
    Nuevo Miembro
    Eres el maestro funciono perfecto gracias bro.

    2 participantes

    8Resuelto Re: Gesior 1.0 problema con servestatus. Sáb Ago 12, 2017 6:43 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Bumb solución a status



    Gesior 1.0 problema con servestatus. YNU5B25
    2 participantes
    http://www.tibiaface.com

    Contenido patrocinado


    2 participantes

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).