Authentication Error: $autherror";
$action = "loginbox";
}
forumheader();
if ($action == "loginbox") loginbox();
elseif ($action == "register") signup_form();
elseif ($action == "profile") editprofile();
elseif ($action == "savereg") saveuser("new");
elseif ($action == "updateprofile") saveuser("edit");
elseif ($action == "post") postform($forum);
elseif ($action == "postsave") postsave($forum);
elseif ($action == "reply") replyform($forum,$id);
elseif ($action == "replyquote") replyquote($forum,$mid);
elseif ($action == "editmsg") editmsg($forum,$mid);
elseif ($action == "editsave") editsave($forum,$mid);
elseif ($action == "replysave") replysave($forum,$id);
elseif ($action == "displaythread") displaythread($forum,$id);
elseif ($action == "search") searchform();
elseif ($action == "searchnow") search();
elseif ($action == "changepass") passwordform();
elseif ($action == "passwordsave") savepass();
elseif ($action == "lostpassword") lostpassform();
elseif ($action == "resetpassword") passwordreset();
elseif ($action == "inbox" && $config[messaging]) list_messages($forumsess[$realm]["username"]);
elseif ($action == "readpm" && $config[messaging]) read_message($forumsess[$realm]["username"],$id);
elseif ($action == "pm" && $config[messaging]) message_form($to,$re);
elseif ($action == "sendpm" && $config[messaging]) send_message($to,$subj,$message);
elseif ($action == "pmdelete" && $config[messaging]) del_message($id);
elseif (($action == "manageusers")&&($forumsess[$realm]["admin"])) manageusers();
elseif (($action == "manageforums")&&($forumsess[$realm]["admin"])) manageforums();
elseif (($action == "editforum")&&($forumsess[$realm]["admin"])) editforum($forum);
elseif (($action == "deleteforum")&&($forumsess[$realm]["admin"])) removeforum($forum);
elseif (($action == "addforum")&&($forumsess[$realm]["admin"])) addforum();
elseif (($action == "saveforum")&&($forumsess[$realm]["admin"])) makeforum();
elseif (($action == "saveforumchange")&&($forumsess[$realm]["admin"])) saveforumchanges($forum);
elseif (($action == "userinfo")&&($forumsess[$realm]["admin"])) userinfo($user);
elseif (($action == "promoteuser")&&($forumsess[$realm]["admin"])) userpromote($user);
elseif (($action == "demoteuser")&&($forumsess[$realm]["admin"])) userdemote($user);
elseif (($action == "disableuser")&&($forumsess[$realm]["admin"])) userdisable($user);
elseif (($action == "enableuser")&&($forumsess[$realm]["admin"])) userenable($user);
elseif (($action == "closethread")&&($forumsess[$realm]["admin"])) closethread($forum,$id);
elseif (($action == "movethread")&&($forumsess[$realm]["admin"])) moveform($forum,$id);
elseif (($action == "confirmcleanup")&&($forumsess[$realm]["admin"])) ConfirmCleanUp();
elseif (($action == "cleanup")&&($forumsess[$realm]["admin"])) CleanUp();
elseif ($forum) displayforum($forum);
else mainforums();
forumfooter();
}
mainend();
htmlend();
db_disconnect();
?>