Changeset 1649274
- Timestamp:
- 05/01/2017 11:49:55 PM (9 years ago)
- Location:
- rss-post-importer
- Files:
-
- 3 edited
- 1 copied
-
tags/2.5.1 (copied) (copied from rss-post-importer/trunk/index.php) (2 diffs)
-
trunk/app/classes/admin/class-rss-pi-stats.php (modified) (4 diffs)
-
trunk/index.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rss-post-importer/tags/2.5.1
r1649254 r1649274 6 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 7 Author: feedsapi 8 Version: 2.5. 08 Version: 2.5.1 9 9 Author URI: https://www.feedsapi.org/ 10 10 License: GPLv2 or later … … 33 33 34 34 if (!defined('RSS_PI_VERSION')) { 35 define('RSS_PI_VERSION', '2.5. 0');35 define('RSS_PI_VERSION', '2.5.1'); 36 36 } 37 37 -
rss-post-importer/trunk/app/classes/admin/class-rss-pi-stats.php
r1337944 r1649274 34 34 isset($_POST["rss_till_date"])) 35 35 { 36 $start_time = strtotime( $_POST["rss_from_date"]);37 $end_time = strtotime( $_POST["rss_till_date"]);36 $start_time = strtotime(sanitize_text_field($_POST["rss_from_date"])); 37 $end_time = strtotime(sanitize_text_field($_POST["rss_till_date"])); 38 38 } else { 39 40 39 40 41 41 $date_today = date("Y-m-d");// current date 42 42 $date_today_unix = strtotime($date_today); 43 43 $date_seven_days_unix = strtotime(date("Y-m-d", strtotime($date_today)) . " -7 day"); 44 44 45 45 // for last seven days stats 46 46 $start_time = $date_seven_days_unix; 47 47 $end_time = $date_today_unix; 48 48 49 49 /*Old Code working according to first post*/ 50 50 //$start_time = get_the_time("U", $oldest_post); 51 51 //$end_time = get_the_time("U", $newest_post); 52 52 53 53 } 54 54 … … 119 119 /* 120 120 * Prints the line chart between two dates 121 * param $start_time : timestamp 122 * param $end_time : timestamp 121 * param $start_time : timestamp 122 * param $end_time : timestamp 123 123 */ 124 124 function get_line_chart_data_between($start_time, $end_time) { … … 288 288 289 289 ?> 290 var data_pie_chart = google.visualization.arrayToDataTable([ 290 var data_pie_chart = google.visualization.arrayToDataTable([ 291 291 <?php 292 292 echo "['Feed', 'Posts imported'], \n"; … … 431 431 432 432 function show_date_pickers() { 433 $from_date = $_POST['rss_from_date'] || ''; 434 $till_date = $_POST['rss_till_date'] || ''; 435 436 $from_date = sanitize_text_field($from_date); 437 $till_date = sanitize_text_field($till_date); 438 439 $from_date = (bool)strtotime($from_date) ? $from_date : ''; 440 $till_date = (bool)strtotime($from_date) ? $till_date : ''; 441 433 442 ?> 434 443 <div class="rss_pi_stats_date"> 435 444 <div class="rss_filter_heading">Filter results:</div> 436 445 <hr> 437 <label>From: <input type="text" id="from_date" name="rss_from_date" value="<?php echo (isset($_POST["rss_from_date"])) ? $_POST["rss_from_date"] : ""; ?>" /> </label>438 <label>Till: <input type="text" id="till_date" name="rss_till_date" value="<?php echo (isset($_POST["rss_till_date"])) ? $_POST["rss_till_date"] : ""; ?>" /> </label>446 <label>From: <input type="text" id="from_date" name="rss_from_date" value="<?php echo $from_date; ?>" /> </label> 447 <label>Till: <input type="text" id="till_date" name="rss_till_date" value="<?php echo $till_date; ?>" /> </label> 439 448 <input type="submit" id="submit-rss_filter_stats" name="rss_filter_stats" class="button button-primary button-large " value="Filter"> 440 449 <br> -
rss-post-importer/trunk/index.php
r1647420 r1649274 6 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 7 Author: feedsapi 8 Version: 2.5. 08 Version: 2.5.1 9 9 Author URI: https://www.feedsapi.org/ 10 10 License: GPLv2 or later … … 33 33 34 34 if (!defined('RSS_PI_VERSION')) { 35 define('RSS_PI_VERSION', '2.5. 0');35 define('RSS_PI_VERSION', '2.5.1'); 36 36 } 37 37 -
rss-post-importer/trunk/readme.txt
r1647386 r1649274 5 5 Requires at least: 3.5 6 6 Tested up to: 4.7.4 7 Stable tag: 2.5. 07 Stable tag: 2.5.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 129 129 == Change Log == 130 130 131 = Version 2.5.1 = 132 * Important security update 133 131 134 = Version 2.5.0 = 132 135 * Security update
Note: See TracChangeset
for help on using the changeset viewer.