Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 416 Rev 474
Line 265... Line 265...
265
	
265
	
266
	protected function encoderMotCle($mot_cle) {
266
	protected function encoderMotCle($mot_cle) {
267
		return md5(mb_strtolower($mot_cle));
267
		return md5(mb_strtolower($mot_cle));
Line -... Line 268...
-
 
268
	}
-
 
269
	
-
 
270
	protected function tronquerCourriel($courriel) {
-
 
271
		$courriel = preg_replace('/[^@]+$/i', '...', $courriel);
-
 
272
		return $courriel;
-
 
273
	}
-
 
274
	
-
 
275
	protected function nettoyerTableau($tableau) {
-
 
276
		foreach ($tableau as $cle => $valeur) {
-
 
277
			if (is_array($valeur)) {
-
 
278
				$valeur = $this->nettoyerTableau($valeur);
-
 
279
			} else {
-
 
280
				$valeur = $this->nettoyerTexte($valeur);
-
 
281
			}
-
 
282
			$tableau[$cle] = $valeur;
-
 
283
		}
-
 
284
		return $tableau;
-
 
285
	}
-
 
286
	
-
 
287
	protected function nettoyerTexte($txt) {
-
 
288
		$txt = preg_replace('/&(?!(a-z+|#0-9+|#x0-9a-f+);)/i', '&', $txt);
-
 
289
		$txt = preg_replace('/000null/i', '', $txt);
-
 
290
		return $txt;
268
	}
291
	}
269
	
292
	
Line 270... Line 293...
270
	//+----------------------------------------------------------------------------------------------------------------+
293
	//+----------------------------------------------------------------------------------------------------------------+
271
	// GESTION DES SQUELETTES PHP
294
	// GESTION DES SQUELETTES PHP