Subversion Repositories Applications.referentiel

Rev

Rev 51 | Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 51 Rev 57
Line 140... Line 140...
140
				}
140
				}
141
			}
141
			}
142
		}
142
		}
143
	}
143
	}
Line 144... Line 144...
144
	
144
	
145
	private function remplacerEsperluette($txt) {
145
	protected function remplacerEsperluette($txt) {
146
		$txt = preg_replace('/&(?!([a-z]+|#[0-9]+|#x[0-9a-f]+);)/i', '&', $txt, -1);
146
		$txt = preg_replace('/&(?!([a-z]+|#[0-9]+|#x[0-9a-f]+);)/i', '&', $txt, -1);
147
		return $txt;
147
		return $txt;
Line -... Line 148...
-
 
148
	}
-
 
149
	
-
 
150
	protected function supprimerSlash($doc) {
-
 
151
		if (is_string($doc)) {
-
 
152
			$doc = stripslashes($doc);
-
 
153
		} else if (is_array($doc)) {
-
 
154
			if (count($doc) > 0) {
-
 
155
				foreach ($doc as $cle => $valeur) {
-
 
156
					$doc[$cle] = $this->supprimerSlash($valeur);
-
 
157
				}
-
 
158
			}
-
 
159
		}
-
 
160
		return $doc;
148
	}
161
	}
149
	
162
	
150
	protected function initialiserModulePrincipal() {
163
	protected function initialiserModulePrincipal() {
Line 151... Line 164...
151
		$_SESSION['module_principal'] = null;
164
		$_SESSION['module_principal'] = null;