Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: iw_integrateur.fonct.php,v 1.18 2006-08-29 20:01:33 ddelon Exp $
|
24 |
// CVS : $Id: iw_integrateur.fonct.php,v 1.19 2006-08-29 20:22:41 ddelon Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Fonctions de l'integrateur de page Wikini
|
26 |
* Fonctions de l'integrateur de page Wikini
|
27 |
*
|
27 |
*
|
28 |
* Application permettant d'intégrer des pages wikini dans Papyrus.
|
28 |
* Application permettant d'intégrer des pages wikini dans Papyrus.
|
29 |
*
|
29 |
*
|
Line 31... |
Line 31... |
31 |
//Auteur original :
|
31 |
//Auteur original :
|
32 |
*@author David Delon <david.delon@clapas.net>
|
32 |
*@author David Delon <david.delon@clapas.net>
|
33 |
//Autres auteurs :
|
33 |
//Autres auteurs :
|
34 |
*@author Aucun
|
34 |
*@author Aucun
|
35 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@version $Revision: 1.18 $ $Date: 2006-08-29 20:01:33 $
|
36 |
*@version $Revision: 1.19 $ $Date: 2006-08-29 20:22:41 $
|
37 |
*
|
37 |
*
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// | ENTETE du PROGRAMME |
|
39 |
// | ENTETE du PROGRAMME |
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
Line 426... |
Line 426... |
426 |
$wakkaConfig = $GLOBALS['wikini_config_defaut'];
|
426 |
$wakkaConfig = $GLOBALS['wikini_config_defaut'];
|
427 |
if (!class_exists ('Wiki_Papyrus')) return ;
|
427 |
if (!class_exists ('Wiki_Papyrus')) return ;
|
428 |
$wiki = new Wiki_Papyrus($wakkaConfig);
|
428 |
$wiki = new Wiki_Papyrus($wakkaConfig);
|
Line 429... |
Line 429... |
429 |
|
429 |
|
430 |
if ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
|
430 |
if ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
|
431 |
if (!isset($_SESSION["user"]) || ($_SESSION["user"]=="")) {
|
431 |
// if (!isset($_SESSION["user"]) || ($_SESSION["user"]=="")) {
|
432 |
$wiki->SetUser('initwiki');
|
432 |
$wiki->SetUser('initwiki');
|
433 |
}
|
433 |
// }
|
434 |
}
|
434 |
}
|
435 |
else {
|
435 |
else {
|
436 |
$wiki->LogoutUser();
|
436 |
$wiki->LogoutUser();
|