PM-1060: I added marcas

This commit is contained in:
Paula V. Quispe
2015-06-19 15:42:55 -04:00
parent 5b87652492
commit 5f4fedbaaa
3 changed files with 39 additions and 1 deletions

View File

@@ -197,6 +197,40 @@ class PMLicensedFeatures
"type" => "features",
"url" => "",
"version" => ""
),
10 => array(
"description" => "This plugin will synchronize ProcessMaker with an LDAP or Active Directory server for user authentication.",
"enabled" => false,
"id" => "ldapAdvanced",
"latest_version" => "",
"log" => null,
"name" => "ldapAdvanced",
"nick" => "ldapAdvanced",
"progress" => 0,
"publisher" => "Colosa",
"release_type" => "localRegistry",
"status" => "ready",
"store" => "00000000000000000000000000010010",
"type" => "features",
"url" => "",
"version" => ""
),
11 => array(
"description" => "SSO with an LDAP provider.",
"enabled" => false,
"id" => "windowsSSO",
"latest_version" => "",
"log" => null,
"name" => "windowsSSO",
"nick" => "windowsSSO",
"progress" => 0,
"publisher" => "Colosa",
"release_type" => "localRegistry",
"status" => "ready",
"store" => "00000000000000000000000000010011",
"type" => "features",
"url" => "",
"version" => ""
)
);

View File

@@ -43,9 +43,11 @@ $licensedFeatures = & PMLicensedFeatures::getSingleton();
$oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesList', false ); //adding a javascript file .js
/*----------------------------------********---------------------------------*/
if ($licensedFeatures->verifyfeature('sywN09PSzh1MVdOajZBdnhMbFhCSnpNT1lLTEFwVklmOTE=')) {
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesListSyn', false ); //adding a javascript file .js
}
/*----------------------------------********---------------------------------*/
$oHeadPublisher->addContent( 'authSources/authSourcesList' ); //adding a html file .html.
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
$oHeadPublisher->assign( 'CONFIG', $Config );

View File

@@ -37,10 +37,12 @@ $G_PUBLISH = new Publisher();
$fields = $RBAC->getAuthSource( $_GET['sUID'] );
if (file_exists( PATH_XMLFORM . 'ldapAdvanced/' . $fields['AUTH_SOURCE_PROVIDER'] . 'Edit.xml' )) {
$pluginEnabled = 0;
/*----------------------------------********---------------------------------*/
$licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('sywN09PSzh1MVdOajZBdnhMbFhCSnpNT1lLTEFwVklmOTE=')) {
$pluginEnabled = 1;
}
/*----------------------------------********---------------------------------*/
if ($pluginEnabled == 0) {
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_FEATURE_MISSING' ) ) );
G::RenderPage( 'publish', 'blank' );