Subversion Repositories eFlore/Applications.cel

Rev

Rev 2770 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2770 Rev 3083
Line 8... Line 8...
8
* @copyright 2015 Tela-Botanica
8
* @copyright 2015 Tela-Botanica
9
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
9
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
10
* @version   SVN: <svn_id>
10
* @version   SVN: <svn_id>
11
*/
11
*/
Line -... Line 12...
-
 
12
 
-
 
13
/**
-
 
14
 * Migre les observations et les images d'un utilisateur, lorsqu'il change d'adresse email
12
 
15
 * (ou les migre d'un utilisateur à l'autre)
-
 
16
 * 
-
 
17
 * Utilisation : http://domain/serice:cel/Modification/?mail=ancien_email@x.fr&nouveau_mail=nouvel_email@x.fr
13
 
18
 */
Line 14... Line 19...
14
class Modification extends Cel {
19
class Modification extends Cel {
15
	
20
	
Line 20... Line 25...
20
		return $this->getElement(array());
25
		return $this->getElement(array());
21
	}
26
	}
Line 22... Line 27...
22
	
27
	
Line 23... Line -...
23
	public function getElement($uid) {
-
 
24
			
28
	public function getElement($uid) {
25
		$id_utilisateur = (isset($_GET['id_utilisateur'])) ? $_GET['id_utilisateur'] : false;
29
 
Line 26... Line 30...
26
		$mail = (isset($_GET['mail'])) ? $_GET['mail'] : false;
30
		$mail = (isset($_GET['mail'])) ? $_GET['mail'] : false;
27
		$nouveau_mail = (isset($_GET['nouveau_mail'])) ? $_GET['nouveau_mail'] : false;
31
		$nouveau_mail = (isset($_GET['nouveau_mail'])) ? $_GET['nouveau_mail'] : false;
28
		
32
		
Line 29... Line 33...
29
		if(!$mail || !$id_utilisateur) {
33
		if(!$mail) {
30
			$this->envoyer("false");
34
			$this->envoyer("false");