AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
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/libraries/kunena/src/Integration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/libraries/kunena/src/Integration/KunenaProfile.php
<?php

/**
 * Kunena Component
 *
 * @package       Kunena.Framework
 * @subpackage    Integration
 *
 * @copyright     Copyright (C) 2008 - @currentyear@ Kunena Team. All rights reserved.
 * @license       https://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link          https://www.kunena.org
 **/

namespace Kunena\Forum\Libraries\Integration;

\defined('_JEXEC') or die();

use Exception;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
use Kunena\Forum\Libraries\Factory\KunenaFactory;
use Kunena\Forum\Libraries\Layout\KunenaLayout;
use Kunena\Forum\Libraries\Route\KunenaRoute;

/**
 * Class KunenaProfile
 *
 * @since   Kunena 6.0
 */
class KunenaProfile
{
    /**
     * @var     boolean
     * @since   Kunena 6.0
     */
    protected static $instance = false;

    /**
     * @var boolean
     * @since Kunena 5.2
     */
    public $enabled = true;

    /**
     * @param   null  $integration  integration
     *
     * @return  boolean|KunenaProfile
     *
     * @throws  Exception
     * @since   Kunena 6.0
     */
    public static function getInstance($integration = null)
    {
        if (self::$instance === false) {
            PluginHelper::importPlugin('kunena');

            $classes = Factory::getApplication()->triggerEvent('onKunenaGetProfile');

            foreach ($classes as $class) {
                if (!\is_object($class)) {
                    continue;
                }

                self::$instance = $class;
                break;
            }

            if (!self::$instance) {
                self::$instance          = new self();
                self::$instance->enabled = false;
            }
        }

        return self::$instance;
    }

    /**
     * @param   int  $limit  limit
     *
     * @return  array
     *
     * @throws  Exception
     * @since   Kunena 6.0
     */
    public function getTopHits(int $limit = 0): array
    {
        if (!$limit) {
            $limit = KunenaFactory::getConfig()->popUserCount;
        }

        return (array) $this->getTopHitsArray($limit);
    }

    /**
     * @param   int  $limit  limit
     *
     * @return  array
     *
     * @since   Kunena 6.0
     */
    protected function getTopHitsArray(int $limit = 0): array
    {
        return [];
    }

    /**
     * @param   string  $action  action
     * @param   bool    $xhtml   xhtml
     *
     * @return string
     *
     * @since   Kunena 5.0
     * @throws \Exception
     */
    public function getStatisticsURL(string $action = '', bool $xhtml = true): string
    {
        $config = KunenaFactory::getConfig();
        $my     = Factory::getApplication()->getIdentity();

        if ($config->statsLinkAllowed == 0 && $my->id == 0) {
            return false;
        }

        return KunenaRoute::_('index.php?option=com_kunena&view=statistics' . $action, $xhtml);
    }

    /**
     * @param   string  $action  action
     * @param   bool    $xhtml   xhtml
     *
     * @return string
     *
     * @since   Kunena 5.0
     */
    public function getUserListURL(string $action = '', bool $xhtml = true): string
    {
        return '';
    }

    /**
     * @param   int     $userid     userid
     * @param   string  $task       task
     * @param   bool    $xhtml      xhtml
     * @param   string  $avatarTab  avatartab
     *
     * @return  boolean|void
     *
     * @since   Kunena 5.0
     */
    public function getProfileURL(int $userid, $task = '', bool $xhtml = true, string $avatarTab = '')
    {
    }

    /**
     * @param   KunenaLayout  $view    view
     * @param   object        $params  params
     *
     * @return  void
     *
     * @since   Kunena 5.0
     */
    public function showProfile(KunenaLayout $view, object $params)
    {
    }

    /**
     * @param   int   $userid  userid
     * @param   bool  $xhtml   xhtml
     *
     * @return string
     *
     * @since   Kunena 5.0
     */
    public function getEditProfileURL(int $userid, bool $xhtml = true): string
    {
        return '';
    }
}

Anon7 - 2022
AnonSec Team