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. FusionForge is free software;
9 * you can redistribute it and/or modify it under the terms of the
10 * GNU General Public License as published by the Free Software
11 * Foundation; either version 2 of the Licence, or (at your option)
14 * FusionForge 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 along
20 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once('../env.inc.php');
25 require_once $gfcommon.'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(_('Could Not Get User'),'home');
36 } elseif ($u->isError()) {
37 exit_error($u->getErrorMessage(),'home');
40 if ($u->getStatus() != 'P') {
41 exit_error(_('Your account is already active.'),'my');
43 $u->sendRegistrationEmail();
44 $HTML->header(array('title'=>"Account Pending Verification"));
48 <h2><?php echo _('Pending Account')?></h2>
50 <?php echo _('Your email confirmation has been resent. Visit the link in this email to complete the registration process.');?>
57 $HTML->header(array('title'=>_('Resend confirmation email to a pending account')));
59 if (forge_get_config('require_unique_email')) {
60 echo _('Fill in a user name or email address and click \'Submit\' to resend the confirmation email.');
62 echo _('Fill in a user name and click \'Submit\' to resend the confirmation email.');
66 <form action="<?php echo util_make_url('/account/pending-resend.php'); ?>" method="post">
68 if (forge_get_config('require_unique_email')) {
69 echo _('Login name or email address:');
71 echo _('Login name:');
74 <br /><input type="text" name="loginname" /></p>
75 <p><input type="submit" name="submit" value="<?php echo _('Submit'); ?>" /></p>
78 <?php $HTML->footer(array()); ?>