X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fprofil%2Fupdate_general.inc.php;h=374fc016aabb43d31c162e366060944dcca80beb;hb=509e6025de4089e96f8511032b55c8745919e8d1;hp=8921abc4f59f002a12cf88524b204d9c01610b0e;hpb=3b3e9d150cc36f1ac440ef897a1fea19621214ee;p=platal.git diff --git a/include/profil/update_general.inc.php b/include/profil/update_general.inc.php index 8921abc..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={?}, @@ -49,12 +49,12 @@ $globals->xdb->execute( $web, $web_pub, $freetext, $freetext_pub, $synchro_ax, - Session::getInt('uid', -1)); + 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: ?>