+ if ($this->changed['nationalite'] || $this->changed['nom'] || $this->changed['prenom']
+ || $this->changed['naissance']) {
+ XDB::execute("UPDATE auth_user_md5
+ SET nationalite = {?}, nom={?}, prenom={?}, naissance={?}
+ WHERE user_id = {?}",
+ $this->values['nationalite'], $this->values['nom'], $this->values['prenom'],
+ preg_replace('@(\d{2})/(\d{2})/(\d{4})@', '\3-\2-\1', $this->values['naissance']),
+ S::v('uid'));
+ }
+ if ($this->changed['nick'] || $this->changed['mobile'] || $this->changed['mobile_pub']
+ || $this->changed['web'] || $this->changed['web_pub'] || $this->changed['freetext']
+ || $this->changed['freetext_pub'] || $this->changed['synchro_ax']) {
+ XDB::execute("UPDATE auth_user_quick
+ SET profile_nick= {?}, profile_mobile={?}, profile_mobile_pub={?},
+ profile_web={?}, profile_web_pub={?}, profile_freetext={?},
+ profile_freetext_pub={?}, profile_from_ax = {?}
+ WHERE user_id = {?}",
+ $this->values['nick'], $this->values['mobile'], $this->values['mobile_pub'],
+ $this->values['web'], $this->values['web_pub'],
+ $this->values['freetext'], $this->values['freetext_pub'],
+ $this->values['synchro_ax'], S::v('uid'));
+ }
+ if ($this->changed['nick']) {
+ require_once('user.func.inc.php');
+ user_reindex(S::v('uid'));
+ }
+ if ($this->changed['photo_pub']) {
+ XDB::execute("UPDATE photo
+ SET pub = {?}
+ WHERE uid = {?}",
+ $this->values['photo_pub'], S::v('uid'));
+ }