From ffa92de2a25760d2688281177801bcc2444aba0d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 11 Sep 2007 17:06:58 +0000 Subject: [PATCH] Fix: Corrige bug bloquant --- htdocs/includes/cryptographp/cryptographp.fct.php | 7 ++++--- htdocs/includes/cryptographp/cryptographp.inc.php | 9 +++++++-- htdocs/includes/cryptographp/cryptographp.php | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/cryptographp/cryptographp.fct.php b/htdocs/includes/cryptographp/cryptographp.fct.php index 898e2918dd3..fb5b69efa1c 100644 --- a/htdocs/includes/cryptographp/cryptographp.fct.php +++ b/htdocs/includes/cryptographp/cryptographp.fct.php @@ -18,9 +18,10 @@ function dsp_crypt($cfg=0,$reload=1) { // Affiche le cryptogramme - echo ""; - if ($reload) echo ""; - echo "
"; + // FIX LDR. Le nom de session etait mal passe. + echo ""; + if ($reload) echo ""; + echo "
"; } diff --git a/htdocs/includes/cryptographp/cryptographp.inc.php b/htdocs/includes/cryptographp/cryptographp.inc.php index bd5630c6f80..d83ae2ddcee 100644 --- a/htdocs/includes/cryptographp/cryptographp.inc.php +++ b/htdocs/includes/cryptographp/cryptographp.inc.php @@ -22,10 +22,15 @@ if ((!isset($_COOKIE['cryptcookietest'])) and ($_GET[$_GET['sn']]=="")) exit; } -if ($_GET[$_GET['sn']]=="") unset ($_GET['sn']); -session_start(); +// FIX LDR. Le bon nom de session n'etait pas positionne faisant stocker les variable dans la mauvaise. +session_name($_GET['sn']); +//print "zz".session_name().session_id();print_r($_SESSION);exit; +if ($_GET[$_GET['sn']]=="") unset ($_GET['sn']); + +session_start(); + // N'accepte que les fichiers de config du meme répertoire if (is_file($_GET['cfg']) and dirname($_GET['cfg'])=='.' ) $_SESSION['configfile']=$_GET['cfg']; else $_SESSION['configfile']="cryptographp.cfg.php"; diff --git a/htdocs/includes/cryptographp/cryptographp.php b/htdocs/includes/cryptographp/cryptographp.php index 5aef68659a7..89978a089c3 100644 --- a/htdocs/includes/cryptographp/cryptographp.php +++ b/htdocs/includes/cryptographp/cryptographp.php @@ -11,6 +11,8 @@ // => Voir fichier Licence_CeCILL_V2-fr.txt) // ----------------------------------------------- +// FIX LDR. Le bon nom de session n'etait pas positionne faisant echouer le session_name plus loin. +session_name($_GET['sn']); session_start(); error_reporting(E_ALL ^ E_NOTICE);