mirror of https://github.com/BOINC/boinc.git
- team import: error out if account creation disabled
svn path=/trunk/boinc/; revision=17880
This commit is contained in:
parent
a18300cf59
commit
979f27d000
|
@ -4181,3 +4181,9 @@ David 24 Apr 2009
|
|||
|
||||
lib/
|
||||
coproc.cpp
|
||||
|
||||
David 26 Apr 2009
|
||||
- team import: error out if account creation disabled
|
||||
|
||||
html/ops/
|
||||
team_import.php
|
||||
|
|
|
@ -26,11 +26,17 @@ require_once("../inc/team.inc");
|
|||
require_once("../inc/email.inc");
|
||||
require_once("../inc/project.inc");
|
||||
|
||||
if(defined('INVITE_CODES')) {
|
||||
if (defined('INVITE_CODES')) {
|
||||
echo "Account creation is protected by invitation codes, so not importing teams';
|
||||
exit;
|
||||
}
|
||||
|
||||
$config = get_config();
|
||||
if (parse_bool($config, "disable_account_creation")) {
|
||||
echo "Account creation is disabled";
|
||||
exit;
|
||||
}
|
||||
|
||||
// set the following to 1 to print queries but not do anything
|
||||
|
||||
$dry_run = 0;
|
||||
|
|
Loading…
Reference in New Issue