Removing deprecated references and files
This commit is contained in:
@@ -20,7 +20,7 @@ if (!isset($_GET['server']) || $server == "") {
|
||||
throw new \Exception(Bootstrap::LoadTranslation('ID_GMAIL_NEED_SERVER'));
|
||||
}
|
||||
|
||||
//First check if the feature is enabled in the license.
|
||||
//First check if the feature is enabled.
|
||||
$gCurl = curl_init('https://' . $server . '/api/1.0/' . $pmws . '/gmailIntegration/verifyGmailfeature/');
|
||||
curl_setopt($gCurl, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $pmtoken));
|
||||
curl_setopt($gCurl, CURLOPT_RETURNTRANSFER, true);
|
||||
@@ -37,7 +37,7 @@ if (curl_exec($gCurl) === false) {
|
||||
curl_close($gCurl);
|
||||
$gResp = G::json_decode($gCurl_response);
|
||||
if ($gResp === false) {
|
||||
echo Bootstrap::LoadTranslation('ID_NO_LICENSE_FEATURE_ENABLED');
|
||||
echo Bootstrap::LoadTranslation('ID_NOT_ENABLED');
|
||||
die();
|
||||
}
|
||||
}
|
||||
@@ -102,8 +102,6 @@ if (!isset($_SESSION['USER_LOGGED']) || $_SESSION['USER_LOGGED'] != $decodedResp
|
||||
setcookie('workspaceSkin', $enviroment, $cookieOptions);
|
||||
|
||||
$_SESSION = array();
|
||||
$_SESSION['__EE_INSTALLATION__'] = 2;
|
||||
$_SESSION['__EE_SW_PMLICENSEMANAGER__'] = 1;
|
||||
$_SESSION['phpLastFileFound'] = '';
|
||||
$_SESSION['USERNAME_PREVIOUS1'] = $decodedResp->user['0']->USR_USERNAME;
|
||||
$_SESSION['USERNAME_PREVIOUS2'] = $decodedResp->user['0']->USR_USERNAME;
|
||||
|
||||
@@ -974,7 +974,6 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
$noLoginFiles[] = 'genericAjax';
|
||||
$noLoginFiles[] = 'casesSaveDataView';
|
||||
$noLoginFiles[] = 'propelTableAjax';
|
||||
$noLoginFiles[] = 'licenseUpdate';
|
||||
$noLoginFiles[] = 'casesStreamingFile';
|
||||
$noLoginFiles[] = 'opencase';
|
||||
$noLoginFiles[] = 'defaultAjaxDynaform';
|
||||
|
||||
Reference in New Issue
Block a user