Subversion Repositories Applications.papyrus

Compare Revisions

Regard whitespace Rev 919 → Rev 920

/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.17 2006-07-04 09:40:49 alexandre_tb Exp $
// CVS : $Id: iw_integrateur.fonct.php,v 1.18 2006-08-29 20:01:33 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.17 $ $Date: 2006-07-04 09:40:49 $
*@version $Revision: 1.18 $ $Date: 2006-08-29 20:01:33 $
*
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
199,6 → 199,8
 
if ($method=="edit") {
 
if ($this->HasAccess("write") && $this->HasAccess("read")) {
$result='';
 
if ($_POST) {
280,6 → 282,11
 
}
else {
echo "<i>Vous n'avez pas acc&egrave;s en &eacute;criture &agrave; cette page !</i>\n";
}
}
else {
return parent::Method($method);
}
}
296,14 → 303,11
 
function SetUser($user, $remember) {
// Appel à partir de Papyrus
if ($user=='') {
if ($user=='initwiki') {
$remember=1;
$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;
$_SESSION["user"]=array("name"=>$wiki_prenom.$wiki_nom,"password"=>"wikini","changescount"=> 100);
$this->SetPersistentCookie("name", $user["name"], $remember);
$this->SetPersistentCookie("password", $user["password"], $remember);
$this->SetPersistentCookie("remember", $remember, $remember);
410,6 → 414,7
function afficherPageWikini()
{
 
 
$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
 
// Ajout d'une feuille de style externe
424,7 → 429,7
 
if ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
if (!isset($_SESSION["user"]) || ($_SESSION["user"]=="")) {
$wiki->SetUser('');
$wiki->SetUser('initwiki');
}
}
else {