<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$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')) {
+ if (S::logged() && S::user()->checkPerms('admin')) {
$types = array(S::user()->type);
$perms = DirEnum::getOptions(DirEnum::ACCOUNTTYPES);
ksort($perms);
}
}
$this->assign('account_types_list', $types);
+
+ $skins = DirEnum::getOptions(DirEnum::SKINS);
+ asort($skins);
+ $this->assign('skin_list', $skins);
}
}