From a32046ae976f674fd5f909bd71b1795b2d804370 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 28 Jan 2004 16:43:53 +0000 Subject: [PATCH] =?utf8?q?la=20doc=20php=20dit=20que=20utiliser=20=5FSESSI?= =?utf8?q?ON=20et=20session=5F(is=5F)register(ed=E0=20en=20m=EAme=20temps?= =?utf8?q?=20c'est=20tr=E8s=20mal?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/auto.prepend.inc.php | 6 ++++-- include/xorg.page.inc.php | 6 +----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/auto.prepend.inc.php b/include/auto.prepend.inc.php index cde6ae4..bda48d1 100644 --- a/include/auto.prepend.inc.php +++ b/include/auto.prepend.inc.php @@ -29,8 +29,10 @@ function _new_page($type, $tpl_name, $tpl_head, $min_auth, $popup=false, $admin= if($popup) $page->assign('popup_enable', true); - $page->compile_check=true; - $page->caching=true; + $page->compile_check=0; + $page->caching=0; +# $page->compile_check=true; +# $page->caching=true; } function new_skinned_page($tpl_name, $min_auth, $popup=false, $tpl_head="") { diff --git a/include/xorg.page.inc.php b/include/xorg.page.inc.php index 5cb64e1..81276d4 100644 --- a/include/xorg.page.inc.php +++ b/include/xorg.page.inc.php @@ -23,18 +23,14 @@ class XorgPage extends DiogenesCorePage { $this->register_function('dyn', 'function_dyn', false); // if necessary, construct new session - if (!session_is_registered('session')) { - session_register('session'); + if (empty($_SESSION['session'])) $_SESSION['session'] = new XorgSession; - } $this->assign('site_dev',$site_dev); // si necessaire, c'est *ici* que se fait l'authentification $_no_legacy = true; $this->doAuth(); - if(empty($_SESSION['skin'])) - set_skin(); } function display($append_to_id="") { -- 2.1.4