xdb->query($sql, Session::getInt('uid', -1)); $section = $result->fetchOneCell(); replace_ifset($section,'section'); /************* gestion des binets ************/ if (Env::has('binet_op')) { // retrait binet if( (Env::get('binet_op', '')=='retirer')&&(Env::getInt('binet_id', 0) != 0)) { $globals->xdb->execute("DELETE FROM binets_ins WHERE user_id = {?} AND binet_id = {?}", Session::getInt('uid', -1), Env::getInt('binet_id', -1)); } // ajout binet if (Env::get('binet_op')=="ajouter" && (Env::getInt('binet_id', 0) != 0)) { $globals->xdb->execute("INSERT INTO binets_ins (user_id,binet_id) VALUES({?}, {?})", Session::getInt('uid', -1), Env::getInt('binet_id', -1)); } } /************* gestion des groupes X ************/ if (Env::has('groupex_op')) { // retrait groupe X if (Env::get('groupex_op')=="retirer" && (Env::getInt('groupex_id', 0) != 0)) { $globals->xdb->execute("DELETE FROM groupesx_ins WHERE guid = {?} AND gid = {?}", Session::getInt('uid', -1), Env::getInt('groupex_id', -1)); } // ajout groupe X if (Env::get('groupex_op')=="ajouter" && (Env::getInt('groupex_id', 0) != 0)) { $globals->xdb->execute("INSERT INTO groupesx_ins (guid, gid) VALUES ({?}, {?})", Session::getInt('uid', -1), Env::getInt('groupex_id', -1)); } } ?>