2002-11-11 19:40:22 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2002-11-11 19:40:22 +00:00
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
include_once("../inc/util.inc");
|
2017-06-22 08:07:25 +00:00
|
|
|
include_once("../inc/user_util.inc");
|
2002-11-11 19:40:22 +00:00
|
|
|
|
2017-06-22 08:07:25 +00:00
|
|
|
$user = validate_post_make_user();
|
2006-11-15 20:15:01 +00:00
|
|
|
|
2008-09-25 22:03:56 +00:00
|
|
|
// In success case, redirect to a fixed page so that user can
|
|
|
|
// return to it without getting "Repost form data" stuff
|
|
|
|
|
2008-02-13 19:54:54 +00:00
|
|
|
$next_url = post_str('next_url', true);
|
2010-09-04 22:13:27 +00:00
|
|
|
$next_url = sanitize_local_url($next_url);
|
2008-02-13 19:54:54 +00:00
|
|
|
if ($next_url) {
|
2015-11-30 08:36:29 +00:00
|
|
|
Header("Location: ".url_base()."$next_url");
|
2008-02-13 19:54:54 +00:00
|
|
|
} else {
|
2017-07-13 08:17:21 +00:00
|
|
|
Header("Location: ".url_base().USER_HOME);
|
2008-02-13 19:54:54 +00:00
|
|
|
send_cookie('init', "1", true);
|
|
|
|
send_cookie('via_web', "1", true);
|
|
|
|
}
|
2008-02-13 19:02:44 +00:00
|
|
|
send_cookie('auth', $user->authenticator, true);
|
2002-12-06 21:37:30 +00:00
|
|
|
|
2005-02-13 20:57:43 +00:00
|
|
|
?>
|