| Current Path : /home/megadansyp/www/components/com_phocadownload/views/phocadownloadlinkytb/ |
| Current File : /home/megadansyp/www/components/com_phocadownload/views/phocadownloadlinkytb/view.html.php |
<?php
/*
* @package Joomla 1.5
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view' );
phocadownloadimport('phocadownload.render.renderadminviews');
class phocaDownloadViewphocaDownloadLinkYtb extends JViewLegacy
{
protected $t;
function display($tpl = null) {
$app = JFactory::getApplication();
$document = JFactory::getDocument();
$uri = \Joomla\CMS\Uri\Uri::getInstance();
$this->r = new PhocaDownloadRenderAdminViews();
$this->t = PhocaDownloadUtils::setVars('linkytb');
//Frontend Changes
$tUri = '';
if (!$app->isClient('administrator')) {
$tUri = JURI::base();
}
JHTML::stylesheet( 'media/com_phocadownload/css/administrator/phocadownload.css' );
$eName = $app->input->get('e_name');
$this->t['ename'] = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
$this->t['backlink'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinks&tmpl=component&e_name='.$this->t['ename'];
parent::display($tpl);
}
}
?>