From: Stéphane Jacob Date: Sat, 11 Apr 2009 15:53:40 +0000 (+0200) Subject: Removes AX synchronisation from profile. X-Git-Tag: xorg/1.0.0~332^2~313^2~24 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fb5a54cbdf4317488bc46c804e0df964c007eb4e;p=platal.git Removes AX synchronisation from profile. --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 33e9915..4fd43dc 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -376,8 +376,6 @@ class ProfileGeneral extends ProfilePage = $this->settings['yourself'] = $this->settings['promo'] = null; - $this->settings['synchro_ax'] - = new ProfileBool(); $this->settings['email_directory'] = new ProfileEmail(); $this->settings['email_directory_new'] @@ -399,7 +397,7 @@ class ProfileGeneral extends ProfilePage t.display_tel as mobile, t.pub as mobile_pub, d.email_directory as email_directory, q.profile_freetext as freetext, q.profile_freetext_pub as freetext_pub, - q.profile_from_ax as synchro_ax, u.matricule_ax, p.yourself + u.matricule_ax, p.yourself FROM auth_user_md5 AS u INNER JOIN auth_user_quick AS q ON (u.user_id = q.user_id) INNER JOIN profile_display AS p ON (p.pid = u.user_id) @@ -453,12 +451,11 @@ class ProfileGeneral extends ProfilePage preg_replace('@(\d{2})/(\d{2})/(\d{4})@', '\3-\2-\1', $this->values['naissance']), S::v('uid')); } - if ($this->changed['freetext'] || $this->changed['freetext_pub'] || $this->changed['synchro_ax']) { + if ($this->changed['freetext'] || $this->changed['freetext_pub']) { XDB::execute("UPDATE auth_user_quick - SET profile_freetext={?}, profile_freetext_pub={?}, profile_from_ax = {?} + SET profile_freetext={?}, profile_freetext_pub={?} WHERE user_id = {?}", - $this->values['freetext'], $this->values['freetext_pub'], - $this->values['synchro_ax'], S::v('uid')); + $this->values['freetext'], $this->values['freetext_pub'], S::v('uid')); } if ($this->changed['email_directory']) { $new_email = ($this->values['email_directory'] == "new@example.org") ? diff --git a/templates/profile/general.tpl b/templates/profile/general.tpl index e517008..799004a 100644 --- a/templates/profile/general.tpl +++ b/templates/profile/general.tpl @@ -184,39 +184,6 @@ -{if !$no_private_key} - - - - - - - - - - -
- Synchronisation avec l'AX -
- - {icon name="flag_orange" title="transmis à l'AX"} - - Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques. - -
-

- Le service annuaire de l'AX met à jour l'annuaire papier à partir des informations que tu lui fournis. Tu peux choisir ici d'envoyer directement les données de ta fiche Polytechnique.org vers ta fiche AX. -

-

- L'opération de synchronisation prend en compte toutes les informations que tu as marquées comme transmises à l'AX (en orange ou en vert). Elle peut alors effacer, modifier ou rajouter des informations sur ta fiche AX selon ce qui s'y trouve déjà. -

-

- -

-
-{/if} -