Subversion Repositories oidplus

Rev

Rev 635 | Rev 715 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 635 Rev 699
Line 410... Line 410...
410
                        }
410
                        }
411
                }
411
                }
412
        }
412
        }
413
 
413
 
414
        public function init($html=true) {
414
        public function init($html=true) {
-
 
415
                if (OIDplus::getEditionInfo()['vendor'] != 'ViaThinkSoft') {
-
 
416
                        throw new OIDplusException(_L('This plugin is only available in the ViaThinkSoft edition of OIDplus'));
-
 
417
                }
-
 
418
 
415
                // Note: It is important that the default value is '2', otherwise, systems which don't have CURL will fail
419
                // Note: It is important that the default value is '2', otherwise, systems which don't have CURL will fail
416
                OIDplus::config()->prepareConfigKey('reg_privacy', '2=Hide your system, 1=Register your system to the ViaThinkSoft directory and oid-info.com, 0=Publish your system to ViaThinkSoft directory and all public contents (RA/OID) to oid-info.com', '2', OIDplusConfig::PROTECTION_EDITABLE, function($value) {
420
                OIDplus::config()->prepareConfigKey('reg_privacy', '2=Hide your system, 1=Register your system to the ViaThinkSoft directory and oid-info.com, 0=Publish your system to ViaThinkSoft directory and all public contents (RA/OID) to oid-info.com', '2', OIDplusConfig::PROTECTION_EDITABLE, function($value) {
417
                        if (($value != '0') && ($value != '1') && ($value != '2')) {
421
                        if (($value != '0') && ($value != '1') && ($value != '2')) {
418
                                throw new OIDplusException(_L('Please enter either 0, 1 or 2.'));
422
                                throw new OIDplusException(_L('Please enter either 0, 1 or 2.'));
419
                        }
423
                        }