00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: pending-resend.php 4567 2005-06-30 17:19:37Z toddy $
00006 #
00007 #
00008 # Copyright 1999-2000 (c) The SourceForge Crew
00009 #
00010 #
00011 # Copyright (C) 2000-2003 Free Software Foundation
00012 #
00013 # The Savane project is free software; you can redistribute it and/or
00014 # modify it under the terms of the GNU General Public License
00015 # as published by the Free Software Foundation; either version 2
00016 # of the License, or (at your option) any later version.
00017 #
00018 # The Savane project is distributed in the hope that it will be useful,
00019 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021 # GNU General Public License for more details.
00022 #
00023 # You should have received a copy of the GNU General Public License
00024 # along with the Savane project; if not, write to the Free Software
00025 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00026 #
00027 #
00028 #
00029 #
00030
00031 require "../include/pre.php";
00032
00033 $res_user = db_query("SELECT * FROM user WHERE user_name='$form_user'");
00034 $row_user = db_fetch_array($res_user);
00035
00036 # only mail if pending
00037 if ($row_user['status'] == 'P') {
00038
00039 # send mail
00040 $message = sprintf(_("Thank you for registering on the %s web site."),$GLOBALS['sys_name'])."\n"
00041 . _("In order to complete your registration, visit the following url:")."\n\n"
00042 . $GLOBALS['sys_https_url'].$GLOBALS['sys_home']."account/verify.php?confirm_hash=$row_user[confirm_hash]\n\n"
00043 . _("Enjoy the site").".\n\n"
00044 . sprintf(_("-- the %s team."),$GLOBALS['sys_name'])."\n";
00045
00046
00047 sendmail_mail($GLOBALS['sys_replyto'] . "@".$GLOBALS['sys_lists_domain'],
00048 $row_user['email'],
00049 $GLOBALS['sys_name'] . " " . _("Account Registration"),
00050 $message);
00051
00052 $HTML->header(array(title=>_("Account Pending Verification")));
00053
00054
00055 print '<h3>'._("Pending Account").'</h3>';
00056 print '<p>'._("Your email confirmation has been resent. Visit the link in this email to complete the registration process.").'</p>';
00057 print '<p><a href="'.$GLOBALS['sys_home'].'">['._("Return to Home Page").']</a></p>';
00058
00059 } else {
00060 exit_error(_("Error"),_("This account is not pending verification."));
00061 }
00062
00063 $HTML->footer(array());
00064
00065 ?>