'referent' => $this->make_hook('referent', AUTH_COOKIE),
'referent/search' => $this->make_hook('ref_search', AUTH_COOKIE),
- 'trombi' => $this->make_hook('trombi', AUTH_COOKIE),
'groupes-x' => $this->make_hook('xnet', AUTH_COOKIE),
'vcard' => $this->make_hook('vcard', AUTH_COOKIE),
$new = Env::v('modif') == 'new';
$user = get_user_details($login, S::v('uid'), $view);
$user['freetext'] = MiniWiki::WikiToHTML($user['freetext']);
+ $user['cv'] = MiniWiki::WikiToHTML($user['cv']);
$title = $user['prenom'] . ' ' . empty($user['nom_usage']) ? $user['nom'] : $user['nom_usage'];
$page->assign('xorg_title', $title);
$page->addCssLink('profil.css');
$page->assign('xorg_title', 'Polytechnique.org - Mon Profil');
- require_once 'tabs.inc.php';
+ require_once dirname(__FILE__) . '/profile/tabs.inc.php';
require_once 'profil.func.inc.php';
require_once 'synchro_ax.inc.php';
}
}
- function handler_trombi(&$page, $promo = null)
- {
- $page->changeTpl('profile/trombipromo.tpl');
- $page->assign('xorg_title', 'Polytechnique.org - Trombi Promo');
-
- if (is_null($promo)) {
- return;
- }
-
- $this->promo = $promo = intval($promo);
-
- if ($promo >= 1900 && ($promo < intval(date('Y')) || ($promo == intval(date('Y')) && intval(date('m')) >= 9))
- || ($promo == -1 && S::has_perms()))
- {
- $trombi = new Trombi(array($this, '_trombi_getlist'));
- $trombi->hidePromo();
- $trombi->setAdmin();
- $page->assign_by_ref('trombi', $trombi);
- } else {
- $page->trig('Promotion incorrecte (saisir au format YYYY). Recommence.');
- }
- }
-
function handler_xnet(&$page)
{
$page->changeTpl('profile/groupesx.tpl');