Fixed login issue- logging now now brings you directly back to what you were doing before you were asked.

svn path=/trunk/boinc/; revision=1793
This commit is contained in:
David Anderson 2003-07-24 22:57:41 +00:00
parent e381a62c69
commit 5960be72b3
1 changed files with 4 additions and 2 deletions

View File

@ -20,9 +20,11 @@ if (!empty($_GET['id']) && !empty($_POST['title']) && !empty($_POST['content']))
header('Location: thread.php?id='.$thread->id);
}
if (empty($_SESSION['authenticator']))
header('Location: ../login_form.php');
if (empty($_SESSION['authenticator'])) {
get_logged_in_user(true, '../');
}
doHeader('Forum');
$forum = getForum($_GET['id']);