RSS Post Importer - Version 2.0.14

Version Description

Download this release

Release Info

Developer promz
Plugin Icon 128x128 RSS Post Importer
Version 2.0.14
Comparing to
See all releases

Code changes from version 2.0.13 to 2.0.14

app/assets/font/fontawesome-webfont.eot CHANGED
File without changes
app/assets/font/fontawesome-webfont.svg CHANGED
File without changes
app/assets/font/fontawesome-webfont.ttf CHANGED
File without changes
app/assets/font/fontawesome-webfont.woff CHANGED
File without changes
app/class-rss-post-importer.php CHANGED
@@ -208,7 +208,7 @@ class rssPostImporter {
208
 
209
 
210
 
211
- $url = "http://www.feedsapi.org/fetch.php?key=$key&url=http://dummyurl.com";
212
 
213
  $content = file_get_contents($url);
214
 
208
 
209
 
210
 
211
+ $url = "http://176.58.108.28/fetch.php?key=$key&url=http://dummyurl.com";
212
 
213
  $content = file_get_contents($url);
214
 
app/classes/admin/class-rss-pi-admin-processor.php CHANGED
@@ -124,15 +124,16 @@ class rssPIAdminProcessor {
124
  $t=0;
125
  $titlearray = array();
126
  while($csv_line = fgetcsv($file_handle,1024)) {
 
127
  if($t <> 0)
128
  {
129
 
130
  for ($i = 0, $j = count($csv_line); $i < $j; $i++) {
131
  if($i == 0)
132
  $importdata['feeds'][$t-1]['id'] = uniqid("54d4c".$t);
133
-
134
  $importdata['feeds'][$t-1][$titlearray[$i]] = $csv_line[$i];
135
-
136
  }
137
  }
138
  else{
@@ -153,14 +154,40 @@ class rssPIAdminProcessor {
153
  $importdata['feeds'][$r]['tags_id'] = "";
154
  $importdata['feeds'][$r]['strip_html'] = "false";
155
 
 
 
 
 
 
 
 
 
156
  array_push($feeds,$importdata['feeds'][$r]);
 
157
 
158
  }
 
159
  }
160
  }
161
 
162
  return $feeds;
163
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
 
165
  /**
166
 
124
  $t=0;
125
  $titlearray = array();
126
  while($csv_line = fgetcsv($file_handle,1024)) {
127
+
128
  if($t <> 0)
129
  {
130
 
131
  for ($i = 0, $j = count($csv_line); $i < $j; $i++) {
132
  if($i == 0)
133
  $importdata['feeds'][$t-1]['id'] = uniqid("54d4c".$t);
134
+
135
  $importdata['feeds'][$t-1][$titlearray[$i]] = $csv_line[$i];
136
+
137
  }
138
  }
139
  else{
154
  $importdata['feeds'][$r]['tags_id'] = "";
155
  $importdata['feeds'][$r]['strip_html'] = "false";
156
 
157
+ $check_result = $this->check_feed_exist($feeds,$importdata['feeds'][$r]);
158
+
159
+ if($check_result){
160
+
161
+ unset($importdata['feeds'][$r]);
162
+
163
+ }
164
+ else{
165
  array_push($feeds,$importdata['feeds'][$r]);
166
+ }
167
 
168
  }
169
+
170
  }
171
  }
172
 
173
  return $feeds;
174
  }
175
+
176
+ function check_feed_exist($feeds,$csvlink){
177
+ if(!empty($feeds) && !empty($csvlink)){
178
+
179
+ for($g=0;$g<count($feeds);$g++)
180
+ {
181
+
182
+ if($feeds[$g]['url'] == $csvlink['url'])
183
+ {
184
+
185
+ return true;
186
+ }
187
+ }
188
+ return false;
189
+ }
190
+ }
191
 
192
  /**
193
 
app/classes/import/class-rss-pi-engine.php CHANGED
@@ -302,7 +302,7 @@ class rssPIEngine {
302
 
303
 
304
 
305
- $api_url = "http://www.feedsapi.org/fetch.php?key=" . $key . "&url=" . $url;
306
 
307
 
308
 
302
 
303
 
304
 
305
+ $api_url = "http://176.58.108.28/fetch.php?key=" . $key . "&url=" . $url;
306
 
307
 
308
 
index.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: https://wordpress.org/plugins/rss-post-importer/
6
  Description: This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
7
  Author: feedsapi
8
- Version: 2.0.13
9
  Author URI: https://www.feedsapi.org/
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -28,7 +28,7 @@ if (!defined('RSS_PI_BASENAME')) {
28
  }
29
 
30
  if (!defined('RSS_PI_VERSION')) {
31
- define('RSS_PI_VERSION', '2.0.12');
32
  }
33
 
34
  if (!defined('RSS_PI_LOG_PATH')) {
5
  Plugin URI: https://wordpress.org/plugins/rss-post-importer/
6
  Description: This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
7
  Author: feedsapi
8
+ Version: 2.0.14
9
  Author URI: https://www.feedsapi.org/
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
28
  }
29
 
30
  if (!defined('RSS_PI_VERSION')) {
31
+ define('RSS_PI_VERSION', '2.0.14');
32
  }
33
 
34
  if (!defined('RSS_PI_LOG_PATH')) {
readme.txt CHANGED
@@ -12,7 +12,7 @@ Requires at least: 3.5
12
 
13
  Tested up to: 4.1
14
 
15
- Stable tag: 2.0.13
16
 
17
  License: GPLv2 or later
18
 
@@ -163,6 +163,11 @@ WP-o-Matic , WP-o-Matic, RSSImport, FeedWordPress, Syndicate Press, FeedWeb, RSS
163
 
164
  == Change Log ==
165
 
 
 
 
 
 
166
  = Version 2.0.13 =
167
 
168
  * Bug Fixing - API related
12
 
13
  Tested up to: 4.1
14
 
15
+ Stable tag: 2.0.14
16
 
17
  License: GPLv2 or later
18
 
163
 
164
  == Change Log ==
165
 
166
+ = Version 2.0.14 =
167
+
168
+ * Added option to import/export settings
169
+
170
+
171
  = Version 2.0.13 =
172
 
173
  * Bug Fixing - API related