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 92... | Line 92... | ||
92 | 92 | ||
93 | if (!function_exists('curl_init')) { |
93 | if (!function_exists('curl_init')) { |
94 | throw new OIDplusException(_L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl')); |
94 | throw new OIDplusException(_L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl')); |
95 | } |
95 | } |
96 | 96 | ||
- | 97 | if (OIDplus::getEditionInfo()['vendor'] != 'ViaThinkSoft') { |
|
- | 98 | // The oid-info.com import functionality is a confidential API between ViaThinkSoft and oid-info.com and cannot be used in forks of OIDplus |
|
- | 99 | throw new OIDplusException(_L('This feature is only available in the ViaThinkSoft edition of OIDplus')); |
|
- | 100 | } |
|
- | 101 | ||
97 | $ch = curl_init(); |
102 | $ch = curl_init(); |
98 | if (ini_get('curl.cainfo') == '') curl_setopt($ch, CURLOPT_CAINFO, OIDplus::localpath() . 'vendor/cacert.pem'); |
103 | if (ini_get('curl.cainfo') == '') curl_setopt($ch, CURLOPT_CAINFO, OIDplus::localpath() . 'vendor/cacert.pem'); |
99 | curl_setopt($ch, CURLOPT_URL, 'https://oidplus.viathinksoft.com/reg2/query.php'); |
104 | curl_setopt($ch, CURLOPT_URL, 'https://oidplus.viathinksoft.com/reg2/query.php'); |
100 | curl_setopt($ch, CURLOPT_POST, 1); |
105 | curl_setopt($ch, CURLOPT_POST, 1); |
101 | if (function_exists('gzdeflate')) { |
106 | if (function_exists('gzdeflate')) { |
Line 191... | Line 196... | ||
191 | 196 | ||
192 | if (!function_exists('curl_init')) { |
197 | if (!function_exists('curl_init')) { |
193 | throw new OIDplusException(_L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl')); |
198 | throw new OIDplusException(_L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl')); |
194 | } |
199 | } |
195 | 200 | ||
- | 201 | if (OIDplus::getEditionInfo()['vendor'] != 'ViaThinkSoft') { |
|
- | 202 | // The oid-info.com import functionality is a confidential API between ViaThinkSoft and oid-info.com and cannot be used in forks of OIDplus |
|
- | 203 | throw new OIDplusException(_L('This feature is only available in the ViaThinkSoft edition of OIDplus')); |
|
- | 204 | } |
|
- | 205 | ||
196 | $ch = curl_init(); |
206 | $ch = curl_init(); |
197 | if (ini_get('curl.cainfo') == '') curl_setopt($ch, CURLOPT_CAINFO, OIDplus::localpath() . 'vendor/cacert.pem'); |
207 | if (ini_get('curl.cainfo') == '') curl_setopt($ch, CURLOPT_CAINFO, OIDplus::localpath() . 'vendor/cacert.pem'); |
198 | curl_setopt($ch, CURLOPT_URL, 'https://oidplus.viathinksoft.com/reg2/query.php'); |
208 | curl_setopt($ch, CURLOPT_URL, 'https://oidplus.viathinksoft.com/reg2/query.php'); |
199 | curl_setopt($ch, CURLOPT_POST, 1); |
209 | curl_setopt($ch, CURLOPT_POST, 1); |
200 | if (function_exists('gzdeflate')) { |
210 | if (function_exists('gzdeflate')) { |
Line 459... | Line 469... | ||
459 | 469 | ||
460 | if (!function_exists('curl_init')) { |
470 | if (!function_exists('curl_init')) { |
461 | throw new OIDplusException(_L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl')); |
471 | throw new OIDplusException(_L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl')); |
462 | } |
472 | } |
463 | 473 | ||
- | 474 | if (OIDplus::getEditionInfo()['vendor'] != 'ViaThinkSoft') { |
|
- | 475 | // The oid-info.com import functionality is a confidential API between ViaThinkSoft and oid-info.com and cannot be used in forks of OIDplus |
|
- | 476 | throw new OIDplusException(_L('This feature is only available in the ViaThinkSoft edition of OIDplus')); |
|
- | 477 | } |
|
- | 478 | ||
464 | $ch = curl_init(); |
479 | $ch = curl_init(); |
465 | if (ini_get('curl.cainfo') == '') curl_setopt($ch, CURLOPT_CAINFO, OIDplus::localpath() . 'vendor/cacert.pem'); |
480 | if (ini_get('curl.cainfo') == '') curl_setopt($ch, CURLOPT_CAINFO, OIDplus::localpath() . 'vendor/cacert.pem'); |
466 | curl_setopt($ch, CURLOPT_URL, 'https://oidplus.viathinksoft.com/reg2/query.php'); |
481 | curl_setopt($ch, CURLOPT_URL, 'https://oidplus.viathinksoft.com/reg2/query.php'); |
467 | curl_setopt($ch, CURLOPT_POST, 1); |
482 | curl_setopt($ch, CURLOPT_POST, 1); |
468 | if (function_exists('gzdeflate')) { |
483 | if (function_exists('gzdeflate')) { |