Changeset 1650132
- Timestamp:
- 05/03/2017 07:37:35 AM (9 years ago)
- Location:
- count-per-day/trunk
- Files:
-
- 5 edited
-
counter-core.php (modified) (1 diff)
-
counter-options.php (modified) (2 diffs)
-
counter.php (modified) (2 diffs)
-
notes.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
count-per-day/trunk/counter-core.php
r1467511 r1650132 510 510 global $wpdb, $cpd_path, $cpd_version, $cpd_geoip_dir; 511 511 512 $serverinfo = (isset($wpdb->dbh->server_info)) ? $wpdb->dbh->server_info : mysql _get_server_info($wpdb->dbh);513 $clientinfo = (isset($wpdb->dbh->client_info)) ? $wpdb->dbh->client_info : mysql _get_client_info();512 $serverinfo = (isset($wpdb->dbh->server_info)) ? $wpdb->dbh->server_info : mysqli_get_server_info($wpdb->dbh); 513 $clientinfo = (isset($wpdb->dbh->client_info)) ? $wpdb->dbh->client_info : mysqli_get_client_info(); 514 514 515 515 echo '<div style="position:absolute;margin:10px;padding:10px;border:1px red solid;background:#fff;clear:both"> -
count-per-day/trunk/counter-options.php
r1467511 r1650132 15 15 // update options 16 16 case 'cpd_update' : 17 $_POST['cpd_bots'] = preg_replace('/\r\n\r\n/', '', $_POST['cpd_bots']);17 $_POST['cpd_bots'] = preg_replace('/\r\n\r\n/', '', strip_tags($_POST['cpd_bots'])); 18 18 $count_per_day->options['onlinetime'] = $_POST['cpd_onlinetime']; 19 19 $count_per_day->options['user'] = empty( $_POST['cpd_user'] ) ? 0 : 1 ; … … 33 33 $count_per_day->options['anoip'] = empty( $_POST['cpd_anoip'] ) ? 0 : 1 ; 34 34 $count_per_day->options['clients'] = $_POST['cpd_clients']; 35 $count_per_day->options['exclude_countries'] = strtolower(str_replace(' ', '', $_POST['cpd_exclude_countries']));35 $count_per_day->options['exclude_countries'] = strtolower(str_replace(' ', '', strip_tags($_POST['cpd_exclude_countries']))); 36 36 $count_per_day->options['ajax'] = empty( $_POST['cpd_ajax'] ) ? 0 : 1 ; 37 37 $count_per_day->options['debug'] = empty( $_POST['cpd_debug'] ) ? 0 : 1 ; -
count-per-day/trunk/counter.php
r1468351 r1650132 4 4 Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day 5 5 Description: Counter, shows reads and visitors per page; today, yesterday, last week, last months ... on dashboard, per shortcode or in widget. 6 Version: 3.5. 66 Version: 3.5.7 7 7 License: Postcardware 8 8 Author: Tom Braider … … 14 14 15 15 $cpd_dir_name = 'count-per-day'; 16 $cpd_version = '3.5. 6';16 $cpd_version = '3.5.7'; 17 17 18 18 if (strpos($_SERVER['SERVER_NAME'], '.test')) -
count-per-day/trunk/notes.php
r1401848 r1650132 35 35 36 36 // save changes 37 $id = isset($_POST['id']) ? (int) strip_tags($_POST['id']) : 0; 37 38 if ( isset($_POST['new']) ) 38 39 $n[] = array( $date, $note ); 39 40 else if ( isset($_POST['edit']) ) 40 $n[$ _POST['id']] = array( $date, $note );41 $n[$id] = array( $date, $note ); 41 42 else if ( isset($_POST['delete']) ) 42 unset($ n[$_POST['id']]);43 unset($id); 43 44 update_option('count_per_day_notes', $n); 44 45 ?> -
count-per-day/trunk/readme.txt
r1489009 r1650132 3 3 Tags: counter, count, posts, visits, reads, dashboard, widget, shortcode 4 4 Requires at least: 3.0 5 Tested up to: 4. 76 Stable tag: 3.5. 65 Tested up to: 4.8 6 Stable tag: 3.5.7 7 7 License: GPLv2 8 8 Donate link: http://www.tomsdimension.de/postcards … … 307 307 == Changelog == 308 308 309 = 3.5.7 = 310 + Bugfix: security fixes in notes, options 311 309 312 = 3.5.6 = 310 313 + Bugfix: check/block stored bad referrers
Note: See TracChangeset
for help on using the changeset viewer.