| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/administrator/components/com_virtuemart/controllers/ |
Upload File : |
<?php
/**
*
* Config controller
*
* @package VirtueMart
* @subpackage Config
* @auhtor Max Milbers
* @author RickG
* @link https://virtuemart.net
* @copyright Copyright (c) 2004 - 2021 VirtueMart Team and authors. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: config.php 10649 2022-05-05 14:29:44Z Milbo $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
/**
* Configuration Controller
*
* @package VirtueMart
* @subpackage Config
*/
class VirtuemartControllerConfig extends VmController {
/**
* Method to display the view
*
* @access public
*/
function __construct() {
vmLanguage::loadJLang('com_virtuemart_config');
vmLanguage::loadJLang('com_virtuemart.sys');
parent::__construct();
}
/**
* Handle the save task
*/
function save($data = 0){
vRequest::vmCheckToken();
$model = VmModel::getModel('config');
$data = vRequest::getPost();
if(isset($data['offline_message']) && strpos($data['offline_message'],'|')!==false){
$data['offline_message'] = str_replace('|','',$data['offline_message']);
}
$msg = '';
if ($model->store($data)) {
vmInfo('COM_VIRTUEMART_CONFIG_SAVED');
// Load the newly saved values into the session.
VmConfig::loadConfig();
}
$redir = 'index.php?option=com_virtuemart';
if(vRequest::getCmd('task') == 'apply'){
$redir = $this->redirectPath;
}
$this->setRedirect($redir.'&vmms=1&nosafepathcheck=1');
}
/**
* Overwrite the remove task
* Removing config is forbidden.
* @author Max Milbers
*/
function remove(){
vmInfo('COM_VIRTUEMART_ERROR_CONFIGS_COULD_NOT_BE_DELETED');
$this->setRedirect( $this->redirectPath );
}
}
//pure php no tag