3 * Resend account activation email with confirmation URL
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2010 (c), Franck Villaume
8 * This file is part of FusionForge.
10 * FusionForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with FusionForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 require_once('../env.inc.php');
26 require_once $gfcommon.'include/pre.php';
28 if (getStringFromRequest('submit')) {
29 $loginname = getStringFromRequest('loginname');
31 $u = user_get_object_by_name($loginname);
32 if (!$u && forge_get_config('require_unique_email')) {
33 $u = user_get_object_by_email ($loginname);
35 if (!$u || !is_object($u)) {
36 exit_error(_('Could Not Get User'),'home');
37 } elseif ($u->isError()) {
38 exit_error($u->getErrorMessage(),'home');
41 if ($u->getStatus() != 'P') {
42 exit_error(_('Your account is already active.'),'my');
44 $u->sendRegistrationEmail();
45 $HTML->header(array('title'=>"Account Pending Verification"));
49 <h2><?php echo _('Pending Account')?></h2>
51 <?php echo _('Your email confirmation has been resent. Visit the link in this email to complete the registration process.');?>
58 $HTML->header(array('title'=>_('Resend confirmation email to a pending account')));
59 echo '<h1>' . _('Resend confirmation email to a pending account') . '</h1>';
61 if (forge_get_config('require_unique_email')) {
62 echo _('Fill in a user name or email address and click \'Submit\' to resend the confirmation email.');
64 echo _('Fill in a user name and click \'Submit\' to resend the confirmation email.');
68 <form action="<?php echo util_make_url('/account/pending-resend.php'); ?>" method="post">
70 if (forge_get_config('require_unique_email')) {
71 echo _('Login name or email address:');
73 echo _('Login name:');
76 <br /><input type="text" name="loginname" /></p>
77 <p><input type="submit" name="submit" value="<?php echo _('Submit'); ?>" /></p>
80 <?php $HTML->footer(array()); ?>