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