Changing the hash of the drive feature.

GI-238

Changing the hash of the drive feature.
This commit is contained in:
jennydmz
2016-01-05 14:52:10 -04:00
parent 71e996655f
commit a4e39af011
4 changed files with 29 additions and 16 deletions

View File

@@ -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();
G::LoadClass('AppDocumentDrive'); if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
$drive = new AppDocumentDrive(); G::LoadClass('AppDocumentDrive');
if($drive->getStatusDrive()) { $drive = new AppDocumentDrive();
setExecutionMessage("Synchronize documents to drive"); if($drive->getStatusDrive()) {
$drive->synchronizeDrive(true); setExecutionMessage("Synchronize documents to Drive");
$drive->synchronizeDrive(true);
} else {
setExecutionMessage("It has not enabled Feature Drive");
}
} else { } else {
setExecutionMessage("It has not enabled Feature Gmail"); 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();
setExecutionMessage("Synchronize labels in Gmail"); if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
G::LoadClass('labelsGmail'); G::LoadClass( "PMGoogleApi" );
$labGmail = new labelsGmail(); $pmGoogle = new PMGoogleApi();
$labGmail->processPendingRelabelingInQueue(); if($pmGoogle->getServiceGmailStatus()) {
setExecutionMessage("Synchronize labels in Gmail");
G::LoadClass('labelsGmail');
$labGmail = new labelsGmail();
$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) {

View File

@@ -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');
} }

View File

@@ -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()) {

View File

@@ -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()) {