mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Fix menus for ?subtopic=
This commit is contained in:
@@ -27,26 +27,18 @@ if(isset($config['boxes']))
|
|||||||
var loginStatus="<?php echo ($logged ? 'true' : 'false'); ?>";
|
var loginStatus="<?php echo ($logged ? 'true' : 'false'); ?>";
|
||||||
<?php
|
<?php
|
||||||
if(PAGE !== 'news') {
|
if(PAGE !== 'news') {
|
||||||
if(isset($_REQUEST['subtopic'])) {
|
$tmp = str_replace('/', '_', isset($_REQUEST['subtopic']) ? escapeHtml($_REQUEST['subtopic']) : PAGE);
|
||||||
$tmp = escapeHtml($_REQUEST['subtopic']);
|
$exp = explode('/', PAGE);
|
||||||
if($tmp === 'accountmanagement') {
|
if(PAGE !== 'account/create' && PAGE !== 'account/lost' && isset($exp[1])) {
|
||||||
$tmp = 'accountmanage';
|
if ($exp[0] === 'account' && $exp[1] === 'lost') {
|
||||||
|
$tmp = 'account_lost';
|
||||||
|
} elseif ($exp[0] === 'account') {
|
||||||
|
$tmp = 'account_manage';
|
||||||
|
} else if ($exp[0] === 'news' && $exp[1] === 'archive') {
|
||||||
|
$tmp = 'news_archive';
|
||||||
}
|
}
|
||||||
}
|
else if (in_array($exp[0], ['characters', 'highscores', 'guilds', 'forum'])) {
|
||||||
else {
|
$tmp = $exp[0];
|
||||||
$tmp = str_replace('/', '_', PAGE);
|
|
||||||
$exp = explode('/', PAGE);
|
|
||||||
if(PAGE !== 'account/create' && PAGE !== 'account/lost' && isset($exp[1])) {
|
|
||||||
if ($exp[0] === 'account' && $exp[1] === 'lost') {
|
|
||||||
$tmp = 'account_lost';
|
|
||||||
} elseif ($exp[0] === 'account') {
|
|
||||||
$tmp = 'account_manage';
|
|
||||||
} else if ($exp[0] === 'news' && $exp[1] === 'archive') {
|
|
||||||
$tmp = 'news_archive';
|
|
||||||
}
|
|
||||||
else if (in_array($exp[0], ['characters', 'highscores', 'guilds', 'forum'])) {
|
|
||||||
$tmp = $exp[0];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user