mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
109 lines
3.2 KiB
PHP
109 lines
3.2 KiB
PHP
<?php
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
?>
|
|
<!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>
|
|
<?php echo template_place_holder('head_start'); ?>
|
|
<link rel="stylesheet" href="<?php echo $template_path; ?>/style.css" type="text/css" />
|
|
<script type="text/javascript">
|
|
<?php
|
|
$twig->display('menu.js.html.twig', array('categories' => $config['menu_categories']));
|
|
?>
|
|
</script>
|
|
<script type="text/javascript" src="tools/basic.js"></script>
|
|
<script type="text/javascript">
|
|
<?php require 'javascript.php'; ?>
|
|
</script>
|
|
<?php echo template_place_holder('head_end'); ?>
|
|
</head>
|
|
|
|
<body onload="initMenu();">
|
|
<?php echo template_place_holder('body_start'); ?>
|
|
<div id="top"></div>
|
|
<div id="page">
|
|
<!-- Keep all on center of browser -->
|
|
|
|
<!-- Header Section -->
|
|
<div id="header"></div>
|
|
<!-- End -->
|
|
|
|
<!-- Menu Section -->
|
|
<div id="tabs">
|
|
<?php
|
|
foreach($config['menu_categories'] as $id => $cat) {
|
|
if($id != MENU_CATEGORY_SHOP || $config['gifts_system']) { ?>
|
|
<span id="<?php echo $cat['id']; ?>" onclick="menuSwitch('<?php echo $cat['id']; ?>');"><?php echo $cat['name']; ?></span>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<div id="mainsubmenu">
|
|
<?php
|
|
foreach($menus as $category => $menu) {
|
|
if(!isset($menus[$category])) {
|
|
continue;
|
|
}
|
|
|
|
echo '<div id="' . $config['menu_categories'][$category]['id'] . '-submenu">';
|
|
|
|
$size = count($menus[$category]);
|
|
$i = 0;
|
|
|
|
foreach($menus[$category] as $link) {
|
|
echo '<a href="' . $link['link_full'] . '" ' . $link['target_blank'] . ' ' . $link['style_color'] . '>' . $link['name'] . '</a>';
|
|
|
|
if(++$i != $size) {
|
|
echo '<span class="separator"></span>';
|
|
}
|
|
}
|
|
|
|
echo '</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
<!-- End -->
|
|
|
|
<!-- Content Section -->
|
|
<div id="content">
|
|
<div id="margins">
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
<tr>
|
|
<td><a href="<?php echo getLink('news'); ?>"><?php echo $config['lua']['serverName']; ?></a> » <?php echo $title; ?></td>
|
|
<td>
|
|
<?php
|
|
if($status['online'])
|
|
echo '
|
|
<span style="color: green"><b>Server Online</b></span> »
|
|
Players Online: ' . $status['players'] . ' / ' . $status['playersMax'] . ' »
|
|
Monsters: ' . $status['monsters'] . ' » Uptime: ' . (isset($status['uptimeReadable']) ? $status['uptimeReadable'] : 'Unknown') . '';
|
|
else
|
|
echo '<span style="color: red"><b>Server Offline</b></span>';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr noshade="noshade" size="1" />
|
|
<div class="Content"><div id="ContentHelper">
|
|
<?php echo tickers() . template_place_holder('center_top') . $content; ?>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div id="content-bot"></div>
|
|
<div id="copyrights">
|
|
<p><?php echo template_footer(); ?></p>
|
|
<?php
|
|
if($config['template_allow_change'])
|
|
echo '<span style="color: white">Template:</span><br/>' . template_form();
|
|
?>
|
|
</div>
|
|
<!-- End -->
|
|
|
|
<!-- End -->
|
|
</div>
|
|
<?php echo template_place_holder('body_end'); ?>
|
|
</body>
|
|
</html>
|