vtenext/gdpr/actions/privacy.php
2021-04-28 20:10:26 +02:00

28 lines
819 B
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
// crmv@161554
defined('BASEPATH') OR exit('No direct script access allowed');
global $CFG, $GPDRManager;
$smarty = new GDPR\SmartyConfig();
$privacyPolicyRequest = $GPDRManager->getPrivacyPolicy();
$privacyPolicy = $privacyPolicyRequest['privacy_policy'];
if (!$privacyPolicyRequest['success']) {
$GPDRManager->showError(_T($privacyPolicyRequest['error']), '', true);
}
$contactId = $GPDRManager->getContactId();
$smarty->assign('BROWSER_TITLE', _T('browser_title_privacy'));
$smarty->assign('CONTACT_ID', $contactId);
$smarty->assign('PRIVACY_POLICY', $privacyPolicy);
$smarty->display('PrivacyPolicy.tpl');