3 * Resend account activation email with confirmation URL
5 * Copyright 1999-2001 (c) VA Linux Systems
7 * This file is part of GForge.
9 * GForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * GForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with GForge; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 require_once('../env.inc.php');
25 require_once $gfwww.'include/pre.php';
27 if (getStringFromRequest('submit')) {
28 $loginname = getStringFromRequest('loginname');
30 $u = user_get_object_by_name($loginname);
31 if (!$u && forge_get_config('require_unique_email')) {
32 $u = user_get_object_by_email ($loginname);
34 if (!$u || !is_object($u)) {
35 exit_error('Error','Could Not Get User');
36 } elseif ($u->isError()) {
37 exit_error('Error',$u->getErrorMessage());
40 if ($u->getStatus() != 'P') {
43 'Your account is already active.'
46 $u->sendRegistrationEmail();
47 $HTML->header(array('title'=>"Account Pending Verification"));
51 <h2><?php echo _('Pending Account')?></h2>
53 <?php echo _('Your email confirmation has been resent. Visit the link
54 in this email to complete the registration process.');?>
61 $HTML->header(array('title'=>'Pending-resend'));
62 if (forge_get_config('require_unique_email')) {
63 echo _('Fill in a user name or email address and click \'Submit\' to resend the confirmation email.');
65 echo _('Fill in a user name and click \'Submit\' to resend the confirmation email.');
69 <form action="<?php echo util_make_url('/account/pending-resend.php'); ?>" method="post">
71 if (forge_get_config('require_unique_email')) {
72 echo _('Login name or email address:');
74 echo _('Login name:');
77 <br /><input type="text" name="loginname" /></p>
78 <p><input type="submit" name="submit" value="<?php echo _('Submit'); ?>" /></p>
81 <?php $HTML->footer(array()); ?>