GI-238
Changing the hash of the drive feature. GI-238 Changing the hash of the drive feature.
This commit is contained in:
@@ -969,16 +969,19 @@ function synchronizeDrive ()
|
|||||||
if (strpos($argvx, "synchronize-documents-drive") === false) {
|
if (strpos($argvx, "synchronize-documents-drive") === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||||
|
if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||||
G::LoadClass('AppDocumentDrive');
|
G::LoadClass('AppDocumentDrive');
|
||||||
$drive = new AppDocumentDrive();
|
$drive = new AppDocumentDrive();
|
||||||
if($drive->getStatusDrive()) {
|
if($drive->getStatusDrive()) {
|
||||||
setExecutionMessage("Synchronize documents to drive");
|
setExecutionMessage("Synchronize documents to Drive");
|
||||||
$drive->synchronizeDrive(true);
|
$drive->synchronizeDrive(true);
|
||||||
} else {
|
} else {
|
||||||
setExecutionMessage("It has not enabled Feature Gmail");
|
setExecutionMessage("It has not enabled Feature Drive");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
setExecutionMessage("The Drive license is not enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
setExecutionResultMessage("DONE");
|
setExecutionResultMessage("DONE");
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
@@ -997,11 +1000,21 @@ function synchronizeGmailLabels()
|
|||||||
if (strpos($argvx, "synchronize-gmail-labels") === false) {
|
if (strpos($argvx, "synchronize-gmail-labels") === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||||
|
if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||||
|
G::LoadClass( "PMGoogleApi" );
|
||||||
|
$pmGoogle = new PMGoogleApi();
|
||||||
|
if($pmGoogle->getServiceGmailStatus()) {
|
||||||
setExecutionMessage("Synchronize labels in Gmail");
|
setExecutionMessage("Synchronize labels in Gmail");
|
||||||
G::LoadClass('labelsGmail');
|
G::LoadClass('labelsGmail');
|
||||||
$labGmail = new labelsGmail();
|
$labGmail = new labelsGmail();
|
||||||
$labGmail->processPendingRelabelingInQueue();
|
$labGmail->processPendingRelabelingInQueue();
|
||||||
|
} else {
|
||||||
|
setExecutionMessage("It has not enabled Feature Gmail");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
setExecutionMessage("The Gmail license is not enabled");
|
||||||
|
}
|
||||||
setExecutionResultMessage("DONE");
|
setExecutionResultMessage("DONE");
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ if ($RBAC->userCanAccess('PM_SETUP') == 1) {
|
|||||||
if ($licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=')) {
|
if ($licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=')) {
|
||||||
$G_TMP_MENU->AddIdRawOption('STRATEGIC_DASHBOARD', '../strategicDashboard/dashboardList', ucfirst(G::LoadTranslation('ID_STRATEGIC_DASHBOARD')), '', '', 'settings');
|
$G_TMP_MENU->AddIdRawOption('STRATEGIC_DASHBOARD', '../strategicDashboard/dashboardList', ucfirst(G::LoadTranslation('ID_STRATEGIC_DASHBOARD')), '', '', 'settings');
|
||||||
}
|
}
|
||||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09') || $licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||||
$G_TMP_MENU->AddIdRawOption('PMGMAIL', '../pmGmail/formPMGmail', ucfirst(G::LoadTranslation('ID_GOOGLEINTEGRATION')), '', '', 'settings');
|
$G_TMP_MENU->AddIdRawOption('PMGMAIL', '../pmGmail/formPMGmail', ucfirst(G::LoadTranslation('ID_GOOGLEINTEGRATION')), '', '', 'settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ if (! $sw_file_exists) {
|
|||||||
$nameFile = $oAppDocument->Fields['APP_DOC_FILENAME'];
|
$nameFile = $oAppDocument->Fields['APP_DOC_FILENAME'];
|
||||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||||
$downloadStatus = false;
|
$downloadStatus = false;
|
||||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||||
G::LoadClass( "AppDocumentDrive" );
|
G::LoadClass( "AppDocumentDrive" );
|
||||||
$drive = new AppDocumentDrive();
|
$drive = new AppDocumentDrive();
|
||||||
if ($drive->getStatusDrive()) {
|
if ($drive->getStatusDrive()) {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ if (! $sw_file_exists) {
|
|||||||
$nameFile = $info['basename'] . $ver . '.' . $ext;
|
$nameFile = $info['basename'] . $ver . '.' . $ext;
|
||||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||||
$downloadStatus = false;
|
$downloadStatus = false;
|
||||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||||
G::LoadClass( "AppDocumentDrive" );
|
G::LoadClass( "AppDocumentDrive" );
|
||||||
$drive = new AppDocumentDrive();
|
$drive = new AppDocumentDrive();
|
||||||
if ($drive->getStatusDrive()) {
|
if ($drive->getStatusDrive()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user