]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions2.php
hotkey actions: toggle_expand, collapse_article: check if element exists
[tt-rss.git] / include / functions2.php
index 555aa04e9623dc20e3af5c166fbcd7806a91cfd4..672373e6dddf4fe2b36701c25638ebf8764d3277 100644 (file)
                        curl_setopt($curl, CURLOPT_PROXY, _CURL_HTTP_PROXY);
                }
 
-               if ((OPENSSL_VERSION_NUMBER >= 0x0090808f) && (OPENSSL_VERSION_NUMBER < 0x10000000)) {
-                       curl_setopt($curl, CURLOPT_SSLVERSION, 3);
-               }
-
                $html = curl_exec($curl);
 
                $status = curl_getinfo($curl);
 
                if($status['http_code']!=200){
 
-                       // idiot site not allowing http get
+                       // idiot site not allowing http head
                        if($status['http_code'] == 405) {
                                curl_close($curl);
                                return geturl($url, $depth +1, false);
                return LABEL_BASE_INDEX - 1 + abs($feed);
        }
 
-       function format_libxml_error($error) {
-               return T_sprintf("LibXML error %s at line %d (column %d): %s",
-                               $error->code, $error->line, $error->column,
-                               $error->message);
-       }
 ?>