Subversion Repositories Applications.papyrus

Compare Revisions

Regard whitespace Rev 580 → Rev 581

/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.4 2005-10-31 17:12:00 ddelon Exp $
// CVS : $Id: iw_integrateur.fonct.php,v 1.5 2005-10-31 17:45:41 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.4 $ $Date: 2005-10-31 17:12:00 $
*@version $Revision: 1.5 $ $Date: 2005-10-31 17:45:41 $
*
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
257,6 → 257,7
function SetUser($user, $remember=1) {
$_SESSION["user"]["name"] = ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom))).ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)));;
$_SESSION["user"]["password"] = "wikini";
$_SESSION["user"]["changescount"] = 100;
$this->SetPersistentCookie("name", $user["name"], $remember);
$this->SetPersistentCookie("password", $user["password"], $remember);
$this->SetPersistentCookie("remember", $remember, $remember);
357,7 → 358,7
 
 
if ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
if (!isset($_COOKIE["name"])) {
if (!isset($_SESSION["user"]) || ($_SESSION["user"]=="")) {
$wiki->SetUser('');
}
}