19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: inscription.php,v 1.31 2007-09-06 08:39:08 alexandre_tb Exp $ |
// CVS : $Id: inscription.php,v 1.32 2007-09-07 09:18:23 alexandre_tb Exp $ |
/** |
* Inscription |
* |
32,7 → 32,7 |
//Autres auteurs : |
*@author Florian SCHMITT <florian@ecole-et-nature.org> |
*@copyright Tela-Botanica 2000-2007 |
*@version $Revision: 1.31 $ $Date: 2007-09-06 08:39:08 $ |
*@version $Revision: 1.32 $ $Date: 2007-09-07 09:18:23 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
172,6 → 172,7 |
if ($_REQUEST['action'] == 'inscription_v') { |
$formulaire->registerRule('doublonmail', 'callback', 'inscription_verif_doublonMail'); |
$formulaire->addRule('email', INS_MAIL_DOUBLE, 'doublonmail'); |
if (isset($_SESSION['inscription_termine'])) return $res . info(); |
if ($formulaire->validate()) { |
if ($GLOBALS['ins_config']['ic_mail_valide_inscription']) { |
$formulaire->process('inscription_demande', false) ; |
180,18 → 181,21 |
if ($GLOBALS['ins_config']['ic_inscription_modere']) { |
inscription::demandeInscriptionModere($formulaire->getSubmitValues()); |
return inscription::getTemplate(INS_TEMPLATE_MESSAGE_INSCRIPTION_MODEREE, $GLOBALS['ins_config']['ic_id_inscription']); |
} |
$formulaire->process('inscription_validee', false) ; |
$id_utilisateur = $GLOBALS['ins_db']->getOne('SELECT MAX('.INS_CHAMPS_ID.') FROM '.INS_ANNUAIRE) ; |
// Appel des actions des inscriptions des applications clientes |
$d = dir(GEN_CHEMIN_CLIENT); |
while (false !== ($repertoire = $d->read())) { |
if ($repertoire != '.' && $repertoire != '..') { |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php')) |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php' ; |
} |
} |
$d->close(); |
} |
if (!isset($_SESSION['inscription_termine'])) { |
$formulaire->process('inscription_validee', false) ; |
$id_utilisateur = $GLOBALS['ins_db']->getOne('SELECT MAX('.INS_CHAMPS_ID.') FROM '.INS_ANNUAIRE) ; |
// Appel des actions des inscriptions des applications clientes |
$d = dir(GEN_CHEMIN_CLIENT); |
while (false !== ($repertoire = $d->read())) { |
if ($repertoire != '.' && $repertoire != '..') { |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php')) |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php' ; |
} |
} |
$d->close(); |
} |
$_SESSION['incsription_termine'] = 1; |
return $res.info($id_utilisateur); |
} |
} else { |
207,7 → 211,6 |
} |
return $res.info(); |
} |
|
return $res.$formulaire->toHTML() ; |
} |
|
309,6 → 312,10 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.31 2007-09-06 08:39:08 alexandre_tb |
* envoie de cookie pour desinscription different selon que l on est dans papyrus |
* ou en stand-alone |
* |
* Revision 1.30 2007-08-28 15:13:25 alexandre_tb |
* gestion du lien "mot de passe oublie" |
* |