- Free Web Based Training System // // ------------------------------------------------------------------------- // // - Plate-forme de téléformation gratuite et en open source // // ------------------------------------------------------------------------- // // Copyright (C) 2001-2003 Anéma Formation // // ------------------------------------------------------------------------- // // Developer : Georges CALDEIRA // // ------------------------------------------------------------------------- // // Infos on project // // ------------------------------------------------------------------------- // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation; either version 2 of the License, or // // (at your option) any later version. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // /** * Page envoie du login/pwd * * @author Georges Caldeira * @package GaneshaCommun */ /** * include des fichiers et PAS de verification de la cnx */ $verif_connexion = false ; require_once("../anema.inc.php"); require_once(RP_CLS.'membre.class.php'); require_once(RP_CLS.'mail.class.php'); require_once(RP_CLS.'phpmailer.class.php'); if ( isset($HTTP_POST_VARS['EmailSend']) ) { $EmailSend = $HTTP_POST_VARS['EmailSend'] ; if ( strlen($EmailSend) == 0 ) { $content = $msg_ganesha['emailici'] ; } else { $ret=$ClsMembre->GetLoginPassword($EmailSend) ; if ( $ret === false ) { $content = $msg_ganesha['mailpastrouv']; } else { $ClsMail->SetMail(MAIL_LOGIN_PASSWORD,array($ret['login'],$ret['pwd'])); if (! $ClsMail->Send($EmailSend) ) { $content = $msg_ganesha['errorsendmail'] ; } else { $content = $msg_ganesha['sendmailok'].$EmailSend ; } } } } else { $content = '
'.$msg_ganesha['login/pwd'].'


' ; } ?>