]> git.wh0rd.org - tt-rss.git/commitdiff
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 2 Oct 2013 11:57:21 +0000 (15:57 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 2 Oct 2013 11:57:21 +0000 (15:57 +0400)
classes/feeds.php
include/functions.php
js/functions.js
plugins/af_unburn/init.php

index 5ee125f5fd580e91603a47f449c7843fd62fc8e6..e26318e7e2c2161a8436e865cf448deb516448b2 100644 (file)
@@ -978,6 +978,10 @@ class Feeds extends Handler_Protected {
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"addfeed\">";
 
+               print "<div id='fadd_multiple_notify' style='display : none'>";
+               print_notice("Provided URL is a HTML page referencing multiple feeds, please select required feed from the dropdown menu below.");
+               print "<p></div>";
+
                print "<div class=\"dlgSec\">".__("Feed or site URL")."</div>";
                print "<div class=\"dlgSecCont\">";
 
index 7e08d22965af8ff3dcff13c4a3e12f216f188f40..e9b1270fb6eff60a994170bb919982b6da168493 100644 (file)
                        curl_setopt($ch, CURLOPT_ENCODING, "");
                        curl_setopt($ch, CURLOPT_REFERER, $url);
 
+                       if (defined('_CURL_HTTP_PROXY')) {
+                               curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
+                       }
+
                        if ($post_query) {
                                curl_setopt($ch, CURLOPT_POST, true);
                                curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
                curl_setopt($curl, CURLOPT_TIMEOUT, 60);
                curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
 
+               if (defined('_CURL_HTTP_PROXY')) {
+                       curl_setopt($curl, CURLOPT_PROXY, _CURL_HTTP_PROXY);
+               }
+
                if ((OPENSSL_VERSION_NUMBER >= 0x0090808f) && (OPENSSL_VERSION_NUMBER < 0x10000000)) {
                        curl_setopt($curl, CURLOPT_SSLVERSION, 3);
                }
index c75fb95cb2ec200f37d5200391d22fdb37df5438..fdd79159859d8261dd67b72f8cb6b914b1805e2f 100644 (file)
@@ -854,6 +854,8 @@ function quickAddFeed() {
                                                                case 4:
                                                                        feeds = rc['feeds'];
 
+                                                                       Element.show("fadd_multiple_notify");
+
                                                                        var select = dijit.byId("feedDlg_feedContainerSelect");
 
                                                                        while (select.getOptions().length > 0)
index a97502b12a7ebfd988916722ddc71f7f63496c6f..5873ccdf75a5bcac6ed3698c66e652a174de9cf0 100644 (file)
@@ -38,6 +38,10 @@ class Af_Unburn extends Plugin {
                                curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode") && !ini_get("open_basedir"));
                                curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
 
+                               if (defined('_CURL_HTTP_PROXY')) {
+                                       curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
+                               }
+
                                $contents = @curl_exec($ch);
 
                                $real_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);