mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-11 07:14:29 +02:00
* some unimportant changes
This commit is contained in:
parent
eb8993e746
commit
56a0c6e6bf
@ -13,7 +13,9 @@ $logged = false;
|
||||
$logged_flags = 0;
|
||||
|
||||
$action = isset($_REQUEST['action']) ? strtolower($_REQUEST['action']) : '';
|
||||
if($action == 'logout' && !isset($_REQUEST['account_login']))
|
||||
define('ACTION', $action);
|
||||
|
||||
if(ACTION == 'logout' && !isset($_REQUEST['account_login']))
|
||||
{
|
||||
unsetSession('account');
|
||||
unsetSession('password');
|
||||
|
@ -2,7 +2,6 @@
|
||||
$config['darkborder'] = "#d0cdb4";
|
||||
$config['lightborder'] = "#e5e3d7";
|
||||
$config['vdarkborder'] = "#afab89";
|
||||
$config['news_title_color'] = "white";
|
||||
$config['menu_categories'] = array(
|
||||
MENU_CATEGORY_NEWS => array('id' => 'news', 'name' => 'Latest News'),
|
||||
MENU_CATEGORY_ACCOUNT => array('id' => 'account', 'name' => 'Account'),
|
||||
|
@ -2,7 +2,6 @@
|
||||
$config['darkborder'] = "#D4C0A1";
|
||||
$config['lightborder'] = "#F1E0C6";
|
||||
$config['vdarkborder'] = "#505050";
|
||||
$config['news_title_color'] = "white";
|
||||
$config['logo_monster'] = "Elder Beholder";
|
||||
// separated by comma
|
||||
// sequence is important! they will be shown in same order that you add them to the list
|
||||
|
@ -315,7 +315,11 @@ if(isset($config['boxes']))
|
||||
<?php
|
||||
$menus = get_template_menus();
|
||||
|
||||
foreach($config['menu_categories'] as $id => $cat) { ?>
|
||||
foreach($config['menu_categories'] as $id => $cat) {
|
||||
if(!isset($menus[$id])) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<div id='<?php echo $cat['id']; ?>' class='menuitem'>
|
||||
<span onClick="MenuItemAction('<?php echo $cat['id']; ?>')">
|
||||
<div class='MenuButton' style='background-image:url(<?php echo $template_path; ?>/images/menu/button-background.gif);'>
|
||||
@ -333,7 +337,6 @@ foreach($config['menu_categories'] as $id => $cat) { ?>
|
||||
</span>
|
||||
<div id='<?php echo $cat['id']; ?>_Submenu' class='Submenu'>
|
||||
<?php
|
||||
if(isset($menus[$id])) {
|
||||
foreach($menus[$id] as $category => $menu) {
|
||||
$is_external = strpos(trim($menu['link']), 'http') === 0;
|
||||
?>
|
||||
@ -347,7 +350,6 @@ foreach($config['menu_categories'] as $id => $cat) { ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user