Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 416 Rev 474
Line 347... Line 347...
347
		$titre = $this->nettoyerTexte($titre);
347
		$titre = $this->nettoyerTexte($titre);
348
		return $titre;
348
		return $titre;
349
	}
349
	}
Line 350... Line 350...
350
	
350
	
351
	private function creerAuteur($courriel) {
351
	private function creerAuteur($courriel) {
352
		$auteur = ($this->etreFluxAdmin()) ? $courriel : $this->traiterCourriel($courriel);
352
		$auteur = ($this->etreFluxAdmin()) ? $courriel : $this->tronquerCourriel($courriel);
353
		return $auteur;
353
		return $auteur;
Line 354... Line -...
354
	}
-
 
355
	
-
 
356
	private function traiterCourriel($courriel) {
-
 
357
		$courriel = preg_replace('/[^@]+$/i', '...', $courriel);
-
 
358
		return $courriel;
-
 
359
	}
-
 
360
	
-
 
361
	private function nettoyerTexte($txt) {
-
 
362
		$txt = preg_replace('/&(?!(a-z+|#0-9+|#x0-9a-f+);)/i', '&', $txt);
-
 
363
		$txt = preg_replace('/000null/i', '', $txt);
-
 
364
		return $txt;
-
 
365
	}
354
	}
366
	
355
	
367
	private function creerGuidItem($element) {
356
	private function creerGuidItem($element) {
368
		$guid = sprintf($this->config['settings']['guidObsTpl'], 'obs'.$element['id']);
357
		$guid = sprintf($this->config['settings']['guidObsTpl'], 'obs'.$element['id']);