diff --git a/admin/judges.php b/admin/judges.php
index f1957d5..7f82158 100644
--- a/admin/judges.php
+++ b/admin/judges.php
@@ -33,10 +33,7 @@
);
echo "
";
echo ''.i18n('Judges').'
';
diff --git a/admin/user_invite.php b/admin/user_invite.php
deleted file mode 100644
index 4c27d8c..0000000
--- a/admin/user_invite.php
+++ /dev/null
@@ -1,136 +0,0 @@
-
-/*
- This file is part of the 'Science Fair In A Box' project
- SFIAB Website: http://www.sfiab.ca
-
- Copyright (C) 2005 Sci-Tech Ontario Inc
- Copyright (C) 2005 James Grant
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public
- License as published by the Free Software Foundation, version 2.
-
- This program 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
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-?>
-
- require_once("../common.inc.php");
- require_once("../user.inc.php");
- user_auth_required('committee', 'admin');
-
- $email = stripslashes($_POST['email']);
-
- $type = $_GET['type'];
- if(!in_array($type, $user_types)) {
- send_header("Registration");
- echo i18n("Invalid new registration\n");
- send_footer();
- exit;
- }
-
- switch($type) {
- case 'volunteer':
- $header_data = array('Volunteer Management' => 'admin/volunteer.php');
- break;
- case 'judge':
- $header_data = array('Judges Management' => 'admin/judges.php');
- break;
- }
-
- if($_POST['action']=='confirm' && $email != '') {
- $header_data = array_merge($header_data,
- array("{$user_what[$type]} Invitations" => "admin/user_invite.php?type=$type"));
- send_header("{$user_what[$type]} Confirm",
- array_merge(array('Committee Main' => 'committee_main.php',
- 'Administration' => 'admin/index.php'),
- $header_data) );
- } else {
- send_header("{$user_what[$type]} Invitations",
- array_merge(array('Committee Main' => 'committee_main.php',
- 'Administration' => 'admin/index.php'),
- $header_data) );
- }
-
- $id = intval($_POST['id']);
- if($_POST['action']=='confirm' && $id > 0) {
- /* Add $type to their types */
- $id = intval($_POST['id']);
- $u = user_load($id);
- $u = user_create($type, $u);
- echo happy(i18n("%1 has been added as a {$user_what[$type]}",
- array($email)));
- email_send("{$type}_add_invite", $email,
- array("FAIRNAME"=>$config['fairname']),
- array("FAIRNAME"=>$config['fairname'],
- "EMAIL"=>$email));
- }
-
-
- if($_POST['action']=="invite" && $email != '') {
- $e = mysql_escape_string($email);
- $q = mysql_query("SELECT id,types FROM users WHERE email='$e' OR username='$e'");
- if(mysql_num_rows($q) > 0) {
- /* Check the roles */
- $r = mysql_fetch_object($q);
- $types = split(',', $r->types);
- if(in_array($type, $types)) {
- echo notice(i18n("%1 already exists and is already a {$user_what[$type]}",
- array($email)));
- } else {
- echo i18n("%1 already exists with the following roles:", array($email));
- echo '
';
- foreach($types as $t) {
- echo '- '.i18n($user_what[$t]).'
';
- }
- echo '
';
- echo i18n("Instead of generating a new password and
- creating a new account, the role of {$user_what[$type]}
- will be added to this account.");
- echo "\n";
- send_footer();
- exit;
- }
- } else {
- /* They don't exist, create a new account */
- $u = user_create($type);
- $u['username'] = $email;
- $u['password'] = generatePassword(12);
- $u['email'] = $email;
- user_save($u);
-
- email_send("{$type}_new_invite",$email,
- array("FAIRNAME"=>$config['fairname']),
- array("FAIRNAME"=>$config['fairname'],
- "EMAIL"=>$email,
- "PASSWORD"=>$u['password']));
-
- echo happy(i18n("%1 has been invited to be a {$user_what[$type]}",array($email)));
- }
- }
-
-
- echo i18n("Enter the {$user_what[$type]} email address to invite them to be a {$user_what[$type]}");
- echo "
\n";
- echo "
\n";
- echo "\n";
-
- send_footer();
-?>
diff --git a/admin/volunteers.php b/admin/volunteers.php
index 83f2e9c..53af384 100644
--- a/admin/volunteers.php
+++ b/admin/volunteers.php
@@ -32,11 +32,8 @@
"volunteer_management"
);
echo "
";
- if($config['volunteer_registration_type']=="invite")
- {
- echo "".i18n("Invite Volunteers")."
";
- }
- echo "".i18n("Volunteer Position Management")."
";
+ echo "".i18n("Invite Volunteers")."
";
+ echo "".i18n("Volunteer Position Management")."
";
send_footer();