X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fprofil.php;h=d8455df286409c43a2e562e8015a7c546145f0e2;hb=014c846464523ca58669146df64d2ac01957c951;hp=8a968db8ee2c4fae18fdb91944b8422781782e09;hpb=d9a33f98749460b66f1d282a29579dce540a459c;p=platal.git diff --git a/htdocs/profil.php b/htdocs/profil.php index 8a968db..d8455df 100644 --- a/htdocs/profil.php +++ b/htdocs/profil.php @@ -1,6 +1,6 @@ xdb->query('UPDATE auth_user_quick SET profile_from_ax = 1 WHERE user_id = {?}', Session::getInt('uid')); +} + +if (Env::get('synchro_ax') == 'confirm') { require_once('synchro_ax.inc.php'); - copy_from_ax(Session::getInt('uid')); + ax_synchronize(Session::get('bestalias'), Session::getInt('uid')); + $page->trig('Ton profil a été synchronisé avec celui du site polytechniciens.com'); } //on met a jour $opened_tab et $new_tab qui sont le tab du POST et le tab demande