<?php
//20.0.56.2 FMK/Contexte.php GF 
//VersionVI: 30F200067s
//(c) 2005-2012 PC SOFT  - Release
 define('FMK_Contexte',true); class FMK_Contexte { var $m_sPrefix = null; var $m_tabContextePile = null; function FMK_Contexte() { $sCheminCompletSite = dirname(dirname(realpath(WB_INCLUDE_PATH))); $sCheminFrameworkRelatif = str_replace($sCheminCompletSite,'',WB_INCLUDE_PATH); if (!isset($GLOBALS['gszRepLangue'])) { $sCheminDossierParent = dirname($sCheminCompletSite); if (!F0728da76($sCheminDossierParent,DIRECTORY_SEPARATOR)) $sCheminDossierParent.=DIRECTORY_SEPARATOR; if (is_dir( $sCheminDossierParent . str_replace('../','./',$sCheminFrameworkRelatif) )) { $sCheminCompletSite = $sCheminDossierParent; } } $this->m_sPrefix = WB_MONPROJET .'_'. utf8_str_replace('/','',utf8_str_replace('\\','',$sCheminCompletSite)); if (!isset($_SESSION[$this->m_sPrefix])){ $_SESSION[$this->m_sPrefix] = array(); } } function setContextePile($nInfoContexte,$xValeur) { $VMMgr =& F08aafbb0(); $nNiveauPile = $VMMgr->m_nTaillePile; if (!isset($this->m_tabContextePile)) { $this->m_tabContextePile = array($nNiveauPile=>array($nInfoContexte=>$xValeur)); } else { $this->m_tabContextePile[$nNiveauPile][$nInfoContexte] = $xValeur; } } function F3ecfb7c5($sInfo,$xValeur) { if (!isset($this->m_tabContextePile)) return false; $VMMgr =& F08aafbb0(); $nNiveauPileCourant = $VMMgr->m_nTaillePile; foreach ($this->m_tabContextePile as $nNiveauPile => $tabInfoNiveauPile) { if ( ($nNiveauPile<=$nNiveauPileCourant) && isset($tabInfoNiveauPile[$sInfo]) && ($tabInfoNiveauPile[$sInfo]==$xValeur) ) { return true; } } return false; } function F8a27199b($nInfoContexte=null) { if (!isset($this->m_tabContextePile)) return; $VMMgr =& F08aafbb0(); $nNiveauPile = $VMMgr->m_nTaillePile; if (!isset($nInfoContexte)) { unset($this->m_tabContextePile[$nNiveauPile]); } else { if (!isset($this->m_tabContextePile[$nNiveauPile][$nInfoContexte])) return; unset($this->m_tabContextePile[$nNiveauPile][$nInfoContexte]); } } function F25b1e96a() { $sChaine = session_encode(); session_decode($sChaine); } function Ff9d5e233($sNom) { if (isset($_SESSION[$this->m_sPrefix][$sNom])) { unset($_SESSION[$this->m_sPrefix][$sNom]); } } function RAZ() { if (isset($_SESSION[$this->m_sPrefix])) { unset($_SESSION[$this->m_sPrefix]); } } function F4c8f9bd4($sNom, $Valeur) { $null = null; $_SESSION[$this->m_sPrefix][$sNom] = $null; $_SESSION[$this->m_sPrefix][$sNom] = $Valeur; } function F763f150d($sNom, &$Variable) { $null = null; $_SESSION[$this->m_sPrefix][$sNom] = $null; $_SESSION[$this->m_sPrefix][$sNom] =& $Variable; } function& F239ddeda($sNom) { $null = null; if (isset($_SESSION[$this->m_sPrefix][$sNom])) { return $_SESSION[$this->m_sPrefix][$sNom]; } return $null; } function& F8affbbd4($sNom) { $null = null; if (isset($_SESSION[$this->m_sPrefix][$sNom])) { $s = $_SESSION[$this->m_sPrefix][$sNom]; unset($_SESSION[$this->m_sPrefix][$sNom]); return $s; } return $null; } function& F1a1d6423($sNom) { $null = array_key_exists($sNom,$_SESSION[$this->m_sPrefix]); return $null; } function& Fcb77bf46() { $null = null; if (isset($_SESSION[$this->m_sPrefix])) return $_SESSION[$this->m_sPrefix]; return $null; } } $_FMK_Contexte = null; function& FMK_Contexte() { global $_FMK_Contexte; if (!isset($_FMK_Contexte)) $_FMK_Contexte = new FMK_Contexte(); return $_FMK_Contexte; } ?>