X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxorgpage.php;h=3c5cc1c4fd2799804f2334b837c700de3fbb4675;hb=20b087ff2e4bb918f601a9bcc2c67d1fbc5b2231;hp=ad73b1d8194cb438053f33c7eefa9cc2ea4bd4c1;hpb=c3c43c0ebe734e2b43b5d5fdb6010d08358bc34b;p=platal.git diff --git a/classes/xorgpage.php b/classes/xorgpage.php index ad73b1d..3c5cc1c 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::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); + } } public function run()