PM-921 Installer for community distribution.
Marker added in files with licensed features.
This commit is contained in:
14
gulliver/thirdparty/propel/Propel.php
vendored
14
gulliver/thirdparty/propel/Propel.php
vendored
@@ -614,11 +614,15 @@ class Propel {
|
|||||||
*/
|
*/
|
||||||
public static function getDbConnection($name)
|
public static function getDbConnection($name)
|
||||||
{
|
{
|
||||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
/*----------------------------------********---------------------------------*/
|
||||||
if (! $licensedFeatures->verifyfeature('02YeEFKNnVoOWFKMzN4ZmpXT0V3MU9SVklnOXNCcE9zcXJKa0tpemNmQkJ5OTUvOWlLdFhibGp0MHVHUlV0VmNpNw==')) {
|
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||||
return null;
|
if (! $licensedFeatures->verifyfeature('02YeEFKNnVoOWFKMzN4ZmpXT0V3MU9SVklnOXNCcE9zcXJKa0tpemNmQkJ5OTUvOWlLdFhibGp0MHVHUlV0VmNpNw==')) {
|
||||||
}
|
/*----------------------------------********---------------------------------*/
|
||||||
|
return null;
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
if (! empty(self::$configuration['datasources'][$name]['connection'])) {
|
if (! empty(self::$configuration['datasources'][$name]['connection'])) {
|
||||||
return self::getConnection($name);
|
return self::getConnection($name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class PMLicensedFeatures
|
|||||||
}
|
}
|
||||||
return self::$instancefeature;
|
return self::$instancefeature;
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
public function verifyfeature ($featureName)
|
public function verifyfeature ($featureName)
|
||||||
{
|
{
|
||||||
if (!class_exists("pmLicenseManager")) {
|
if (!class_exists("pmLicenseManager")) {
|
||||||
@@ -82,5 +82,6 @@ class PMLicensedFeatures
|
|||||||
$this->featuresDetails[$value[0]]->enabled = $enable;
|
$this->featuresDetails[$value[0]]->enabled = $enable;
|
||||||
return $enable;
|
return $enable;
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -921,7 +921,15 @@ class wsBase
|
|||||||
G::LoadClass('system');
|
G::LoadClass('system');
|
||||||
}
|
}
|
||||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||||
$aSetup = (!empty($config) && $licensedFeatures->verifyfeature('nKaNTNuT1MzK0RsMEtXTnYzR09ucHF2WGNuS0hRdDBBak42WXJhNVVOOG1INEVoaU1EaTllbjBBeEJNeG9wRVJ6NmxQelhyVTBvdThzPQ==') ) ? $config : System::getEmailConfiguration();
|
/*----------------------------------********---------------------------------*/
|
||||||
|
if (!empty($config) && $licensedFeatures->verifyfeature('nKaNTNuT1MzK0RsMEtXTnYzR09ucHF2WGNuS0hRdDBBak42WXJhNVVOOG1INEVoaU1EaTllbjBBeEJNeG9wRVJ6NmxQelhyVTBvdThzPQ==')) {
|
||||||
|
$aSetup = $config;
|
||||||
|
} else {
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
$aSetup = System::getEmailConfiguration();
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
$oSpool = new spoolRun();
|
$oSpool = new spoolRun();
|
||||||
|
|
||||||
|
|||||||
@@ -1717,11 +1717,13 @@ class workspaceTools
|
|||||||
$this->initPropel( true );
|
$this->initPropel( true );
|
||||||
G::LoadClass("enterprise");
|
G::LoadClass("enterprise");
|
||||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
if ($licensedFeatures->verifyfeature('95OY24wcXpEMzIyRmlNSnF0STNFSHJzMG9wYTJKekpLNmY2ZmRCeGtuZk5oUDloaUNhUGVjTDJBPT0=')) {
|
if ($licensedFeatures->verifyfeature('95OY24wcXpEMzIyRmlNSnF0STNFSHJzMG9wYTJKekpLNmY2ZmRCeGtuZk5oUDloaUNhUGVjTDJBPT0=')) {
|
||||||
enterpriseClass::setHashPassword($response);
|
enterpriseClass::setHashPassword($response);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,9 +26,11 @@ global $G_TMP_MENU;
|
|||||||
global $RBAC;
|
global $RBAC;
|
||||||
$partnerFlag = (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false;
|
$partnerFlag = (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false;
|
||||||
|
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
$oServerConf = & serverConf::getSingleton();
|
$oServerConf = & serverConf::getSingleton();
|
||||||
$sAudit = $oServerConf->getAuditLogProperty( 'AL_OPTION', SYS_SYS );
|
$sAudit = $oServerConf->getAuditLogProperty( 'AL_OPTION', SYS_SYS );
|
||||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
if ($RBAC->userCanAccess('PM_SETUP') == 1 ) {
|
if ($RBAC->userCanAccess('PM_SETUP') == 1 ) {
|
||||||
//settings options
|
//settings options
|
||||||
@@ -99,20 +101,24 @@ if ($RBAC->userCanAccess('PM_SETUP') == 1) {
|
|||||||
$G_TMP_MENU->AddIdRawOption('LOG_CASE_SCHEDULER', '../cases/cases_Scheduler_Log', G::LoadTranslation('ID_CASE_SCHEDULER'), "icon-logs-list.png",'', 'logs');
|
$G_TMP_MENU->AddIdRawOption('LOG_CASE_SCHEDULER', '../cases/cases_Scheduler_Log', G::LoadTranslation('ID_CASE_SCHEDULER'), "icon-logs-list.png",'', 'logs');
|
||||||
$G_TMP_MENU->AddIdRawOption("CRON", "../setup/cron", G::LoadTranslation("ID_CRON_ACTIONS"), null, null, "logs");
|
$G_TMP_MENU->AddIdRawOption("CRON", "../setup/cron", G::LoadTranslation("ID_CRON_ACTIONS"), null, null, "logs");
|
||||||
$G_TMP_MENU->AddIdRawOption('EMAILS', '../mails/emailList', ucfirst (strtolower ( G::LoadTranslation('ID_EMAILS'))), '', '', 'logs');
|
$G_TMP_MENU->AddIdRawOption('EMAILS', '../mails/emailList', ucfirst (strtolower ( G::LoadTranslation('ID_EMAILS'))), '', '', 'logs');
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
if (isset($sAudit) && $sAudit != false && $licensedFeatures->verifyfeature('vtSeHNhT0JnSmo1bTluUVlTYUxUbUFSVStEeXVqc1pEUG5EeXc0MGd2Q3ErYz0=')) {
|
if (isset($sAudit) && $sAudit != false && $licensedFeatures->verifyfeature('vtSeHNhT0JnSmo1bTluUVlTYUxUbUFSVStEeXVqc1pEUG5EeXc0MGd2Q3ErYz0=')) {
|
||||||
$G_TMP_MENU->AddIdRawOption('AUDIT_LOG', '../setup/auditLog', ucfirst (G::LoadTranslation('ID_AUDITLOG_DISPLAY')), '', '', 'logs');
|
$G_TMP_MENU->AddIdRawOption('AUDIT_LOG', '../setup/auditLog', ucfirst (G::LoadTranslation('ID_AUDITLOG_DISPLAY')), '', '', 'logs');
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($RBAC->userCanAccess("PM_SETUP") == 1) {
|
if ($RBAC->userCanAccess("PM_SETUP") == 1) {
|
||||||
$G_TMP_MENU->AddIdRawOption("PM_REQUIREMENTS", "../setup/systemInfo", G::LoadTranslation("ID_PROCESSMAKER_REQUIREMENTS_CHECK"), "", "", "settings");
|
$G_TMP_MENU->AddIdRawOption("PM_REQUIREMENTS", "../setup/systemInfo", G::LoadTranslation("ID_PROCESSMAKER_REQUIREMENTS_CHECK"), "", "", "settings");
|
||||||
$G_TMP_MENU->AddIdRawOption("PHP_INFO", "../setup/systemInfo?option=php", G::LoadTranslation("ID_PHP_INFO"), "", "", "settings");
|
$G_TMP_MENU->AddIdRawOption("PHP_INFO", "../setup/systemInfo?option=php", G::LoadTranslation("ID_PHP_INFO"), "", "", "settings");
|
||||||
//$G_TMP_MENU->AddIdRawOption("PHP_MAINTENANCE", "../admin/maintenance", 'Maintenance', "", "", "settings");
|
//$G_TMP_MENU->AddIdRawOption("PHP_MAINTENANCE", "../admin/maintenance", 'Maintenance', "", "", "settings");
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
if ($licensedFeatures->verifyfeature('vtSeHNhT0JnSmo1bTluUVlTYUxUbUFSVStEeXVqc1pEUG5EeXc0MGd2Q3ErYz0=')) {
|
if ($licensedFeatures->verifyfeature('vtSeHNhT0JnSmo1bTluUVlTYUxUbUFSVStEeXVqc1pEUG5EeXc0MGd2Q3ErYz0=')) {
|
||||||
$G_TMP_MENU->AddIdRawOption("AUDIT_LOG", "auditLogConfig", G::LoadTranslation("ID_AUDITLOG_DISPLAY"), "", "", "settings");
|
$G_TMP_MENU->AddIdRawOption("AUDIT_LOG", "auditLogConfig", G::LoadTranslation("ID_AUDITLOG_DISPLAY"), "", "", "settings");
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
require_once 'classes/class.pmLicenseManager.php';
|
require_once 'classes/class.pmLicenseManager.php';
|
||||||
if (!file_exists(PATH_DATA_SITE . "plugin.singleton")) {
|
if (!file_exists(PATH_DATA_SITE . "plugin.singleton")) {
|
||||||
require_once PATH_CORE . 'methods' . PATH_SEP . 'enterprise' . PATH_SEP . 'enterprise.php';
|
require_once PATH_CORE . 'methods' . PATH_SEP . 'enterprise' . PATH_SEP . 'enterprise.php';
|
||||||
@@ -137,9 +143,11 @@ if ((isset($pmLicenseManagerO->plan)) && ($pmLicenseManagerO->plan != "")) {
|
|||||||
if ($licenseStatusInfo["message"] != "") {
|
if ($licenseStatusInfo["message"] != "") {
|
||||||
$licStatusMsg = " <font color=\"red\">(" . $licenseStatusInfo["message"] . ")</font>";
|
$licStatusMsg = " <font color=\"red\">(" . $licenseStatusInfo["message"] . ")</font>";
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
if ($RBAC->userCanAccess("PM_SETUP") == 1) {
|
if ($RBAC->userCanAccess("PM_SETUP") == 1) {
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
$G_TMP_MENU->AddIdRawOption("PMENTERPRISE", "../enterprise/addonsStore", G::LoadTranslation('ID_MENU_NAME') . $licStatusMsg, "", "", "plugins");
|
$G_TMP_MENU->AddIdRawOption("PMENTERPRISE", "../enterprise/addonsStore", G::LoadTranslation('ID_MENU_NAME') . $licStatusMsg, "", "", "plugins");
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
$G_TMP_MENU->AddIdRawOption("CASES_LIST_SETUP", "../cases/casesListSetup", G::LoadTranslation('ID_CASES_LIST'), "", "", "settings");
|
$G_TMP_MENU->AddIdRawOption("CASES_LIST_SETUP", "../cases/casesListSetup", G::LoadTranslation('ID_CASES_LIST'), "", "", "settings");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ try {
|
|||||||
$usr = mb_strtolower(trim($frm['USR_USERNAME']), 'UTF-8');
|
$usr = mb_strtolower(trim($frm['USR_USERNAME']), 'UTF-8');
|
||||||
$pwd = trim($frm['USR_PASSWORD']);
|
$pwd = trim($frm['USR_PASSWORD']);
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
require_once PATH_CORE . 'methods' . PATH_SEP . 'enterprise' . PATH_SEP . 'enterprise.php';
|
require_once PATH_CORE . 'methods' . PATH_SEP . 'enterprise' . PATH_SEP . 'enterprise.php';
|
||||||
|
|
||||||
if (!file_exists(PATH_DATA_SITE . "plugin.singleton")) {
|
if (!file_exists(PATH_DATA_SITE . "plugin.singleton")) {
|
||||||
@@ -47,6 +47,7 @@ try {
|
|||||||
$enterprise->enable();
|
$enterprise->enable();
|
||||||
$enterprise->setup();
|
$enterprise->setup();
|
||||||
}
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
$uid = $RBAC->VerifyLogin($usr , $pwd);
|
$uid = $RBAC->VerifyLogin($usr , $pwd);
|
||||||
$RBAC->cleanSessionFiles(72); //cleaning session files older than 72 hours
|
$RBAC->cleanSessionFiles(72); //cleaning session files older than 72 hours
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user