%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/old/plugins/editors-xtd/phocadownload/ |
Upload File : |
<?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' );
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
jimport( 'joomla.plugin.plugin' );
class plgButtonPhocaDownload extends JPlugin
{
public function __construct(& $subject, $config)
{
parent::__construct($subject, $config);
$this->loadLanguage();
}
function onDisplay($name, $asset, $author) {
$app = JFactory::getApplication();
$document = & JFactory::getDocument();
$template = $app->getTemplate();
$enableFrontend = $this->params->get('enable_frontend', 0);
if ($template != 'beez_20') {
JHTML::stylesheet( 'plugins/editors-xtd/phocadownload/assets/css/phocadownload.css' );
}
$link = 'index.php?option=com_phocadownload&view=phocadownloadlinks&tmpl=component&e_name='.$name;
JHTML::_('behavior.modal');
$button = new JObject;
$button->modal = true;
$button->class = 'btn';
$button->link = $link;
$button->text = JText::_('PLG_EDITORS-XTD_PHOCADOWNLOAD_FILE');
$button->name = 'file';
$button->options = "{handler: 'iframe', size: {x: 800, y: 500}}";
if ($enableFrontend == 0) {
if (!$app->isAdmin()) {
$button = null;
}
}
return $button;
}
}