OpenCart 🇺🇦

Схема

public mixed index ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

$this->language->load('common/filemanager');

$this->data['title'] = $this->language->get('heading_title');

if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
	$this->data['base'] = HTTPS_SERVER;
} else {
	$this->data['base'] = HTTP_SERVER;
}

$this->data['entry_folder'] = $this->language->get('entry_folder');
$this->data['entry_move'] = $this->language->get('entry_move');
$this->data['entry_copy'] = $this->language->get('entry_copy');
$this->data['entry_rename'] = $this->language->get('entry_rename');

$this->data['button_folder'] = $this->language->get('button_folder');
$this->data['button_delete'] = $this->language->get('button_delete');
$this->data['button_move'] = $this->language->get('button_move');
$this->data['button_copy'] = $this->language->get('button_copy');
$this->data['button_rename'] = $this->language->get('button_rename');
$this->data['button_upload'] = $this->language->get('button_upload');
$this->data['button_refresh'] = $this->language->get('button_refresh');
$this->data['button_submit'] = $this->language->get('button_submit');

$this->data['error_select'] = $this->language->get('error_select');
$this->data['error_directory'] = $this->language->get('error_directory');

$this->data['token'] = $this->session->data['token'];

$this->data['directory'] = HTTP_CATALOG . 'image/data/';

$this->load->model('tool/image');

$this->data['no_image'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);

if (isset($this->request->get['field'])) {
	$this->data['field'] = $this->request->get['field'];
} else {
	$this->data['field'] = '';
}

if (isset($this->request->get['CKEditorFuncNum'])) {
	$this->data['fckeditor'] = $this->request->get['CKEditorFuncNum'];
} else {
	$this->data['fckeditor'] = false;
}

$this->template = 'common/filemanager.tpl';

$this->response->setOutput($this->render());