From a4cd6ddf0d8a365d07253eae9e354c96d2a11286 Mon Sep 17 00:00:00 2001 From: Brayan Osmar Pereyra Suxo Date: Tue, 16 Apr 2013 09:46:58 -0400 Subject: [PATCH] DOC SYSTEM Esta parte de authentication ya no es necesario Esta parte de authentication ya no es necesario --- .../engine/methods/login/authentication.php | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/workflow/engine/methods/login/authentication.php b/workflow/engine/methods/login/authentication.php index 45ee55bf3..ca5fdd3fb 100755 --- a/workflow/engine/methods/login/authentication.php +++ b/workflow/engine/methods/login/authentication.php @@ -295,41 +295,6 @@ try { die; } - ///// VERIFY PLUGIN ENTERPRISE IF IS ENABLED AND PARTNER FLAG EXIST - $partnerFlag = (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false; - if ($partnerFlag) { - $flagEnableEnterprise = true; - G::loadClass('PMPluginRegistry'); - $sSerializedFile = PATH_DATA_SITE . 'plugin.singleton'; - $oPluginRegistry = & PMPluginRegistry::getSingleton(); - if (file_exists( $sSerializedFile )) { - $oPluginRegistry->unSerializeInstance( file_get_contents( $sSerializedFile ) ); - $attributes = $oPluginRegistry->getAttributes(); - if ( isset($attributes['_aPluginDetails']['enterprise']) && - $attributes['_aPluginDetails']['enterprise']->enabled == 1 - ) { - $flagEnableEnterprise = false; - } - } - - if ($flagEnableEnterprise) { - $pluginFile = 'enterprise.php'; - require_once (PATH_PLUGINS . $pluginFile); - $details = $oPluginRegistry->getPluginDetails( $pluginFile ); - @$oPluginRegistry->enablePlugin( $details->sNamespace ); - @$oPluginRegistry->setupPlugins(); - - $language = new Language(); - $pathPluginTranslations = PATH_PLUGINS . 'enterprise' . PATH_SEP . 'translations' . PATH_SEP; - if (file_exists($pathPluginTranslations . 'translations.php')) { - if (!file_exists($pathPluginTranslations . 'enterprise' . '.' . SYS_LANG . '.po')) { - @$language->createLanguagePlugin('enterprise', SYS_LANG); - } - @$language->updateLanguagePlugin('enterprise', SYS_LANG); - } - } - } - $oHeadPublisher = &headPublisher::getSingleton(); $oHeadPublisher->extJsInit = true;