Crazy Bone - Version 0.5.5

Version Description

Download this release

Release Info

Developer wokamoto
Plugin Icon wp plugin Crazy Bone
Version 0.5.5
Comparing to
See all releases

Code changes from version 0.5.4 to 0.5.5

Files changed (2) hide show
  1. plugin.php +10 -10
  2. readme.txt +6 -2
plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Crazy Bone
4
  Plugin URI: https://github.com/wokamoto/crazy-bone
5
  Description: Tracks user name, time of login, IP address and browser user agent.
6
  Author: wokamoto
7
- Version: 0.5.4
8
  Author URI: http://dogmap.jp/
9
  Text Domain: user-login-log
10
  Domain Path: /languages/
@@ -13,7 +13,7 @@ License:
13
  Released under the GPL license
14
  http://www.gnu.org/copyleft/gpl.html
15
 
16
- Copyright 2013-2014 (email : wokamoto1973@gmail.com)
17
 
18
  This program is free software; you can redistribute it and/or modify
19
  it under the terms of the GNU General Public License as published by
@@ -600,7 +600,7 @@ jQuery(function(){setTimeout('get_ull_info()', 10000);});
600
  $start = (intval($page) - 1) * intval($per_page);
601
 
602
  $page_links = paginate_links( array(
603
- 'base' => add_query_arg( 'apage', '%#%' ) ,
604
  'format' => '' ,
605
  'prev_text' => __('«') ,
606
  'next_text' => __('»') ,
@@ -694,7 +694,7 @@ jQuery(function(){setTimeout('get_ull_info()', 10000);});
694
  $total = intval($wpdb->get_var("SELECT count(`{$this->ull_table}`.`ID`) {$sql}"));
695
 
696
  // Pagination
697
- $page = abs(intval(isset($_GET['apage']) ? $_GET['apage'] : 1));
698
  $start = ($page - 1) * self::LIST_PER_PAGE;
699
  $page_links_text = $this->get_pagenation($total, self::LIST_PER_PAGE, $page, $start);
700
 
@@ -808,11 +808,11 @@ $user_login =
808
  (is_array($errors) && isset($errors['user_login']))
809
  ? $errors['user_login']
810
  : $row->user_login;
811
- $password =
812
  (is_array($errors) && isset($errors['user_login']) && isset($errors['user_password']))
813
  ? "{$errors['user_login']} / {$errors['user_password']}"
814
  : '';
815
- $errors =
816
  (is_array($errors) && isset($errors['errors']))
817
  ? implode(', ', array_keys($errors['errors']))
818
  : '';
@@ -869,7 +869,7 @@ if ($errors != 'invalid_username')
869
  $total = intval($wpdb->get_var("SELECT count(*) from ({$sql}) as log"));
870
 
871
  // Pagination
872
- $page = abs(intval(isset($_GET['apage']) ? $_GET['apage'] : 1));
873
  $start = ($page - 1) * self::LIST_PER_PAGE;
874
  $page_links_text = $this->get_pagenation($total, self::LIST_PER_PAGE, $page, $start);
875
 
@@ -947,11 +947,11 @@ $user_login =
947
  (is_array($errors) && isset($errors['user_login']))
948
  ? $errors['user_login']
949
  : $row->user_login;
950
- $password =
951
  (is_array($errors) && isset($errors['user_login']) && isset($errors['user_password']))
952
  ? "{$errors['user_login']} / {$errors['user_password']}"
953
  : '';
954
- $errors =
955
  (is_array($errors) && isset($errors['errors']))
956
  ? implode(', ', array_keys($errors['errors']))
957
  : '';
@@ -981,4 +981,4 @@ if ($errors != 'invalid_username')
981
  </div>
982
  <?php
983
  }
984
- }
4
  Plugin URI: https://github.com/wokamoto/crazy-bone
5
  Description: Tracks user name, time of login, IP address and browser user agent.
6
  Author: wokamoto
7
+ Version: 0.5.5
8
  Author URI: http://dogmap.jp/
9
  Text Domain: user-login-log
10
  Domain Path: /languages/
13
  Released under the GPL license
14
  http://www.gnu.org/copyleft/gpl.html
15
 
16
+ Copyright 2013-2015 (email : wokamoto1973@gmail.com)
17
 
18
  This program is free software; you can redistribute it and/or modify
19
  it under the terms of the GNU General Public License as published by
600
  $start = (intval($page) - 1) * intval($per_page);
601
 
602
  $page_links = paginate_links( array(
603
+ 'base' => add_query_arg( 'paged', '%#%' ) ,
604
  'format' => '' ,
605
  'prev_text' => __('&laquo;') ,
606
  'next_text' => __('&raquo;') ,
694
  $total = intval($wpdb->get_var("SELECT count(`{$this->ull_table}`.`ID`) {$sql}"));
695
 
696
  // Pagination
697
+ $page = abs(intval(isset($_GET['paged']) ? $_GET['paged'] : 1));
698
  $start = ($page - 1) * self::LIST_PER_PAGE;
699
  $page_links_text = $this->get_pagenation($total, self::LIST_PER_PAGE, $page, $start);
700
 
808
  (is_array($errors) && isset($errors['user_login']))
809
  ? $errors['user_login']
810
  : $row->user_login;
811
+ $password =
812
  (is_array($errors) && isset($errors['user_login']) && isset($errors['user_password']))
813
  ? "{$errors['user_login']} / {$errors['user_password']}"
814
  : '';
815
+ $errors =
816
  (is_array($errors) && isset($errors['errors']))
817
  ? implode(', ', array_keys($errors['errors']))
818
  : '';
869
  $total = intval($wpdb->get_var("SELECT count(*) from ({$sql}) as log"));
870
 
871
  // Pagination
872
+ $page = abs(intval(isset($_GET['paged']) ? $_GET['paged'] : 1));
873
  $start = ($page - 1) * self::LIST_PER_PAGE;
874
  $page_links_text = $this->get_pagenation($total, self::LIST_PER_PAGE, $page, $start);
875
 
947
  (is_array($errors) && isset($errors['user_login']))
948
  ? $errors['user_login']
949
  : $row->user_login;
950
+ $password =
951
  (is_array($errors) && isset($errors['user_login']) && isset($errors['user_password']))
952
  ? "{$errors['user_login']} / {$errors['user_password']}"
953
  : '';
954
+ $errors =
955
  (is_array($errors) && isset($errors['errors']))
956
  ? implode(', ', array_keys($errors['errors']))
957
  : '';
981
  </div>
982
  <?php
983
  }
984
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: log, login, users
5
  Requires at least: 3.5
6
  Tested up to: 4.0.1
7
- Stable tag: 0.5.4
8
 
9
  Tracks user name, time of login, IP address and browser user agent.
10
 
@@ -32,7 +32,11 @@ none
32
 
33
  1. The admin page
34
 
35
- == Changelog ==
 
 
 
 
36
 
37
  **0.5.4 - Dec. 17, 2014**
38
 
4
  Tags: log, login, users
5
  Requires at least: 3.5
6
  Tested up to: 4.0.1
7
+ Stable tag: 0.5.5
8
 
9
  Tracks user name, time of login, IP address and browser user agent.
10
 
32
 
33
  1. The admin page
34
 
35
+ == Changelog ==
36
+
37
+ **0.5.5 - Jan. 18, 2015**
38
+
39
+ Pagination doesn't work correctly.
40
 
41
  **0.5.4 - Dec. 17, 2014**
42