2002-11-11 10:26:40 +00:00
< ? php
2008-08-05 22:43:14 +00:00
// This file is part of BOINC.
// http://boinc.berkeley.edu
2014-04-24 16:41:59 +00:00
// Copyright (C) 2014 University of California
2008-08-05 22:43:14 +00:00
//
// 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/>.
2007-09-23 19:19:37 +00:00
2014-04-24 16:41:59 +00:00
require_once ( '../inc/boinc_db.inc' );
2004-02-02 23:34:39 +00:00
require_once ( '../inc/util.inc' );
2015-01-14 17:19:11 +00:00
require_once ( '../inc/account.inc' );
2004-03-26 18:32:57 +00:00
require_once ( '../inc/countries.inc' );
2005-02-11 22:08:56 +00:00
require_once ( '../inc/translation.inc' );
2011-06-20 17:17:56 +00:00
require_once ( '../inc/recaptchalib.php' );
2004-03-26 18:32:57 +00:00
2011-02-09 22:11:34 +00:00
check_get_args ( array ( " next_url " , " teamid " ));
2010-09-04 22:13:27 +00:00
$next_url = sanitize_local_url ( get_str ( 'next_url' , true ));
2010-08-29 10:24:39 +00:00
2004-06-30 18:53:35 +00:00
$config = get_config ();
2004-11-12 22:50:58 +00:00
if ( parse_bool ( $config , " disable_account_creation " )) {
2016-11-11 20:36:27 +00:00
error_page ( " This project has disabled account creation " );
2013-11-26 23:43:02 +00:00
}
if ( parse_bool ( $config , " no_web_account_creation " )) {
error_page ( " This project has disabled Web account creation " );
2003-09-02 03:54:30 +00:00
}
2008-02-13 19:54:54 +00:00
2017-03-27 19:05:51 +00:00
page_head (
tra ( " Create account " ), null , null , null , boinc_recaptcha_get_head_extra ()
);
2013-11-26 23:43:02 +00:00
2017-06-20 07:38:11 +00:00
if ( ! NO_COMPUTING ) {
2016-11-29 08:34:26 +00:00
echo " <p class= \" lead \" > "
2016-11-25 02:01:41 +00:00
. tra (
2017-07-04 11:13:01 +00:00
" If you already have an account and want to run %1 on this computer, %2 go here %3. " ,
2016-11-25 02:01:41 +00:00
PROJECT ,
'<a href=join.php>' ,
'</a>'
)
2016-11-29 08:34:26 +00:00
. " </p>
2008-02-13 19:02:44 +00:00
" ;
}
2005-02-13 06:13:33 +00:00
$teamid = get_int ( " teamid " , true );
2004-10-16 04:12:11 +00:00
if ( $teamid ) {
2014-04-24 16:41:59 +00:00
$team = BoincTeam :: lookup_id ( $teamid );
$user = BoincUser :: lookup_id ( $team -> userid );
2004-10-15 23:46:24 +00:00
if ( ! $user ) {
2015-01-14 17:19:11 +00:00
error_page ( " Team $team->name has no founder " );
$teamid = 0 ;
2004-10-15 23:46:24 +00:00
} else {
2007-11-02 14:43:02 +00:00
echo " <b> " . tra ( " This account will belong to the team %1 and will have the project preferences of its founder. " , " <a href= \" team_display.php?teamid= $team->id\ " > $team -> name </ a > " ). " </ b >< p > " ;
2004-10-15 23:46:24 +00:00
}
2003-09-02 03:54:30 +00:00
}
2005-10-12 22:51:55 +00:00
2017-06-20 07:38:11 +00:00
form_start ( " create_account_action.php " , " post " );
2015-01-14 17:19:11 +00:00
create_account_form ( $teamid , $next_url );
2018-08-25 18:42:55 +00:00
global $recaptcha_public_key ;
2017-06-20 07:38:11 +00:00
if ( $recaptcha_public_key ) {
form_general ( " " , boinc_recaptcha_get_html ( $recaptcha_public_key ));
}
form_submit ( tra ( " Create account " ));
form_end ();
2011-06-20 17:17:56 +00:00
2015-01-14 17:19:11 +00:00
page_tail ();
2002-11-11 10:26:40 +00:00
2008-02-13 19:02:44 +00:00
$cvs_version_tracker [] = " \$ Id $ " ; //Generated automatically - do not edit
2002-11-11 10:26:40 +00:00
?>