I see this code by ledman
Quote:
PHP Code:
<?php chdir('./up'); require_once('./global.php'); chdir('../up');
if ($userid > 0){ echo 'Welcome, ' . $username . '!'; } else { echo"
<form action='./up/login.php?do=login' method='post' onsubmit='md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])'> <input type='hidden' name='do' value='login' /> <input type='hidden' name='url' value='/' /> <input type='hidden' name='vb_login_md5password' />
<input type='hidden' name='vb_login_md5password_utf' /> <input type='hidden' name='s' value='$session[sessionhash]' /> <input type='hidden' name='cookieuser' value='1' id='cb_cookieuser' tabindex='1' /> <label>Username:<input name='vb_login_username' type='text' id='login' tabindex='1' class='bginput' accesskey='u'/></label> <label>Password<input name='vb_login_password' type='password' id='password' tabindex='1' class='bginput' /></label> <input name='submit' type='submit' id='submit' tabindex='1' value='Login' accesskey='s' class='button' /> </form>
"; } ?>
|
But it doesn't function, it still displays the login form when user has logged in success full instead of "echo 'Welcome, ' . $username . '!';"
Please help me this