Subversion Repositories Applications.annuaire

Rev

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

Rev 143 Rev 148
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
		$erreurs = array();
30
		$erreurs = array();
31
 
31
 
-
 
32
		$this->chargerModele('AnnuaireModele');
-
 
33
		$tableau_champs_obligatoire = $this->AnnuaireModele->obtenirChampsObligatoires($id_annuaire);
-
 
34
		
-
 
35
		if(!$tableau_champs_obligatoire) {
Line 32... Line 36...
32
		$this->chargerModele('AnnuaireModele');
36
			$tableau_champs_obligatoire = array();
Line 33... Line 37...
33
		$tableau_champs_obligatoire = $this->AnnuaireModele->obtenirChampsObligatoires($id_annuaire);
37
		}
34
 
38
 
Line 471... Line 475...
471
		} else {
475
		} else {
472
			return md5($pass);
476
			return md5($pass);
473
		}
477
		}
474
	}
478
	}
Line -... Line 479...
-
 
479
	
-
 
480
	static function convertirTailleFichier($taille) {
-
 
481
		if(!$taille) {
-
 
482
			return "0 Mo";
-
 
483
		}
-
 
484
		
-
 
485
		return number_format($taille*(1/1024)*(1/1024), 0).' Mo';
-
 
486
	}
475
	
487
	
Line 476... Line 488...
476
	public function genererMotDePasse() {
488
	public function genererMotDePasse() {
477
		
489