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.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 $ |
// CVS : $Id: inscription.fonct.php,v 1.17 2006-04-28 12:44:05 florian Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.17 2006-04-28 12:44:05 florian 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.16 $ $Date: 2006-04-11 08:41:41 $ |
*@version $Revision: 1.16 $ $Date: 2006-04-11 08:41:41 $ |
*@version $Revision: 1.17 $ $Date: 2006-04-28 12:44:05 $ |
*@version $Revision: 1.17 $ $Date: 2006-04-28 12:44:05 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
124,9 → 124,7 |
* |
* @return string HTML |
*/ |
function AUTH_formulaire_login() { |
|
|
function AUTH_formulaire_login() { |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/Template/IT.php'; |
$tpl = new HTML_Template_IT() ; |
// Le formulaire pour se logguer est dans un template |
162,7 → 160,7 |
|
|
function insertion($valeur) { |
// =========== Insertion dans l'annuaire gen_annuaire =================== |
// =========== Insertion dans l'annuaire =================== |
// Génération du nom wikini à partir du nom et du prénom |
if (INS_UTILISE_WIKINI && INS_NOM_WIKINI_GENERE) { |
$valeur['nom_wiki'] = genere_nom_wiki ($valeur['nom'], isset ($valeur['prenom']) ? $valeur['prenom'] : '') ; |
172,7 → 170,7 |
} |
} |
$id_utilisateur = nextId(INS_ANNUAIRE, INS_CHAMPS_ID, $GLOBALS['ins_db']) ; |
$requete = 'insert into '.INS_ANNUAIRE.' set '. |
$requete = 'INSERT INTO '.INS_ANNUAIRE.' SET '. |
INS_CHAMPS_ID.'="'.$id_utilisateur.'",'. |
requete_annuaire($valeur) ; |
|
334,7 → 332,8 |
} |
|
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ; |
//cas de la présentation de la fiche |
|
//voir la présentation de la fiche |
if ($type_info=='fiche') { |
if ($ligne[INS_CHAMPS_EST_STRUCTURE] == 1) { |
$res = '<h1>'.$ligne[INS_CHAMPS_NOM].'</h1>'."\n"; |
382,23 → 381,50 |
$res .= '<li><a href="'.$GLOBALS['ins_url']->getURL().'&action=deconnexion">'.INS_DECONNEXION.'</a></li>'."\n" ; |
$res .= '</ul>'."\n"; |
} |
|
//voir les abonnements presents dans les applis clientes |
} elseif ($type_info=='abonnement') { |
$res = '<h1>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h1>'."\n"; |
$res .= '<h2>'.INS_GESTION_DES_ABONNEMENTS.'</h2>'."\n" ; |
include_once PAP_CHEMIN_RACINE.'client/bazar/configuration/baz_config.inc.php' ; |
include_once PAP_CHEMIN_RACINE.'client/bazar/bibliotheque/bazar.fonct.php' ; |
$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID); |
$res .= baz_s_inscrire(); |
|
|
// Appel des actions d'abonnement des applications clientes |
$d = dir(GEN_CHEMIN_CLIENT); |
$abonnement=''; |
$abonnements=''; |
while (false !== ($repertoire = $d->read())) { |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.'bibliotheque'.GEN_SEP.$repertoire.'.abonnement.inc.php')) { |
require_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.'bibliotheque'.GEN_SEP.$repertoire.'.abonnement.inc.php' ; |
$abonnements .= $abonnement; |
} |
} |
$d->close(); |
$res .= $abonnements; |
|
//voir les actus |
} elseif ($type_info=='actus') { |
$res = '<h1>'.INS_ACTUALITES_DEPOSEES.'</h1>'."\n" ; |
$res .= '<h2>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h2>'."\n"; |
$res = '<h1>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h1>'."\n"; |
$res .= '<h2>'.INS_ACTUALITES_DEPOSEES.'</h2>'."\n" ; |
require_once GEN_CHEMIN_CLIENT.'bazar'.GEN_SEP.'configuration'.GEN_SEP.'baz_config.inc.php'; |
require_once GEN_CHEMIN_CLIENT.'bazar'.GEN_SEP.'bibliotheque'.GEN_SEP.'bazar.fonct.rss.php'; |
$_GET['action']=1; |
$res .= RSSversHTML(gen_RSS('', '', $id, 1, ''), 0, 'jma', 0); |
|
//voir les ressources |
} elseif ($type_info=='ressources') { |
$res = '<h1>'.INS_RESSOURCES_ASSOCIEES.'</h1>'."\n" ; |
$res .= '<h2>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h2>'."\n"; |
$res = '<h1>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h1>'."\n"; |
$res .= '<h2>'.INS_RESSOURCES_ASSOCIEES.'</h2>'."\n" ; |
$requete = 'SELECT bf_id_fiche, bf_titre FROM bazar_fiche, bazar_appropriation WHERE ba_ce_id_fiche=bf_id_fiche AND ba_ce_id_structure='.$id ; |
$resultat = $GLOBALS['ins_db'] -> query($requete) ; |
$res .= '<ul>'."\n"; |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) { |
$res .= '<li><a href="'.INS_URL_BAZAR.'&action=8&id_fiche='.$ligne['bf_id_fiche'].'" onclick="window.open(this.href,\'_blank\');return false;">'.$ligne['bf_titre'].'</a></li>'."\n"; |
} |
$res .= '</ul><br />'."\n"; |
|
//voir les competences |
} elseif ($type_info=='competences') { |
$res = '<h1>'.INS_COMPETENCES_ASSOCIEES.'</h1>'."\n" ; |
$res .= '<h2>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h2>'."\n"; |
$res = '<h1>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h1>'."\n"; |
$res .= '<h2>'.INS_COMPETENCES_ASSOCIEES.'</h2>'."\n" ; |
} |
return $res ; |
} |
691,6 → 717,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.16 2006/04/11 08:41:41 alexandre_tb |
* Ajout du champs nom wiki dans le formulaire si la constante INS_GENERE_NOM_WIKI n'est pas activé |
* |
* Revision 1.15 2006/04/10 14:01:36 florian |
* uniformisation de l'appli bottin: plus qu'un fichier de fonctions |
* |