- team import: error out if account creation disabled

svn path=/trunk/boinc/; revision=17880
This commit is contained in:
David Anderson 2009-04-27 03:53:47 +00:00
parent a18300cf59
commit 979f27d000
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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;