| 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/administrator/components/com_jlexreview/controllers/ |
Upload File : |
<?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;
class JLexReviewControllerFileSection extends JControllerLegacy
{
public function display($cachable = false, $urlparams = array())
{
$view = $this->getView("filesection", "html");
$model = $this->getModel("filesection");
$view->setModel($model);
$view->display();
}
public function apply()
{
$app = JFactory::getApplication();
$data = $app->getInput()->get("jform", null, "array");
$id = isset($data["id"]) && $data["id"]>0 ? $data["id"] : 0;
$model = $this->getModel( "filesection" );
$return = $model->save();
$url = JUri::base(true) . "/index.php?option=com_jlexreview&view=filesection";
if ($id > 0)
{
$url .= "&id=" . $id;
}
if ($return && !$id)
{
$url .= "&id=" . $return;
}
if ($return)
{
$app->enqueueMessage("File section has been saved.");
}
$this->setRedirect($url);
}
public function save()
{
$app = JFactory::getApplication();
$data = $app->getInput()->get("jform", null, "array");
$id = isset($data["id"]) && $data["id"]>0 ? $data["id"] : 0;
$model = $this->getModel( "filesection" );
$return = $model->save();
if (! $return)
{
$url = JUri::base(true) . "/index.php?option=com_jlexreview&view=filesection";
if ($id > 0)
{
$url .= "&id=" . $id;
}
$this->setRedirect($url);
} else {
$url = JUri::base(true) . "/index.php?option=com_jlexreview&view=config&layout=section";
$this->setRedirect($url, "File section has been saved.");
}
}
public function remove()
{
$app = JFactory::getApplication();
$model = $this->getModel("filesection");
$return = $model->remove();
$url = JUri::base(true) . "/index.php?option=com_jlexreview&view=config&layout=section";
if ($return)
{
$this->setRedirect($url, "File section has been deleted.");
}
$this->setRedirect($url);
}
public function cancel()
{
$url = JUri::base(true) . "/index.php?option=com_jlexreview&view=config&layout=section";
$this->setRedirect($url);
}
}