Topic: change meny
hello
I have a custom loggin, on the first main page ( custom build page )...
based on punbb
If I whant the meny to change to another meny.
like first meny
<div>meny 1</div>
then when you login i whant to show meny 2
<div>meny 2</div>
Im using this script.
<?php
// Define the path to the forum root
define('FORUM_ROOT', './forum/');
require FORUM_ROOT.'include/common.php';
// Where will we go after login?
$forum_page['redirect_url'] = 'http://your_site.com/forum/';
$forum_page['form_action'] = forum_link($forum_url['login']);
$forum_page['hidden_fields'] = array(
'form_sent' => '<input type="hidden" name="form_sent" value="1" />',
'redirect_url' => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
'csrf_token' => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
);
?>
<form method="post" action="<?php echo $forum_page['form_action'] ?>">
<?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?>
Username:
<input type="text" id="fld1" name="req_username" value="" />
<br />
Password:
<input type="password" id="fld2" name="req_password" value="" />
<br />
<input type="checkbox" id="fld3" name="save_pass" value="1" />
<label for="fld3">Log me in automatically each time I visit.</label>
<br />
<input type="submit" name="login" value="Login" />
</form>