git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-392
require_once('tabs.inc.php');
require_once('profil.func.inc.php');
-
if (Post::has('register_from_ax_question')) {
$globals->xdb->query('UPDATE auth_user_quick SET profile_from_ax = 1 WHERE user_id = {?}', Session::getInt('uid'));
+ require_once('synchro_ax.inc.php');
+ copy_from_ax(Session::getInt('uid'));
}
//on met a jour $opened_tab et $new_tab qui sont le tab du POST et le tab demande
return 1;
reset($adresses);
$i = 0;
+ $adrid_array = Array();
foreach($adresses as $numero => $adr){
$adrid_array[$i] = $numero;
$i++;
}
}
+function copy_from_ax($uid)
+{
+ $uax = get_user_ax($uid);
+ import_from_ax($uax, true, true, null, array_keys($uax['adr']), null, array_keys($uax['adr_pro']), true);
+}
+
// vim:set et sw=4 sts=4 sws=4:
?>