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