X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxorgpage.php;h=83824d898be119f724a8acc603bc92124c94b3ad;hb=9170f4f97464436d1a2cd16031d515f44a5ff2d7;hp=ad73b1d8194cb438053f33c7eefa9cc2ea4bd4c1;hpb=e85e121558a37e06cbf2099843588a6e5e5c267a;p=platal.git diff --git a/classes/xorgpage.php b/classes/xorgpage.php index ad73b1d..83824d8 100644 --- a/classes/xorgpage.php +++ b/classes/xorgpage.php @@ -1,6 +1,6 @@ changeTpl('platal/index.tpl'); + $this->addJsLink('jquery.xorg.js'); + $this->addJsLink('overlib.js'); + $this->addJsLink('core.js'); $this->addJsLink('xorg.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); + } } public function run()