<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2006 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-$uid = Session::getInt('uid');
+$uid = S::v('uid');
-$res = $globals->xdb->query(
+$res = XDB::query(
"SELECT text,id
FROM binets_ins, binets_def
WHERE binets_def.id=binets_ins.binet_id AND user_id={?}", $uid);
$page->assign('binets', $res->fetchAllAssoc());
-$res = $globals->xdb->query(
+$res = XDB::query(
"SELECT text,id
FROM groupesx_ins, groupesx_def
WHERE groupesx_def.id=groupesx_ins.gid AND guid={?}", $uid);