Merged in marcoAntonioNina/processmaker/GI-244 (pull request #3463)
GI-244
This commit is contained in:
@@ -962,18 +962,17 @@ function fillReportByProcess ()
|
|||||||
|
|
||||||
function synchronizeDrive ()
|
function synchronizeDrive ()
|
||||||
{
|
{
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
global $argvx;
|
global $argvx;
|
||||||
|
|
||||||
if (strpos($argvx, "synchronize-documents-drive") === false) {
|
if (strpos($argvx, "synchronize-documents-drive") === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||||
if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
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 {
|
||||||
@@ -993,18 +992,17 @@ function synchronizeDrive ()
|
|||||||
|
|
||||||
function synchronizeGmailLabels()
|
function synchronizeGmailLabels()
|
||||||
{
|
{
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
global $argvx;
|
global $argvx;
|
||||||
|
|
||||||
if (strpos($argvx, "synchronize-gmail-labels") === false) {
|
if (strpos($argvx, "synchronize-gmail-labels") === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||||
if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||||
G::LoadClass( "pmGoogleApi" );
|
G::LoadClass("pmGoogleApi");
|
||||||
$pmGoogle = new PMGoogleApi();
|
$pmGoogle = new PMGoogleApi();
|
||||||
if($pmGoogle->getServiceGmailStatus()) {
|
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user