Revision 1528
Added by Dietmar about 13 years ago
index.php | ||
---|---|---|
79 | 79 |
|
80 | 80 |
<!-- main navigation menu --> |
81 | 81 |
<div class="menu"> |
82 |
<?php show_menu(1, 0, -1, true, |
|
83 |
'<li><span [class]>[a][menu_title][/a]</span>', '</li>', |
|
84 |
'<ul>', '</ul>', 'class="menu_default"', 'class="menu_current"', 0 |
|
85 |
); |
|
86 |
?> |
|
87 |
|
|
88 |
<?php |
|
82 |
<?php show_menu2(SM2_ALLMENU, SM2_ROOT, SM2_ROOT+PAGE_LEVEL_LIMIT, SM2_ALL|SM2_NUMCLASS ); ?> |
|
83 |
<?php |
|
89 | 84 |
// CODE FOR WEBSITE BAKER FRONTEND LOGIN |
90 |
if (FRONTEND_LOGIN == 'enabled' && VISIBILITY != 'private' |
|
91 |
&& $wb->get_session('USER_ID') == '') { ?> |
|
85 |
if (FRONTEND_LOGIN == 'enabled' && VISIBILITY != 'private' && $wb->get_session('USER_ID') == '') { |
|
86 |
$redirect_url = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : WB_URL ); |
|
87 |
$redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $redirect_url ); |
|
88 |
?> |
|
92 | 89 |
<!-- login form --> |
93 | 90 |
<br /> |
94 | 91 |
<form name="login" id="login" action="<?php echo LOGIN_URL; ?>" method="post"> |
92 |
<input type="hidden" name="redirect" value="<?php echo $redirect_url;?>" /></p> |
|
95 | 93 |
<fieldset> |
96 | 94 |
<legend><?php echo $TEXT['LOGIN']; ?></legend> |
97 | 95 |
<label for="username" accesskey="1"><?php echo $TEXT['USERNAME']; ?>:</label> |
Also available in: Unified diff
rework login and show_menu in templates allcss and round