<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// Set the default page
$this->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()