Changeset 1319968
- Timestamp:
- 01/02/2016 06:09:37 PM (10 years ago)
- Location:
- fireems-stats
- Files:
-
- 26 added
- 3 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/admin.php (added)
-
tags/1.0.1/assets/functions.php (added)
-
tags/1.0.1/assets/screenshot-1.png (added)
-
tags/1.0.1/assets/screenshot-2.png (added)
-
tags/1.0.1/assets/screenshot-3.png (added)
-
tags/1.0.1/assets/widget.php (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/fireemsA.css (added)
-
tags/1.0.1/css/fireemsW.css (added)
-
tags/1.0.1/fireems-stats.php (added)
-
tags/1.1.1 (added)
-
tags/1.1.1/assets (added)
-
tags/1.1.1/assets/admin.php (added)
-
tags/1.1.1/assets/functions.php (added)
-
tags/1.1.1/assets/screenshot-1.png (added)
-
tags/1.1.1/assets/screenshot-2.png (added)
-
tags/1.1.1/assets/screenshot-3.png (added)
-
tags/1.1.1/assets/widget.php (added)
-
tags/1.1.1/css (added)
-
tags/1.1.1/css/fireemsA.css (added)
-
tags/1.1.1/css/fireemsW.css (added)
-
tags/1.1.1/fireems-stats.php (added)
-
tags/1.1.1/readme.txt (added)
-
tags/1.1.1/uninstall.php (added)
-
trunk/assets/admin.php (modified) (3 diffs)
-
trunk/assets/functions.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fireems-stats/trunk/assets/admin.php
r1294662 r1319968 4 4 * 5 5 * @link http://maltesesolutions.com 6 * @since 1. 0.06 * @since 1.1.1 7 7 * 8 8 * @package FireEms Stats … … 11 11 function fireems_updatepage() { 12 12 $Option = get_option('fireEMS'); 13 $ServerYear = (int)substr(current_time( 'mysql' ), 0, 4); 13 14 $Year = ($_GET['year_id']); 14 15 if($Year == 0) { 15 16 $CurrentYear = $Option['currentyear']; 17 if($Option['currentyear'] < $ServerYear) { 18 $CurrentYear = $ServerYear; 19 } else { 20 $CurrentYear = $Option['currentyear']; 21 } 16 22 } else { 17 23 $CurrentYear = $Year; … … 42 48 case 'notable': 43 49 create_newyear($_POST['NewYear']); 50 51 // Update options to reflect the current year 52 $fireEMS_options = array( 53 'installed' => '1', 54 'col1_title' => $Option['col1_title'], 55 'col2_title' => $Option['col2_title'], 56 'col3_title' => $Option['col3_title'], 57 'display_col1' => $Option['display_col1'], 58 'display_col2' => $Option['display_col2'], 59 'currentyear' => $ServerYear 60 ); 61 update_option('fireEMS', $fireEMS_options); 62 44 63 $success = 1; 45 64 $smsg = '<div id="message" class="updated">A New Year Has Been Created!</div>'; -
fireems-stats/trunk/assets/functions.php
r1294662 r1319968 52 52 function create_newyear($Year) { 53 53 $NewYear = $Year; 54 $CurrentYear = date(Y);55 54 global $wpdb; 56 55 $prefix = $wpdb->prefix; … … 77 76 // Update Year Table 78 77 $wpdb->insert("$stats", array('year' => $NewYear)); 79 }80 if($NewYear > $CurrentYear) {81 // Update Options with Current Year82 update_option('fireEMS_current_year', $NewYear);83 78 } 84 79 $wpdb->flush(); -
fireems-stats/trunk/readme.txt
r1294662 r1319968 3 3 Tags: fire department, EMS, monthly calls, fire stats, ems stats 4 4 Requires at least: 4.0 5 Tested up to: 4. 3.16 Stable tag: 1. 0.15 Tested up to: 4.4 6 Stable tag: 1.1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 FireEMS Stats (Lite) allows your Fire or EMS Organization to list montly activity on the front page. 15 15 Edit your stats manually to keep your visitors and community up to date. 16 17 * Infinite polls18 * Multiple polls per page19 * One preference per user20 * Customizable text21 * Lightweight script22 * List of voters per poll23 16 24 17 Please take just few seconds to rate this plugin and tell the others how it works. … … 51 44 == Changelog == 52 45 46 = 1.1.1 (2016-01-01) = 47 * The program failed to recognize the current year of the server. 48 53 49 = 1.0.1 (2015-11-25) = 54 50 * Fixed an issue with the uninstall plugin
Note: See TracChangeset
for help on using the changeset viewer.