Ejemplo n.º 1
0
// Load Permissions and aviable sites.
include ( 'core/default_components.php' ) ;

// Start of context menu. ( Only make an array for later output )
$GLOBALS['context_menu'][] = array( 'title' => $lang['mainpage'], 'link' =>
	'index.php' ) ;

if ( $user['id'] <= 0 )
{
	$GLOBALS['context_menu'][] = array( 'title' => $lang['register'], 'link' =>
		mw_url( 'account', 'register' ) ) ;
}
$GLOBALS['context_menu'][] = array( 'title' => 'Forum', 'link' =>
	'index.php?n=forum' ) ;
$GLOBALS['context_menu'][] = array( 'title' => $lang['players_online'], 'link' =>
	mw_url( 'server', 'playersonline' ) ) ;
if ( ( isset( $user['g_is_admin'] ) || isset( $user['g_is_supadmin'] ) ) && ( $user['g_is_admin'] ==
	1 || $user['g_is_supadmin'] == 1 ) )
{
	$allowed_ext[] = 'admin' ;
	$GLOBALS['context_menu'][] = array( 'title' => '------------------', 'link' =>
		'#' ) ;
	$GLOBALS['context_menu'][] = array( 'title' => $lang['admin_panel'], 'link' =>
		'index.php?n=admin' ) ;
}

// for mod_rewrite query_string fix //
global $_GETVARS ;

$req_vars = parse_url( $__SERVER['REQUEST_URI'] ) ;
if ( isset( $req_vars['query'] ) )
Ejemplo n.º 2
0
	<tr>
		<td>
			<?php 
    write_subheader($lang['char_rename']);
    ?>
			<table width = "550" style = "border-width: 1px; border-style: dotted; border-color: #928058;">
				<tr>
					<td>
						<table width='545' style="border-width: 1px; border-style: solid; border-color: black; background-image: url('<?php 
    echo $Template['path'];
    ?>
/images/light3.jpg');">
						<tr>
							<td>
								<form method='POST' action='<?php 
    echo mw_url('account', 'rename');
    ?>
'>
								<table border='0' cellspacing='0' cellpadding='4' width='540'>
								<?php 
    if (isset($_POST['newname'])) {
        if ($_POST['id'] != 0) {
            changeName();
        } else {
            output_message('error', $lang['account_has_no_characters']);
        }
    }
    if ($Config->get('module_charrename') == 0) {
        output_message('error', 'Module disabled by admin');
        echo "<br />";
    } else {
Ejemplo n.º 3
0
<?php

$com_content['server'] = array('index' => array('', 'server', 'index.php?n=server', '', 0), 'commands' => array('', 'Availaible Commands(InGame)', mw_url('server', 'commands'), '8-menuSupport', 0), 'gmonline' => array('', 'gm_online', mw_url('server', 'gmonline'), '8-menuSupport', 0), 'chars' => array('', 'Characters on the server', mw_url('server', 'chars'), '4-menuInteractive', 0), 'realmstatus' => array('', 'realms_status', mw_url('server', 'realmstatus'), '4-menuInteractive', 0), 'honor' => array('', 'honor', mw_url('server', 'honor'), '4-menuInteractive', 0), 'playersonline' => array('', 'players_online', mw_url('server', 'playersonline'), '4-menuInteractive', 0), 'bugtracker' => array('', 'bugs', mw_url('server', 'bugtracker'), '4-menuInteractive', 0), 'playermap' => array('', 'Player Map', mw_url('server', 'playermap'), '4-menuInteractive', 0), 'faq' => array('', 'faq', mw_url('server', 'faq'), '8-menuSupport', 0), 'gms' => array('', 'gmlist', mw_url('server', 'gms'), '8-menuSupport', 0), 'statistic' => array('', 'statistic', mw_url('server', 'statistic'), '4-menuInteractive', 0), 'howtoplay' => array('', 'howtoplay', mw_url('server', 'howtoplay'), '3-menuGameGuide', 0), 'ah' => array('', 'ah', mw_url('server', 'ah'), '4-menuGameGuide', 0), 'info' => array('', 'info', mw_url('server', 'info'), '4-menuGameGuide', 0), 'armorsets' => array('', 'armorsets', mw_url('server', 'armorsets'), '4-menuGameGuide', 0), 'rules' => array('', 'rules', mw_url('server', 'rules'), '4-menuGameGuide', 0));
Ejemplo n.º 4
0
}
?>
 
			</div>
		</div> <!-- .pad -->		
	</div> <!-- #header -->
	
	<!-- Start #nav -->
	<div id="nav" class="clearfix">		
		<ul>
			<li>
				<center><a href="?p=admin"><?php 
echo $lang['admin_home'];
?>
</a> | <a href="<?php 
echo mw_url('home');
?>
">
					<?php 
echo $lang['site_index'];
?>
</a></center>
			</li>
		</ul>		
	</div> <!-- #nav -->
	
	<!-- Start #body -->
	<div id="body">	
	<!-- Start #sidebar -->
		<div id="sidebar">			
			<div class="content">				
Ejemplo n.º 5
0
                echo $lang['Characters'];
                ?>
:&nbsp;<b><?php 
                echo $server['characters'];
                ?>
</b>
								</div>
							</li>
					<?php 
            }
            if ($server['moreinfo']) {
                ?>
							<li>
								<div>
									<a href="<?php 
                echo mw_url('server', 'info');
                ?>
"><?php 
                echo $lang['more_info'];
                ?>
</a>
								</div>
							</li>

					<?php 
            }
            ?>
						<li>
							<div>&nbsp;</div>
						</li>
					</ul>
Ejemplo n.º 6
0
 }
 unset($mangosALL);
 // Free up memory.
 $server = array();
 $server['name'] = $data['name'];
 if ((int) $MW->getConfig->components->server_information->realm_status) {
     $checkaddress = (int) $MW->getConfig->generic->use_local_ip_port_test ? '127.0.0.1' : $data['address'];
     $server['realm_status'] = check_port_status($checkaddress, $data['port']) === true ? true : false;
 }
 $changerealmtoparam = array("changerealm_to" => $realmnow_arr['id']);
 if ((int) $MW->getConfig->components->server_information->online) {
     $server['playersonline'] = $CHDB_EXTRA->selectCell("SELECT count(1) FROM `characters` WHERE online=1");
     $server['onlineurl'] = mw_url('server', 'playersonline', $changerealmtoparam);
 }
 if ((int) $MW->getConfig->components->left_section->Playermap) {
     $server['playermapurl'] = mw_url('server', 'playermap', $changerealmtoparam);
 }
 if ((int) $MW->getConfig->components->server_information->server_ip) {
     $server['server_ip'] = $data['address'];
 }
 if ((int) $MW->getConfig->components->server_information->type) {
     $server['type'] = $realm_type_def[$data['icon']];
 }
 if ((int) $MW->getConfig->components->server_information->language) {
     $server['language'] = $realm_timezone_def[$data['timezone']];
 }
 if ((int) $MW->getConfig->components->server_information->population) {
     $server['population'] = $CHDB_EXTRA->selectCell("SELECT count(1) FROM `characters` WHERE online=1");
 }
 if ((int) $MW->getConfig->components->server_information->accounts) {
     $server['accounts'] = $DB->selectCell("SELECT count(*) FROM `account`");
Ejemplo n.º 7
0
<?php

$mainnav_links = array('1-menuNews' => array(0 => array(0 => 'forum_news', 1 => 'index.php', 2 => ''), 1 => array(0 => 'forum_archive', 1 => 'index.php?n=forum&sub=viewforum&fid=1', 2 => '')), '2-menuAccount' => array(0 => array(0 => 'account_manage', 1 => mw_url('account', 'manage'), 2 => 'g_view_profile'), 1 => array(0 => 'personal_messages', 1 => mw_url('account', 'pms'), 2 => 'g_view_profile'), 2 => array(0 => 'account_create', 1 => mw_url('account', 'register'), 2 => '!g_view_profile'), 3 => array(0 => 'retrieve_pass', 1 => mw_url('account', 'restore'), 2 => '!g_view_profile'), 4 => array(0 => 'account_activate', 1 => mw_url('account', 'activate'), 2 => '!g_view_profile'), 5 => array(0 => 'charcreate', 1 => mw_url('account', 'charcreate'), 2 => ''), 6 => array(0 => 'char_manage', 1 => mw_url('account', 'chartools'), 2 => ''), 7 => array(0 => 'userlist', 1 => mw_url('account', 'userlist'), 2 => ''), 8 => array(0 => 'rules', 1 => mw_url('server', 'rules'), 2 => ''), 9 => array(0 => 'admin_panel', 1 => 'index.php?n=admin', 2 => 'g_is_admin')), '3-menuGameGuide' => array(0 => array(0 => 'howtoplay', 1 => mw_url('server', 'howtoplay'), 2 => ''), 1 => array(0 => 'flashmap', 1 => './components/tools/maps/flashmap/', 2 => ''), 2 => array(0 => 'armorsets', 1 => 'index.php?n=server&sub=armorsets', 2 => ''), 3 => array(0 => 'bc', 1 => 'http://www.worldofwarcraft.com/burningcrusade/', 2 => ''), 4 => array(0 => 'wrath', 1 => 'http://www.worldofwarcraft.com/wrath/', 2 => ''), 5 => array(0 => 'cata', 1 => 'http://www.worldofwarcraft.com/cataclysm/', 2 => '')), '4-menuInteractive' => array(0 => array(0 => 'realms_status', 1 => mw_url('server', 'realmstatus'), 2 => ''), 1 => array(0 => 'honor', 1 => mw_url('server', 'honor'), 2 => ''), 2 => array(0 => 'players_online', 1 => mw_url('server', 'playersonline'), 2 => ''), 3 => array(0 => 'chars', 1 => mw_url('server', 'chars'), 2 => ''), 4 => array(0 => 'playermap', 1 => mw_url('server', 'playermap'), 2 => ''), 5 => array(0 => 'statistic', 1 => mw_url('server', 'statistic'), 2 => ''), 6 => array(0 => 'module_ah', 1 => mw_url('server', 'ah'), 2 => ''), 7 => array(0 => 'armory', 1 => './armory/', 2 => '')), '5-menuMedia' => array(0 => array(0 => 'wallp', 1 => mw_url('media', 'wallp'), 2 => ''), 1 => array(0 => 'screen', 1 => mw_url('media', 'screen'), 2 => ''), 2 => array(0 => 'UScreen', 1 => mw_url('media', 'addgalscreen'), 2 => 'g_view_profile'), 3 => array(0 => 'UWallp', 1 => mw_url('media', 'addgalwallp'), 2 => 'g_view_profile')), '6-menuForums' => array(0 => array(0 => 'forum_index', 1 => 'index.php?n=forum', 2 => '')), '7-menuCommunity' => array(0 => array(0 => 'teamspeak', 1 => mw_url('community', 'teamspeak'), 2 => ''), 1 => array(0 => 'donate', 1 => mw_url('community', 'donate'), 2 => ''), array(0 => 'vote', 1 => mw_url('community', 'vote'), 2 => ''), array(0 => 'chat', 1 => mw_url('community', 'chat'), 2 => '')), '8-menuSupport' => array(0 => array(0 => 'commands', 1 => mw_url('server', 'commands'), 2 => ''), 1 => array(0 => 'bugs', 1 => mw_url('server', 'bugtracker'), 2 => ''), 2 => array(0 => 'faq', 1 => mw_url('server', 'faq'), 2 => ''), 3 => array(0 => 'gmlist', 1 => mw_url('server', 'gms'), 2 => ''), 4 => array(0 => 'gm_online', 1 => mw_url('server', 'gmonline'), 2 => '')));
$allowed_ext = array(0 => 'account', 1 => 'admin', 2 => 'ajax', 3 => 'forum', 4 => 'frontpage', 5 => 'html', 6 => 'server', 7 => 'whoisonline', 8 => 'community', 9 => 'media', 10 => 'armory');
// Main Forum Navigation Link
if ((int) $MW->getConfig->generic_values->forum->frame_forum || (int) $MW->getConfig->generic_values->forum->externalforum) {
    $mainnav_links['6-menuForums'][0][1] = (string) $MW->getConfig->generic_values->forum->forum_external_link;
}
//Bugs Tracker Navigation Link
//$mainnav_links['8-menuSupport'][1][1] = mw_url('forum', 'viewforum', array('fid'=>(int)$MW->getConfig->generic_values->forum->bugs_forum_id));
//if ((int)$MW->getConfig->generic_values->forum->frame_bugstracker || (int)$MW->getConfig->generic_values->forum->externalbugstracker == 0)
//{
//}
//else
//{
//$mainnav_links['8-menuSupport'][1][1] = (string)$MW->getConfig->generic_values->forum->bugstracker_external_link;
//}
/*Media*/
if ((int) $MW->getConfig->components->left_section->Screenshots == 0) {
    unset($mainnav_links['5-menuMedia'][1]);
}
if ((int) $MW->getConfig->components->left_section->Wallpapers == 0) {
    unset($mainnav_links['5-menuMedia'][0]);
}
if ((int) $MW->getConfig->components->left_section->Upload_Screenshot == 0) {
    unset($mainnav_links['5-menuMedia'][2]);
}
if ((int) $MW->getConfig->components->left_section->Upload_Wallpaper == 0) {
    unset($mainnav_links['5-menuMedia'][3]);
}
/*Community*/
Ejemplo n.º 8
0
<style type="text/css">
	a.server { border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; font-weight: bold; }
    td.serverStatus1 { font-size: 0.8em; border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; }
    td.serverStatus2 { font-size: 0.8em; border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; background-color: #C3AD89; }
    td.rankingHeader { color: #C7C7C7; font-size: 10pt; font-family: arial,helvetica,sans-serif; font-weight: bold; background-color: #2E2D2B; 
	border-style: solid; border-width: 1px; border-color: #5D5D5D #5D5D5D #1E1D1C #1E1D1C; padding: 3px;}
</style>
<br />
<?php 
builddiv_start(1, 'Shop');
echo $lang['shop_desc'] . "<br /><br />";
if ($shop_items != FALSE) {
    foreach ($shop_items as $package) {
        write_metalborder_header();
        echo "\r\n\t\t\t<form action='" . mw_url('shop', 'checkout') . "' method='POST'>\r\n\t\t\t<input type='hidden' name='action' value='step2'>\r\n\t\t\t<input type='hidden' name='id' value='" . $package['id'] . "'>\r\n\t\t\t<table cellpadding='3' cellspacing='0' width='100%'>\r\n\t\t\t\t<tbody>\r\n\t\t\t\t\t<tr> \r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' colspan='3' nowrap='nowrap'>\r\n\t\t\t\t\t\t\tShop Package #" . $package['id'] . " :: <font color='green'>" . $package['desc'] . "</font>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' nowrap='nowrap'>Rewards</td>\r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' nowrap='nowrap'>Cost</td>\r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' nowrap='nowrap'>Action&nbsp;</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td width='60%' class='serverStatus1' style='text-align: center;'><font size='-1'>";
        if ($package['item_number'] != 0) {
            $items = explode(',', $package['item_number']);
            foreach ($items as $pack) {
                $item_name = $WDB->selectCell("SELECT `name` FROM `item_template` WHERE entry='" . $pack . "'");
                echo "<a href='http://www.wowhead.com/?item=" . $pack . "' target='_blank'>" . $item_name . "</a><br />";
            }
        }
        if ($package['itemset'] != 0) {
            echo "<a href='http://www.wowhead.com/?itemset=" . $package['itemset'] . "' target='_blank'>ItemSet # " . $package['itemset'] . "</a><br />";
        }
        if ($package['gold'] != 0) {
            echo "<font color='darkgreen'><b>Gold</b>: </font>";
            print_gold($package['gold']);
        }
        echo "\t\t</font>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class='serverStatus1' style='text-align: center; font-size: 12px;'>\r\n\t\t\t\t\t\t\t<font color='darkred'><u>" . $package['wp_cost'] . "</u></font> Web Points<br />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class='serverStatus1' style='text-align: center;'><font size='-1'>\r\n\t\t\t\t\t\t\t<input type='submit' value='Select'>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</tbody>\r\n\t\t\t</table>\r\n\t\t\t</form>";
        write_metalborder_footer();
Ejemplo n.º 9
0
<dd><?php echo $lang['si_exprate_explore']; ?> = <?php echo $server['rates']['Rate.XP.Explore'];?> x Blizzlike</dd>
</dl>
</div></li>
            
<li><div>
<dl>
<dt><?php echo $lang['si_restrate']; ?>:&nbsp;</dt>
<dd><?php echo $lang['si_restrate_city']; ?> = <?php echo $server['rates']['Rate.Rest.Offline.InTavernOrCity'];?> x Blizzlike</dd>
<dd><?php echo $lang['si_restrate_ingame']; ?> = <?php echo $server['rates']['Rate.Rest.InGame'];?> x Blizzlike</dd>
<dd><?php echo $lang['si_restrate_wild']; ?> = <?php echo $server['rates']['Rate.Rest.Offline.InWilderness'];?> x Blizzlike</dd>
</dl>
</div></li>

<?php endif; if ($server['moreinfo']): ?>

<li><div>
<a href="<?php echo mw_url('server', 'info'); ?>"><?php echo $lang['more_info']; ?></a>
</div></li>

<?php endif; ?>

<li><div>
&nbsp;
</div></li>

</ul></div>
<span class="gfxhook"></span>
<hr>
<?php endforeach; ?>
<?php endif; ?>
Ejemplo n.º 10
0
                <div id="loginbox">
                  <div class="loginboxleft"></div>
                  <div class="loginboxbg">
                    <form action="<?php echo mw_url('account', 'login'); ?>" method="post">
<?php
$accountid = $user['id'];
$resulttest = mysql_query("SELECT count(*) FROM " . $MW->getDbInfo['db_name'] . ".pms WHERE owner_id=$accountid AND showed=0");
if($user['id']>0):
    $userpm_num = $auth->check_pm();
?>
                      <input type="hidden" name="action" value="logout"/>
                      <?php echo empty($user['character_name']) ? $user['username'] : $user['character_name'];?>
<?php if ($user["g_use_pm"]): ?>
                      | <a href="<?php echo mw_url('account', 'pms'); ?>"<?php echo($userpm_num>0?' style="color:red;"':'');?>><?php echo$userpm_num;?> <?php echo $lang['newpms'];?></a>
<?php endif; ?>
                      <a href="<?php echo mw_url('account', 'manage'); ?>"><img src="<?php echo $currtmp; ?>/images/button-profile.gif" alt="Profile"/></a> 
                      <input type="image" src="<?php echo $currtmp; ?>/images/button-logout.gif" value="Logout"/>
<?php else: ?>
                      <input type="hidden" name="action" value="login"/>
                      Login: <input name="login" size="14" type="text"/>
                      Password: <input name="pass" size="14" type="password"/>
                      <input type="image" src="<?php echo $currtmp; ?>/images/button-login.gif" value="Login"/>
<?php endif; ?>
                    </form>
                  </div>
                  <div class="loginboxright"></div>
                </div>

                <div onmouseover="myshow('countrydropdown');" id="droppf" onmouseout="myhide('countrydropdown');">
                  <div style="overflow: hidden; visibility: inherit; display: block; cursor: default; background-color: transparent; background-image: url(<?php echo $currtmp; ?>/images/countrymenu-bg.gif); height: 19px; padding-left: 9px; padding-top: 2px;"><a class="menufillertop"><?php lang('choose_lang'); ?></a><img src="<?php echo $currtmp; ?>/images/pixel.gif" alt=""/></div>
                  <div id="countrydropdown" style="height: auto; visibility:hidden; display: none;">
Ejemplo n.º 11
0
        } elseif ($Login == 2) {
            output_message('validation', $lang['some_params_empty']);
        } elseif ($Login == 3) {
            output_message('validation', $lang['wrong_password']);
        } elseif ($Login == 4) {
            output_message('error', $lang['account_banned']);
        } elseif ($Login == 5) {
            output_message('warning', $lang['account_not_activated']);
        }
    }
    ?>
    <table align="center" width="100%">
		<tr>
			<td align="center" width="100%">
				<form method="post" action="<?php 
    echo mw_url('account', 'login');
    ?>
">
				<input type="hidden" name="action" value="login">
					<div style="border:background:none;margin:1px;padding:6px 9px 6px 9px;text-align:center;width:70%;">
						<b><?php 
    echo $lang['username'];
    ?>
</b> <input type="text" size="26" style="font-size:11px;" name="login">
					</div>
					<div style="border:background:none;margin:1px;padding:6px 9px 6px 9px;text-align:center;width:70%;">
						<b><?php 
    echo $lang['password'];
    ?>
</b> <input type="password" size="26" style="font-size:11px;" name="pass">
					</div>
Ejemplo n.º 12
0
							<div id="loginbox">
								<div class="loginboxleft"></div>
								<div class="loginboxbg">
									<form action="<?php 
echo mw_url('account', 'login');
?>
" method="post">
									<?php 
$accountid = $user['id'];
if ($user['id'] > 0) {
    ?>
										<?php 
    echo $user['username'] . " | ";
    ?>
										<a href="<?php 
    echo mw_url('account');
    ?>
"> <?php 
    echo $user['web_points'];
    ?>
 <?php 
    echo $lang['web_points'];
    ?>
</a>
										<input type="image" src="<?php 
    echo $Template['path'];
    ?>
/images/buttons/button-profile.gif" name="action" value="profile"/>
										<input type="image" src="<?php 
    echo $Template['path'];
    ?>
Ejemplo n.º 13
0
<br />
<?php 
builddiv_start(1, 'Shop Checkout');
?>
<table width = "550" align='center'>
	<tr>
		<td>
			<?php 
write_subheader($lang['shop_review']);
?>
			<form action='<?php 
echo mw_url('shop', 'checkout');
?>
' method='POST'>
			<input type='hidden' name='action' value='finalize'>
			<input type='hidden' name='id' value='<?php 
echo $package['id'];
?>
'>
				<table width = "550" style = "border-width: 1px; border-style: dotted; border-color: #928058;">
					<tr>
						<td>
							<table width='545' style="border-width: 1px; border-style: solid; border-color: black; background-image: url('<?php 
echo $Template['path'];
?>
/images/light3.jpg');">
							<tr>
								<td>
									<?php 
// We put this here so that when the flush kicks in, it displays this message
// If we put this just before the flush, it doesnt flush for some reason
Ejemplo n.º 14
0
 //DBinfo column:  char_host;char_port;char_username;char_password;charDBname;world_host;world_port;world_username;world_pass;worldDBname
 $mangosALL = array('db_host' => $realm_data_explode['0'], 'db_port' => $realm_data_explode['1'], 'db_username' => $realm_data_explode['2'], 'db_password' => $realm_data_explode['3'], 'db_name' => $realm_data_explode['4']);
 unset($realm_data_explode);
 $CHDB_EXTRA = new Database($mangosALL['db_host'], $mangosALL['db_port'], $mangosALL['db_username'], $mangosALL['db_password'], $mangosALL['db_name']);
 unset($mangosALL);
 // Free up memory.
 $server = array();
 $server['name'] = $data['name'];
 if ((int) $Config->get('fp_realmstatus') == 1) {
     $checkaddress = $data['address'];
     $server['realm_status'] = check_port_status($checkaddress, $data['port'], 0.5) === true ? true : false;
 }
 $changerealmtoparam = array("changerealm_to" => $realmnow_arr['id']);
 if ($Config->get('fp_playersonline') == 1) {
     $server['playersonline'] = $CHDB_EXTRA->count("SELECT count(*) FROM `characters` WHERE online=1");
     $server['onlineurl'] = mw_url('server', 'playersonline', $changerealmtoparam);
 }
 if ($Config->get('fp_serverip') == 1) {
     $server['server_ip'] = $data['address'];
 }
 if ($Config->get('fp_servertype') == 1) {
     $server['type'] = $realm_type_def[$data['icon']];
 }
 if ($Config->get('fp_serverlang') == 1) {
     $server['language'] = $realm_timezone_def[$data['timezone']];
 }
 if ($Config->get('fp_serverpop') == 1) {
     $server['population'] = $CHDB_EXTRA->count("SELECT count(*) FROM `characters` WHERE online=1");
 }
 if ($Config->get('fp_serveract') == 1) {
     $server['accounts'] = $DB->count("SELECT count(*) FROM `account`");
Ejemplo n.º 15
0
    var position = <?php echo$postnum;?>;
    var localId = postId<?php echo$postnum;?>;
    var cookieState = getcookie("news"+localId);
    var defaultOpen = "<?php echo($postnum > (int)$MW->getConfig->generic_values->news->defaultOpen?'0':'1');?>";
    if ((cookieState == 1) || (position==1 && cookieState!='0') || (defaultOpen == 1 && cookieState!='0')) {
    } else {
        document.getElementById("news"+localId).className = "news-collapse"+"<?php echo$hl;?>";       
    }
    --></script>
<?php }
unset($alltopics, $hl, $postnum);
?>                                                                
</div>
<div class="news-archive-link" <?php if ($banner==1) echo 'style="position: relative;"';?>>
    <div class="news-archive-button">
      <a href="<?php echo mw_url('forum', 'viewforum', array('fid'=>(int)$MW->getConfig->generic_values->forum->news_forum_id)); ?>"><span><?php echo $lang['news_archives'];?></span></a>
    </div>
</div>
<div>
<div id="container-community">
	<div class="phatlootbox-top">
		<h2 class="community">
			<span class="hide">General</span>
		</h2>
			<span class="phatlootbox-visual comm"></span>
	</div>
	<div class="phatlootbox-wrapper">
		<div style="background: url(<?php echo $currtmp; ?>/images/phatlootbox-top-parchment.jpg) repeat-y top right; height: 7px; width: 456px; margin-left: 6px; font-size: 1px;"></div>
			<div class="community-cnt"><font size="-1"><?php echo $lang['comm_header1'];?></font>
				<br /><br /><font size="-1"><center>
				<a href="http://thottbot.com/"><img src="<?php echo $currtmp; ?>/images/thottbot.png" width="100" height="75" longdesc="http://thottbot.com/" /></a><a href="http://www.wowhead.com/"><img src="<?php echo $currtmp; ?>/images/wowhead.png" width="120" height="78" /></a></a><a href="http://www.wowwiki.com/Portal:Main"><img src="<?php echo $currtmp; ?>/images/wowwiki.png" width="152" height="35" /></a><a href="http://www.wowhead.com/"></a></center>
	<tr>
		<td>
			<?php 
    write_subheader($lang['char_recustomize']);
    ?>
			<table width = "550" style = "border-width: 1px; border-style: dotted; border-color: #928058;">
				<tr>
					<td>
						<table width='545' style="border-width: 1px; border-style: solid; border-color: black; background-image: url('<?php 
    echo $Template['path'];
    ?>
/images/light3.jpg');">
						<tr>
							<td>
								<form method='POST' action='<?php 
    echo mw_url('account', 'customize');
    ?>
'>
								<table border='0' cellspacing='0' cellpadding='4' width='540'>
								<?php 
    if (isset($_POST['id'])) {
        if ($_POST['id'] != 0) {
            reCustomize();
        } else {
            output_message('error', $lang['account_has_no_characters']);
        }
    }
    if ($Config->get('module_charcustomize') == 0) {
        output_message('error', $lang['disabled']);
        echo "<br />";
    } else {