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

New Layout Acc Maker Problem

Stempel2

New Member
Joined
Aug 11, 2013
Messages
35
Reaction score
1
Hello i got problem when i changed new layout on my acc maker, then there isnt working table with "Server online/offline"
and also few other sites like "Top fragers, Banismhent, Creatures, Spells, Konkursy and Top Guild"

uefl.png


Anyone can help me with make "server online" at website and what should i add in mysql to get working for example "banishments"?
 
Code:
<?php
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);

// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);

define('INITIALIZED', true);

// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
	define('ONLY_PAGE', false);
	
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');

// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');

// DATABASE
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
	Website::getDBHandle()->setPrintQueries(true);
// DATABASE END

// LOGIN
if(!ONLY_PAGE)
	include_once('./system/load.login.php');
// LOGIN END

// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END

// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END

// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
	include_once('./system/load.layout.php');
else
	echo $main_content;
// LAYOUT END
ots my index.php
 
thats my layout.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $title; ?></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/basic.css" />
        <?PHP echo $layout_header; ?>
        <script type="text/javascript" src="<?php echo $layout_name; ?>/newsticker.js"></script>
	</head>
	<body>


		<div id="vt_page">

			<div id="vt_header"></div>
			<div id="vt_container">
				<div id="vt_menu">
					<div id="vt_news_menu">
						<div class="header">News</div>
						<ul>
					<li><a href="index.php?subtopic=latestnews">Latest News</a></li>
                            	<li><a href="index.php?subtopic=archive">News Archive</a></li>
						</ul>
					</div>
					<div id="vt_account_menu">
						<div class="header">Account</div>
						<ul>
							<li><a href="index.php?subtopic=accountmanagement"><font color="#D2691E">Manage Account</font></a></li>
                            <li><a href="index.php?subtopic=createaccount"><font color="#DC143C">Create Account</font></a></li>
                            <li><a href="index.php?subtopic=lostaccount">Lost Account</a></li>
                            <?php if($group_id_of_acc_logged >= $config['site']['access_admin_panel']): ?>
                            <li><a href="index.php?subtopic=adminpanel">Admin Panel</a></li>
                            <?php endif; ?>
                            <?php if($group_id_of_acc_logged > 0): ?>
                            <li><a href="index.php?subtopic=namelock">Namelocks</a></li>
                            <li><a href="index.php?subtopic=mail">Mass Mail Sender</a></li>
                            <?php endif; ?>
						</ul>
					</div>
                    <div id="vt_community_menu">
                    	<div class="header">Community</div>
                        <ul>
                        	<li><a href="index.php?subtopic=characters">Characters</a></li>
                            <li><a href="index.php?subtopic=whoisonline">Who Is Online?</a></li>
                            <li><a href="index.php?subtopic=highscores">Highscores</a></li>
                            <li><a href="index.php?subtopic=killstatistics"><font color="#D2B48C">Last Kills</font></a></li>
                            <li><a href="index.php?subtopic=frags"><font color="green">Top Fragers</font></a></li>
                            <li><a href="index.php?subtopic=bans"><span style="text-decoration: line-through;">Banishments</span></a></li>
                            <li><a href="index.php?subtopic=guilds">Guilds</a></li>
                            <li><a href="index.php?subtopic=wars"><font color="red">Guild Wars</font></a></li>
                            <li><a href="index.php?subtopic=team">Support List</a></li>
                        </ul>
                    </div>
                    <div id="vt_library_menu">
                    	<div class="header">Library</div>
                        <ul>
                        	<li><a href="index.php?subtopic=creatures">Creatures</a></li>
                            <li><a href="index.php?subtopic=spells">Spells</a></li>
                            <li><a href="index.php?subtopic=serverinfo">Server Info</a></li>
                            <li><a href="index.php?subtopic=records"><font color="blue">Records</font></a></li>
                            <li><a href="index.php?subtopic=konkurs"><font color="red"><blink>Konkursy</blink></font></a></li>
                            <li><a href="index.php?subtopic=topguilds"><font color="#6495ED"><blink>Top Guilds</blink></font></a></li>
                        </ul>
                    </div>
                    <?php if($config['site']['shop_system'] == 1): ?>
                    <div id="vt_shop_menu">
                    	<div class="header">Shops</div>
                        <ul>
                        	<li><a href="index.php?subtopic=buypoints"><font color="aqua">Buy Points</font></a></li>
                            <li><a href="index.php?subtopic=shopsystem"><font color="orange"><blink>Shop Offer</blink></font></a></li>
                            <?php if($logged): ?>
                            <li><a href="index.php?subtopic=shopsystem&amp;action=show_history">Trans. History</a></li>
                        	<?php endif; ?>
							<?php if($group_id_of_acc_logged >= $config['site']['access_admin_panel']): ?>
                            <li><a href="index.php?subtopic=shopadmin">Shop Admin</a></li>
                            <?php endif; ?>
                        </ul>
                    </div>
                    <?php endif; ?>

				</div>
				<div id="vt_content">
					<?php echo $main_content; ?>

				</div>
				<div id="vt_panel">
					<div class="top">
						<div class="bot">
							<div id="vt_panel_buttons">
							<a href="index.php?subtopic=whoisonline" class="button">	
 <? if($config['status']['serverStatus_online'] == 1)
   echo $config['status']['serverStatus_players'].'<br />Players Online';
  else
   echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
  ?></FONT>									<span></span>
							<a href="index.php?subtopic=createaccount" class="button">	
                                                      Create Account
									<span>Here You Can Get Yout Account</span>
								</a>
							<a href="index.php?subtopic=shopsystem" class="button">
									SMS Shop
									<span>If you need something special</span>
								</a>

							</div>
							<div id="vt_panel_module">
								<div class="header">Top Server Characters</div>
								<?php
									$TopPlayers = $SQL->query("SELECT `name`, `experience`, `level` FROM `players` ORDER BY `experience` DESC LIMIT 5")->fetchAll();
									$Counter = 1;
								?>
                                <table cellspacing="0" cellpadding="5" border="0" width="100%">
									<?php foreach($TopPlayers as $Player): ?>
                                    <tr>
										<td width="10%"><?php echo $Counter; $Counter++; ?>.</td>
										<td><a href="index.php?subtopic=characters&amp;name=<?php echo urlencode($Player['name']); ?>"><?php echo $Player['name']; ?></a></td>
										<td align="right" width="25%"><?php echo $Player['level']; ?> level</td>
									</tr>
                                    <?php endforeach; ?> 

								</table>
							</div>
						</div>
					</div>
				</div>
			</div>



			<div id="vt_footer">
				<div class="column first">
					<a href=""><img src="<?php echo $layout_name; ?>/images/authornote.png" alt="Designed by Vean" /></a>
				</div>
				<div class="column second">
					<p>Copyrights &copy; 2013 by Stemplera. All Rights Reserved.</p>
				</div>
				<div class="column third">
					<a href=""><img src="<?php echo $layout_name; ?>/images/html_valid.png" alt="HTML Valid" /></a>
					<a href=""><img src="<?php echo $layout_name; ?>/images/css_valid.png" alt="CSS Valid" /></a>
				</div>
			</div>
		</div>
	</body>
</html>
 
Back
Top