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/nice2/components/com_jlexreview/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice2/components/com_jlexreview/load.php
<?php
/**
 * @package     JLex Review
 * @version     4.2.3
 * @copyright   Copyright (c) 2013-2018 JLexArt. All rights reserved
 * @license     GNU General Public License version 2 or later;
 * @author      www.jlexart.com
 */

defined ( "_JEXEC" ) or die;

require_once dirname(__FILE__) . "/bootstrap.php";

class JLexReviewLoad
{
    public static function init($title, $object, $object_id, $section_id = 0, $params = array())
    {
        $app        = JFactory::getApplication();
        $document   = JFactory::getDocument();
        $config     = JLexReviewHelperAdmin::getConfig();
        $user       = JFactory::getUser();

        // set special properties
        if (is_array($params) && count($params))
        {
            foreach ($params as $k=>$v)
            {
                $config->set($k, $v);
            }
        }

        $lang = JFactory::getLanguage();
        $extension = "com_jlexreview";
        $lang->load($extension, JPATH_BASE);
        
        require_once dirname(__FILE__) . "/controllers/reviews.php";
        $controller = new JLexReviewControllerReviews();

        $controller->addModelPath( dirname(__FILE__) . "/models", "JLexReview");
        $controller->addModelPath( JREVIEW_ADMIN . "/models", "JLexReview");
        $controller->addViewPath( dirname(__FILE__) . "/views");

        $controller->setParam("object", $object);
        $controller->setParam("object_id", $object_id);
        $controller->setParam("object_section", $section_id);
        $controller->setParam("object_name", $title);

        return $controller->display();
    }

    public static function profile($uid, $avatar=false)
    {
        $lang = JFactory::getLanguage();
        $extension = "com_jlexreview";
        $lang->load($extension, JPATH_BASE);
        
        require_once dirname(__FILE__) . "/controllers/profile.php";
        $controller = new JLexReviewControllerProfile();

        $controller->addModelPath( dirname(__FILE__) . "/models", "JLexReview");
        $controller->addViewPath( dirname(__FILE__) . "/views");

        $controller->setParam("uid", $uid);
        $controller->setParam("avatar", $avatar);

        return $controller->render();
    }

    /**
     * Show summary small stars
     *
     * @param string $object            
     * @param int $object_id            
     * @param string $object_key            
     * @param string $reviewCount
     *            dest to page
     * @param bool $url           
     * @return string HTML code to insert
     *        
     * @since 2.0.0
     */
    public static function quick_init($object, $object_id, $ignore_it = '', $reviewCount = true, $url = '', $section_id=0)
    {
        static $loaded = false;

        if (!$loaded)
        {
            $config = JLexReviewHelperAdmin::getConfig ();

            $loaded = true;
            $css = JUri::root(true) . "/media/jlexreview/assets/" . $config->def ("theme","default") . "_style.min.css?v=5.1.3";

            $doc = JFactory::getDocument();
            $doc->addStyleSheet($css);

            JHtml::_('jquery.framework');
            
            $doc->addScript( JUri::root(true) . "/media/jlexreview/assets/script.min.js?v=5.9.3");
            
            $baseUrl = JUri::root(true) . '/index.php?option=com_jlexreview';
            $doc->addScriptDeclaration('var baseUrl="'. $baseUrl .'";');
        }

        $classSuf = $object . "_" . $object_id;
        $html = '<div class="jreview-quick-star '.$classSuf.'" data-object="'. $object .'" data-id="'. $object_id .'"';
            if (!empty($url))
            {
                $html.= ' data-url="'. htmlspecialchars($url) .'"';
            }

            if (!$reviewCount)
            {
                $html.= ' data-count="0"';
            }

            $html.= ' data-section="'.$section_id.'"';

        $html.= '></div>';

        return $html;
    }

    /**
     * Show summary small stars / Apply for static code
     *
     * @param string $object            
     * @param int $object_id            
     * @param string $object_key            
     * @param string $url
     *            dest to page
     * @param bool $hover            
     * @return string HTML code to insert
     *        
     * @since 2.0.0
     */
    public static function quick_init_alone($object, $object_id)
    {}
}

Anon7 - 2022
AnonSec Team