示例#1
0
 private static function isPro($element)
 {
     require_once __DIR__ . '/functions.php';
     if (!($version = NNFrameworkFunctions::getXMLValue('version', $element))) {
         return false;
     }
     return stripos($version, 'PRO') !== false;
 }
示例#2
0
 public static function getXMLVersion($alias, $urlformat = false, $type = 'component', $folder = 'system')
 {
     require_once __DIR__ . '/functions.php';
     if (!($version = NNFrameworkFunctions::getXMLValue('version', $alias, $type, $folder))) {
         return '';
     }
     $version = trim($version);
     if (!$urlformat) {
         return $version;
     }
     return $version . '?v=' . strtolower(str_replace(array('FREE', 'PRO'), array('f', 'p'), $version));
 }