<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2009 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function smarty_insert_getName()
{
- global $globals;
- $uid = Cookie::get('ORGuid', -1);
+ $uid = Cookie::v('uid', -1);
if ($uid < 0) {
return "";
}
- $res = $globals->xdb->query("SELECT prenom FROM auth_user_md5 WHERE user_id={?}", $uid);
+ $res = XDB::query("SELECT prenom FROM auth_user_md5 WHERE user_id={?}", $uid);
return $res->fetchOneCell();
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>