mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
25 lines
649 B
PHP
25 lines
649 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
|
|
// crmv@163697
|
|
|
|
require_once('modules/Settings/GDPRConfig/GDPRUtils.php');
|
|
|
|
$mode = 'ajax';
|
|
$action = $_REQUEST['subaction'];
|
|
$json = null;
|
|
|
|
$GDPRU = new GDPRUtils();
|
|
|
|
if ($action == 'save_general_settings') {
|
|
$ok = $GDPRU->saveGeneralSettings($_REQUEST);
|
|
$json = array('success' => $ok, 'error' => ($ok ? '' : 'Unable to save'));
|
|
} else {
|
|
$json = array('success' => false, 'error' => "Unknwon action");
|
|
}
|
|
|
|
echo Zend_Json::encode($json);
|
|
exit(); |