// Norm on controllers

This commit is contained in:
rMalie
2011-09-30 13:50:55 +00:00
parent 8d19f130d7
commit f65df2f2ae
38 changed files with 252 additions and 272 deletions

View File

@@ -27,18 +27,14 @@
class GetFileControllerCore extends FrontController
{
/**
* Assign template vars related to page content
* @see FrontController::process()
*/
public function process()
{
$this->displayHeader(false);
$this->displayFooter(false);
protected $display_header = false;
protected $display_footer = false;
public function postProcess()
{
if (isset($this->context->employee) && $this->context->employee->isLoggedBack() && Tools::getValue('file'))
{
/* Admin can directly access to file */
// Admin can directly access to file
$filename = Tools::getValue('file');
if (!Validate::isSha1($filename))
die(Tools::displayError());