public static function getEdition() { if (!self::$_edition) { $pathToClaim = BP . DS . "app" . DS . "etc" . DS . "modules" . DS . 'Enterprise' . "_" . 'Enterprise' . ".xml"; $pathToEEConfig = BP . DS . "app" . DS . "code" . DS . "core" . DS . 'Enterprise' . DS . 'Enterprise' . DS . "etc" . DS . "config.xml"; $isCommunity = !file_exists($pathToClaim) || !file_exists($pathToEEConfig); if ($isCommunity) { self::$_edition = self::CE_EDITION; } else { $_xml = @simplexml_load_file($pathToEEConfig, 'SimpleXMLElement', LIBXML_NOCDATA); if (!$_xml === FALSE) { $package = (string) $_xml->default->design->package->name; $theme = (string) $_xml->install->design->theme->default; $skin = (string) $_xml->stores->admin->design->theme->skin; $isProffessional = $package == "pro" && $theme == "pro" && $skin == "pro"; if ($isProffessional) { self::$_edition = self::PE_EDITION; return self::$_edition; } } self::$_edition = self::EE_EDITION; } } return self::$_edition; }
private function spa0c5f2() { if (!self::$_edition) { $sp10ac20 = BP . DS . 'app' . DS . 'etc' . DS . 'modules' . DS . 'Enterprise' . '_' . 'Enterprise' . '.xml'; $spce5fe6 = BP . DS . 'app' . DS . 'code' . DS . 'core' . DS . 'Enterprise' . DS . 'Enterprise' . DS . 'etc' . DS . 'config.xml'; $sp37c0dc = !file_exists($sp10ac20) || !file_exists($spce5fe6); if ($sp37c0dc) { self::$_edition = self::CE_EDITION; } else { self::$_edition = self::EE_EDITION; } } return self::$_edition; }