X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fprofil%2Fupdate_general.inc.php;h=374fc016aabb43d31c162e366060944dcca80beb;hb=c9970cbe14b30192a51dc38727254b332a1aec54;hp=ea784a5b22097117c0b666d17cc8d3854bf38e98;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/include/profil/update_general.inc.php b/include/profil/update_general.inc.php index ea784a5..374fc01 100644 --- a/include/profil/update_general.inc.php +++ b/include/profil/update_general.inc.php @@ -1,6 +1,6 @@ 0) - $globals->xdb->execute("REPLACE INTO applis_ins SET uid= {?}, aid = {?}, type = {?}, ordre = 0", Session::getInt('uid', -1), $appli_id1, $appli_type1); + XDB::execute("REPLACE INTO applis_ins SET uid= {?}, aid = {?}, type = {?}, ordre = 0", S::v('uid', -1), $appli_id1, $appli_type1); else - $globals->xdb->execute("DELETE FROM applis_ins WHERE uid= {?} AND ordre=0", Session::getInt('uid', -1)); + XDB::execute("DELETE FROM applis_ins WHERE uid= {?} AND ordre=0", S::v('uid', -1)); if ($appli_id2>0) - $globals->xdb->execute("REPLACE INTO applis_ins SET uid= {?}, aid = {?}, type = {?}, ordre = 1", Session::getInt('uid', -1), $appli_id2, $appli_type2); + XDB::execute("REPLACE INTO applis_ins SET uid= {?}, aid = {?}, type = {?}, ordre = 1", S::v('uid', -1), $appli_id2, $appli_type2); else - $globals->xdb->execute("DELETE FROM applis_ins WHERE uid= {?} AND ordre=1", Session::getInt('uid', -1)); + XDB::execute("DELETE FROM applis_ins WHERE uid= {?} AND ordre=1", S::v('uid', -1)); if ($nationalite != $nationalite_anc || $nom != $nom_anc || $prenom != $prenom_anc) { $sql = "UPDATE auth_user_md5 SET nationalite= {?}, nom = {?}, prenom = {?} WHERE user_id= {?}"; - $globals->xdb->execute($sql, $nationalite, $nom, $prenom, Session::getInt('uid', -1)); + XDB::execute($sql, $nationalite, $nom, $prenom, S::v('uid', -1)); } -$globals->xdb->execute( +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_freetext={?}, profile_freetext_pub={?}, + profile_from_ax = {?} WHERE user_id = {?}", $nickname, $mobile, $mobile_pub, $web, $web_pub, $freetext, $freetext_pub, - Session::getInt('uid', -1)); + $synchro_ax, + S::v('uid', -1)); if ($nickname != $nickname_anc) { require_once('user.func.inc.php'); - user_reindex(Session::getInt('uid', -1)); + user_reindex(S::v('uid', -1)); } -$globals->xdb->execute("UPDATE photo SET pub = {?} WHERE uid = {?}", $photo_pub, Session::getInt('uid', -1)); +XDB::execute("UPDATE photo SET pub = {?} WHERE uid = {?}", $photo_pub, S::v('uid', -1)); // vim:set et sws=4 sts=4 sw=4: ?>