| Current Path : /proc/self/root/proc/732462/root/tmp/ |
| Current File : //proc/self/root/proc/732462/root/tmp/phpGKvLkT |
home/digilove/public_html/components/com_marketplace/views/follow/view.html.php 0000644 00000003562 15234610102 0024200 0 ustar 00 <?php
/**
* Marketplace - Component Marketplace
* ******************************************************************
*
* PHP version 7.0
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @copyright 2010 WebKul software private limited
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @version GIT:5.2
* @filesource http://store.webkul.com
* @link Technical Support: webkul.uvdesk.com
* ******************************************************************
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');
if (!class_exists('MarketplaceHelper')) {
include JPATH_ADMINISTRATOR."components/com_marketplace/helpers.marketplace.php";
}
/**
* MarketplaceViewFollow class of JViewLegacy
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @link Technical Support: webkul.uvdesk.com
*/
class MarketplaceViewFollow extends JViewLegacy
{
/**
* This is display function
*
* @param [type] $tpl var
*
* @return void
*/
public function display($tpl = null)
{
global $option;
$jinput=JFactory::getApplication()->input;
$method=$jinput->getMethod();
$sel_id=$jinput->get('sel_id', 0, 'INT');
if (!$sel_id) {
$sel_id=$jinput->get('seller_id', 0, 'INT');
}
$uid=JFactory::getUser()->id;
$isseller=MarketplaceHelper::checkseller($sel_id);
if ($sel_id && isset($isseller)) {
parent::display($tpl);
} else {
JFactory::getApplication()->enqueueMessage(
JText::_('SOMETHING_IS_WRONG'),
'error'
);
}
}
}