| 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/montpellier/plugins/kunena/community/ |
Upload File : |
<?php
/**
* Kunena Plugin
*
* @package Kunena.Plugins
* @subpackage Community
*
* @copyright Copyright (C) 2008 - 2025 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
namespace Kunena\Forum\Plugin\Kunena\Community;
\defined('_JEXEC') or die();
use Joomla\CMS\Component\ComponentHelper;
/**
* Class KunenaLoginCommunity
*
* @since Kunena 6.0
*/
class KunenaLoginCommunity
{
/**
* @var null
* @since Kunena 6.0
*/
protected $params = null;
/**
* KunenaLoginCommunity constructor.
*
* @param object $params params
*
* @since Kunena 6.0
*/
public function __construct(object $params)
{
$this->params = $params;
}
/**
* @return string
*
* @since Kunena 6.0
*/
public function getLoginURL(): string
{
return \CRoute::_('index.php?option=com_community&view=frontpage');
}
/**
* @return string
*
* @since Kunena 6.0
*/
public function getLogoutURL(): string
{
return \CRoute::_('index.php?option=com_community&view=frontpage');
}
/**
* @return string
* @since Kunena 6.0
*/
public function getRegistrationURL()
{
$usersConfig = ComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) {
return \CRoute::_('index.php?option=com_community&view=register');
}
//return;
}
}