X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxorgpage.php;h=6a626208b322c18c432f5340e6e8e1b16f3af311;hb=e43ad2a34034b6eb8414cf0ddf1e33eb19123a65;hp=f0d42ea3e4ec57acdf2fd094248474b0e8e76255;hpb=a62886091365824f04a967638dee269196c3899d;p=platal.git diff --git a/classes/xorgpage.php b/classes/xorgpage.php index f0d42ea..6a62620 100644 --- a/classes/xorgpage.php +++ b/classes/xorgpage.php @@ -1,6 +1,6 @@ changeTpl('platal/index.tpl'); + $this->addJsLink('jquery.js'); + $this->addJsLink('overlib.js'); + $this->addJsLink('secure_hash.js'); + $this->addJsLink('sha1.js'); + $this->addJsLink('wiki.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()