19,8 → 19,8 |
// | 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.fonct.php,v 1.15 2006-04-10 14:01:36 florian Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.15 2006-04-10 14:01:36 florian Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.16 2006-04-11 08:41:41 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.16 2006-04-11 08:41:41 alexandre_tb Exp $ |
/** |
* Fonctions du module inscription |
* |
32,8 → 32,8 |
//Autres auteurs : |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.15 $ $Date: 2006-04-10 14:01:36 $ |
*@version $Revision: 1.15 $ $Date: 2006-04-10 14:01:36 $ |
*@version $Revision: 1.16 $ $Date: 2006-04-11 08:41:41 $ |
*@version $Revision: 1.16 $ $Date: 2006-04-11 08:41:41 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
164,8 → 164,12 |
function insertion($valeur) { |
// =========== Insertion dans l'annuaire gen_annuaire =================== |
// Génération du nom wikini à partir du nom et du prénom |
if (INS_UTILISE_WIKINI) { |
if (INS_UTILISE_WIKINI && INS_NOM_WIKINI_GENERE) { |
$valeur['nom_wiki'] = genere_nom_wiki ($valeur['nom'], isset ($valeur['prenom']) ? $valeur['prenom'] : '') ; |
} else { |
if (!INS_NOM_WIKINI_GENERE) { |
$valeur['nom_wiki'] = $valeur['nomwiki']; |
} |
} |
$id_utilisateur = nextId(INS_ANNUAIRE, INS_CHAMPS_ID, $GLOBALS['ins_db']) ; |
$requete = 'insert into '.INS_ANNUAIRE.' set '. |
269,6 → 273,7 |
} |
$req .= ",".INS_CHAMPS_DEPARTEMENT."='$n_dpt'"; |
} |
if (INS_UTILISE_WIKINI) $req .= ','.INS_CHAMPS_NOM_WIKINI.'="'.$valeur['nomwiki'].'"'; |
return $req ; |
} |
|
686,6 → 691,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.15 2006/04/10 14:01:36 florian |
* uniformisation de l'appli bottin: plus qu'un fichier de fonctions |
* |
* Revision 1.14 2006/04/04 12:23:05 florian |
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire |
* |