adduser($_POST); if ($msg === TRUE) { $template->assign_if("sucess", 1); } else { $template->assign_if("error", 1); $template->assign("ERRMSG", $msg ); } } else { $template->assign_if("form", 1); } // Process template $template->assign("PAGE_TITLE", $title); $template->assign("HEAD_TITLE", $site->site_title($lang['signup_page'], 1)); $template->pparse("layout/signup.tmpl"); ?>