Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
buechereielektrik:unapi:unapi.inc.php [2010-02-19 13:20] – Added function "getCsv()" to class "Picappn". Renamend keys "RVK" to "rvk" and "DDC" to "ddc". strolsbuechereielektrik:unapi:unapi.inc.php [2010-03-03 17:13] strols
Line 52: Line 52:
   Changelog   Changelog
  *  *
 +  20100303: Added check of $use_curl as additional switch for de-
 + * activating curl.
   20100219: Added function "getCsv()" to class "Picappn".   20100219: Added function "getCsv()" to class "Picappn".
  * Renamend keys "RVK" to "rvk" and "DDC" to "ddc".  * Renamend keys "RVK" to "rvk" and "DDC" to "ddc".
Line 1074: Line 1076:
   **/   **/
   function getData($ppn) {   function getData($ppn) {
 +    // get global $use_curl as switch for the following conditional
 +    global $use_curl;
 +
     //  check whether curl-Module is available, if not available use fallback     //  check whether curl-Module is available, if not available use fallback
-    if (function_exists('curl_init')) {+    if (function_exists('curl_init'&& $use_curl != 'no') {
       $ch = curl_init("$this->url");       $ch = curl_init("$this->url");
       curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);       curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
buechereielektrik/unapi/unapi.inc.php.txt · Last modified: 2011-01-20 17:12 by strols
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0