| 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/www/cj79373/administrator/components/com_sendinblue/controllers/ |
Upload File : |
<?php
/**
* @package Sendinblue
* @subpackage chat.php
* @version 1.0.9
*
* @author Branislav Gligorov <branislav.gligorov@itsbg.eu>
* @copyright Copyright (C) 2018 Sendinblue, All Rights Reserved
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Sendinblue Chat Controller
*/
class SendinblueControllerChat extends JControllerLegacy
{
public function __construct($config)
{
parent::__construct($config);
}
public function dashboard()
{
$this->setRedirect(JRoute::_('index.php?option=com_sendinblue', false));
return;
}
public function setTrackingID() {
$app = JFactory::getApplication();
if (SibJapiHelper::setPluginTrackingID('system', 'sendinbluema')) {
$app->enqueueMessage(JText::_('COM_SENDINBLUE_MA_PLUGIN_TRACKID_SET_SUCCESS'));
} else {
$app->enqueueMessage(JText::_('COM_SENDINBLUE_MA_PLUGIN_TRACKID_SET_ERROR'), 'error');
}
$this->setRedirect(JRoute::_('index.php?option=com_sendinblue&view=chat', false));
return;
}
public function pluginEnable() {
$app = JFactory::getApplication();
if (SibJapiHelper::setPluginState('system', 'sendinbluema', 1)) {
$app->enqueueMessage(JText::_('COM_SENDINBLUE_MA_PLUGIN_ENABLED_SUCCESS'));
} else {
$app->enqueueMessage(JText::_('COM_SENDINBLUE_MA_PLUGIN_ENABLED_ERROR'), 'error');
}
$this->setRedirect(JRoute::_('index.php?option=com_sendinblue&view=chat', false));
return;
}
public function pluginDisable() {
$app = JFactory::getApplication();
if (SibJapiHelper::setPluginState('system', 'sendinbluema', 0)) {
$app->enqueueMessage(JText::_('COM_SENDINBLUE_MA_PLUGIN_DISABLED_SUCCESS'));
} else {
$app->enqueueMessage(JText::_('COM_SENDINBLUE_MA_PLUGIN_DISABLED_ERROR'), 'error');
}
$this->setRedirect(JRoute::_('index.php?option=com_sendinblue&view=chat', false));
return;
}
}