Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 470 Rev 508
Line 50... Line 50...
50
		}
50
		}
51
		return $tableau;
51
		return $tableau;
52
	}
52
	}
Line 53... Line 53...
53
	
53
	
54
	protected function nettoyerTexte($txt) {
54
	protected function nettoyerTexte($txt) {
55
		$txt = preg_replace('/&(?!(a-z+|#0-9+|#x0-9a-f+);)/i', '&', $txt);
55
		$txt = preg_replace('/&(?!([a-z]+|#[0-9]+|#x[0-9][a-f]+);)/i', '&', $txt);
56
		$txt = preg_replace('/000null/i', '', $txt);
56
		$txt = preg_replace('/^(?:000null|null)$/i', '', $txt);
57
		return $txt;
57
		return $txt;
Line -... Line 58...
-
 
58
	}
-
 
59
	
-
 
60
	protected function etreVide($valeur) {
-
 
61
		$vide = false;
-
 
62
		if ($valeur == '' || $valeur == 'null' || $valeur == '0') {
-
 
63
			$vide = true;
-
 
64
		}
-
 
65
		return $vide;
58
	}
66
	}
59
	
67
	
Line 60... Line 68...
60
	//+----------------------------------------------------------------------------------------------------------------+
68
	//+----------------------------------------------------------------------------------------------------------------+
61
	// GESTION de l'ENVOIE au NAVIGATEUR
69
	// GESTION de l'ENVOIE au NAVIGATEUR