public function __construct() { parent::__construct(); // Set the default page $this->assign('title', ''); $this->changeTpl('500.tpl'); }
public function __construct() { global $globals; parent::__construct(); $this->register_function('list_all_my_groups', 'list_all_my_groups'); $this->register_modifier('cat_pp', 'cat_pp'); $this->assign('it_is_xnet', true); global $globals; $this->assign('is_logged', S::logged()); if ($globals->asso('id')) { $this->assign('asso', $globals->asso()); $this->setType($globals->asso('cat')); $this->assign('is_admin', may_update()); $this->assign('is_member', is_member()); } if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) { $this->addJsLink('json2.js'); } $this->addJsLink('jquery.xorg.js'); $this->addJsLink('overlib.js'); $this->addJsLink('core.js'); $this->addJsLink('xorg.js'); if ($globals->core->sentry_js_dsn) { $this->addJsLink('raven.min.js'); } $this->setTitle('Les associations polytechniciennes'); }
public function __construct() { global $globals; parent::__construct(); // Set the default page $this->changeTpl('platal/index.tpl'); if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) { $this->addJsLink('json2.js'); } $this->addJsLink('jquery.xorg.js'); $this->addJsLink('overlib.js'); $this->addJsLink('core.js'); $this->addJsLink('xorg.js'); if ($globals->core->sentry_js_dsn) { $this->addJsLink('raven.min.js'); } $this->setTitle('le site des élèves et anciens élèves de l\'École polytechnique'); if (S::logged() && S::user()->checkPerms('admin')) { $types = array(S::user()->type); $perms = DirEnum::getOptions(DirEnum::ACCOUNTTYPES); ksort($perms); foreach ($perms as $type => $perm) { if (!empty($perm) && $type != $types[0]) { $types[] = $type; } } $this->assign('account_types_list', $types); $skins = DirEnum::getOptions(DirEnum::SKINS); asort($skins); $this->assign('skin_list', $skins); } }