AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.94
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/lyon/administrator/components/com_itemrating/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/lyon/administrator/components/com_itemrating/helpers/itemrating.php
<?php

/**
 * @version     2.1.6
 * @package     com_itemrating
 * @copyright   Copyright (C) 2014. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Joomunited <contact@joomunited.com> - www.joomunited.com
 */
// No direct access
defined('_JEXEC') or die;

/**
 * Itemrating helper.
 */
class ItemratingBackendHelper {
	
	
	protected static $actions;

    /**
     * Configure the Linkbar.
     */
    public static function addSubmenu($vName = '') {
        		JHtmlSidebar::addEntry(
			JText::_('COM_ITEMRATING_TITLE_ITEMS'),
			'index.php?option=com_itemrating&view=items',
			$vName == 'items'
		);
			JHtmlSidebar::addEntry(
			JText::_('COM_ITEMRATING_TITLE_GROUPS'),
			'index.php?option=com_itemrating&view=groups',
			$vName == 'groups'
		);
			JHtmlSidebar::addEntry(
			JText::_('COM_ITEMRATING_TITLE_REPORTS'),
			'index.php?option=com_itemrating&view=reports',
			$vName == 'reports'
		);

    }

    /**
     * Gets a list of the actions that can be performed.
     *
     * @return	JObject
     * @since	1.6
     */
    public static function getActions() {
        if (empty(self::$actions))
		{
			$user = JFactory::getUser();
			self::$actions = new JObject;

			$actions = JHelperContent::getActions('com_itemrating');

			foreach ($actions as $name=>$action)
			{
				self::$actions->set($name, $user->authorise($name, 'com_itemrating'));
			}
		}

		return self::$actions;
    }
	 public static function getSyncButton() {
			
	  $db = JFactory::getDBO();
	$query = $db->getQuery(true);
        $query->select('count(*)');
        $query->from('#__itemrating_itemdata as r');
		$query->join('LEFT','#__itemrating_item as i ON r.rating_id = i.id');
        $query->where('r.rating_value=""');
		$query->where('i.type!=0');
	  	try{
	  $db->setQuery($query);
		}catch (Exception $e)
		{
			echo $e->getMessage();
            exit;
        }
      $count = $db->loadResult();
		if($count!=0)
		{
			$html="<a href='index.php?option=com_itemrating&task=sync' class='btn btn-primary'>Click here</a> to Sync the data";
			JFactory::getApplication()->enqueueMessage($html, 'error');
		}
		return ;
	 }
	  public static function loadLanguage() {
            $lang = JFactory::getLanguage();
            $lang->load('com_itemrating',JPATH_ADMINISTRATOR.'/components/com_itemrating',null, true);
            $lang->load('com_itemrating.override',JPATH_ADMINISTRATOR.'/components/com_itemrating',null, true );
            $lang->load('com_itemrating.sys',JPATH_ADMINISTRATOR.'/components/com_itemrating',null, true );
        }
		public static function checkCms()
			{
       if (version_compare(JVERSION, '4.0', 'ge'))
				{
					return true;
                }
            else
            {
            return false;
            }
        
        }
}

Anon7 - 2022
AnonSec Team