function do_login($refer) { GLOBAL $template; //Template parser GLOBAL $bbuserinfo; //needed to use $bbuserinfo GLOBAL $perso_conn; //needed for the DB connection INCLUDE("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 } } ------------------------------------------------ Scooter-Freaks.nl - Voor de echte ScooterFreaks!
{include file="header.tpl"} {include file="menu.tpl"}
Username:
Password:

{include file="footer.tpl"}