public function execute()
{
// call parent, this will probably add some general CSS/JS or other required files
parent::execute();
// zip extension is required for module upload
if (!extension_loaded('zlib')) {
$this->tpl->assign('zlibIsMissing', true);
}
if (!$this->isWritable()) {
// we need write rights to upload files
$this->tpl->assign('notWritable', true);
} else {
// everything allright, we can upload
$this->loadForm();
$this->validateForm();
$this->parse();
}
// display the page
$this->display();
}