function _add_rss_link(&$page)
{
- if (!Session::has('core_rss_hash')) {
+ if (!S::has('core_rss_hash')) {
return;
}
$page->assign('xorg_rss',
array('title' => 'Polytechnique.org :: Carnet',
- 'href' => '/carnet/rss/'.Session::get('forlife')
- .'/'.Session::get('core_rss_hash').'/rss.xml')
+ 'href' => '/carnet/rss/'.S::v('forlife')
+ .'/'.S::v('core_rss_hash').'/rss.xml')
);
}
require_once 'notifs.inc.php';
$page->assign('now',date('YmdHis'));
- $notifs = new Notifs(Session::getInt('uid'), true);
+ $notifs = new Notifs(S::v('uid'), true);
$page->assign('notifs', $notifs);
$page->assign('today', date('Y-m-d'));
require_once 'notifs.inc.php';
- $watch = new Watch(Session::getInt('uid'));
+ $watch = new Watch(S::v('uid'));
$res = XDB::query("SELECT promo_sortie
FROM auth_user_md5
WHERE user_id = {?}",
- Session::getInt('uid', -1));
+ S::v('uid', -1));
$promo_sortie = $res->fetchOneCell();
$page->assign('promo_sortie', $promo_sortie);
}
function _get_list($offset, $limit) {
- $uid = Session::getInt('uid');
+ $uid = S::v('uid');
$res = XDB::query("SELECT COUNT(*) FROM contacts WHERE uid = {?}", $uid);
$total = $res->fetchOneCell();
require_once("applis.func.inc.php");
$page->assign('xorg_title','Polytechnique.org - Mes contacts');
- $uid = Session::getInt('uid');
+ $uid = S::v('uid');
$user = Env::get('user');
switch (Env::get('action')) {
$sql .= ' ORDER BY u.nom, u.prenom, u.promo';
}
- $citer = XDB::iterRow($sql, Session::getInt('uid'));
+ $citer = XDB::iterRow($sql, S::v('uid'));
$pdf = new ContactsPDF();
while (list($alias) = $citer->next()) {