Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 595 → Rev 596

/trunk/client/integrateur_wikini/bibliotheque/iw_integrateur.fonct.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: iw_integrateur.fonct.php,v 1.9 2005-11-02 21:51:44 ddelon Exp $
// CVS : $Id: iw_integrateur.fonct.php,v 1.10 2005-11-08 16:29:35 ddelon Exp $
/**
* Fonctions de l'integrateur de page Wikini
*
33,7 → 33,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.9 $ $Date: 2005-11-02 21:51:44 $
*@version $Revision: 1.10 $ $Date: 2005-11-08 16:29:35 $
*
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
256,12 → 256,10
// Appel à partir de Papyrus
if ($user=='') {
$remember=1;
$wiki_prenom=$GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom);
$wiki_prenom = strtolower(trim(strtr($wiki_prenom, "àâéêèëîïôöùûüç", "aaeeeeiioouuuc")));
$wiki_prenom = ucfirst($wiki_prenom);
$wiki_nom=$GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom);
$wiki_nom = strtolower(trim(strtr($wiki_nom, "àâéêèëîïôöùûüç", "aaeeeeiioouuuc")));
$wiki_nom = ucfirst($wiki_nom);
// Faire une fonction ...
$wiki_prenom=$this->versChatMot($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom));
$wiki_nom=$this->versChatMot($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom));
 
$_SESSION["user"]["name"] = $wiki_prenom.$wiki_nom;
$_SESSION["user"]["password"] = "wikini";
$_SESSION["user"]["changescount"] = 100;
275,7 → 273,19
 
}
 
function LogoutUser() {
$_SESSION["user"]="";
$this->DeleteCookie("remember");
parent::LogoutUser();
}
 
function versChatMot($entree) {
$sortie = strtolower(trim(strtr($entree, "àâéêèëîïôöùûüç-", "aaeeeeiioouuuc ")));
$sortie = ucwords($sortie);
$sortie = str_replace(" ", "",$sortie);
return $sortie;
}
 
}