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. */ ?> 'committee_main.php', 'Administration' => 'admin/index.php' ) ); ?> "; $type = $_POST['type']; if(!$type) $type=$_GET['type']; /* //FIXME: commente dby james 2010-12-21 - we need ta better way to know which types we can invite $allowed_types = array('judge', 'volunteer'); if($type == '') $type = $_GET['type']; if($type != '') { if(!in_array($type, $allowed_types)) { echo "Type $type not allowed for invite

"; exit; } } */ if($_POST['action']=="invite" && $_POST['email'] && $type != '') { $newUser=user_invite($_POST['email'], null, $_POST['email'], $type); if(is_array($newUser)) { echo happy(i18n("%1 successfully invited to be a %2",array($_POST['email'],$type))); } else { echo error($newUser); } } echo "
\n"; echo "
\n"; echo "\n"; echo "
"; echo i18n("Select a Role: "); echo "
"; echo i18n("Enter an Email: "); echo ""; echo "
"; echo "
\n"; echo "
".i18n('Select a role and enter an email address')."
"; echo "
\n"; echo "\n"; echo "
\n"; send_footer(); ?>