Вход Регистрация
Файл: system/controllers/images/actions/upload_with_preset.php
Строк: 23
<?php

class actionImagesUploadWithPreset extends cmsAction {

    public function 
__construct($controller$params = []){

        
parent::__construct($controller$params);

        
$this->request->setContext(cmsRequest::CTX_AJAX);
    }

    public function 
run($name$preset_name){

        if (!
$this->cms_user->is_logged) {
            return 
$this->cms_template->renderJSON(array(
                
'success' => false,
                
'error'   => 'auth error'
            
));
        }

        return 
$this->cms_template->renderJSON($this->uploadWithPreset($name$preset_name));

    }

}
Онлайн: 1
Реклама