rendered paste bodyfunction do_login($refer) {GLOBAL $template; //Template parserGLOBAL $bbuserinfo; //needed to use $bbuserinfoGLOBAL $perso_conn; //needed for the DB connectionINCLUDE("config.inc.php"); if(is_logged_in()) { //GET USER SHIT if( ($refer == "") OR !ISSET($refer)) { header("Location: index.php"); } else { header("Location: index.php?do=" . $refer); } } else { $template->assign("URL", "../perso/index.php?do=login&refer=" . $refer); $template->assign("DBsessionhash", $vbulletin->session->vars['dbsessionhash']); $template->assign("logintype", $logintype); $template->display('login.tpl'); //show the template }}------------------------------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> <link rel="stylesheet" href="css/index.css" type="text/css" /> <link rel="stylesheet" href="css/header.css" type="text/css" /> <link rel="stylesheet" href="css/footer.css" type="text/css" /> <link rel="stylesheet" href="css/menu.css" type="text/css" /> <title>Scooter-Freaks.nl - Voor de echte ScooterFreaks!</title> <script type="text/javascript" src="/forum/clientscript/vbulletin_md5.js"></script> <script type="text/javascript" src="/scripts/login.js"></script> </head> <body> <div id="container"> {include file="header.tpl"} {include file="menu.tpl"} <div id="content"> <form action="/forum/login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)"> <input type="hidden" name="url" value="{$URL}" /> <input type="hidden" name="s" value="{$DBsessionhash}" /> <input type="hidden" name="logintype" value="{$logintype}" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" value="" /> <input type="hidden" name="vb_login_md5password_utf" value="" /> Username: <input type="text" name="vb_login_username" id="vb_login_username" /><br /> Password:<input type="password" name="vb_login_password" id="vb_login_password" /><br /> <input type="submit" value="Log in !" onclick="js_show_options('loginoptions', this)"> </form> </div> <br style="clear:both" /> </div> {include file="footer.tpl"} </body></html>