mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
35 lines
873 B
PHP
35 lines
873 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;
|
|
|
|
if (!$GPDRManager->isValidSession()) {
|
|
GDPR\Redirect::to('verify');
|
|
}
|
|
|
|
if (!$GPDRManager->isPrivacyPolicyConfirmed()) {
|
|
GDPR\Redirect::to('settings');
|
|
}
|
|
|
|
if ($GPDRManager->hasDuplicates()) {
|
|
$GPDRManager->processAction('merge');
|
|
exit();
|
|
}
|
|
|
|
$smarty = new GDPR\SmartyConfig();
|
|
|
|
$contactId = $GPDRManager->getContactId();
|
|
$accessToken = $GPDRManager->getAccessToken();
|
|
|
|
$smarty->assign('BROWSER_TITLE', _T('browser_title_detailview'));
|
|
$smarty->assign('CONTACT_ID', $contactId);
|
|
$smarty->assign('ACCESS_TOKEN', $accessToken);
|
|
|
|
$smarty->display('DetailView.tpl'); |