Changeset 3007339
- Timestamp:
- 12/08/2023 03:51:28 PM (2 years ago)
- Location:
- guardgiant/trunk
- Files:
-
- 2 edited
-
guardgiant.php (modified) (2 diffs)
-
includes/class-guardgiant-table-login-activity-log.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
guardgiant/trunk/guardgiant.php
r2793604 r3007339 17 17 * Plugin URI: https://www.guardgiant.com/ 18 18 * Description: Security plugin with 100% brute force protection that doesn't lock out genuine users. 19 * Version: 2.2. 519 * Version: 2.2.6 20 20 * Author: GuardGiant Brute Force Protection 21 21 * Author URI: https://www.guardgiant.com/ … … 32 32 33 33 34 define( 'GUARDGIANT_VERSION', '2.2. 5' );34 define( 'GUARDGIANT_VERSION', '2.2.6' ); 35 35 36 36 // default settings -
guardgiant/trunk/includes/class-guardgiant-table-login-activity-log.php
r2635026 r3007339 212 212 213 213 // Do we need to order the results? 214 // attempt_time, trusted_device, ip_address, ip_location, username, result_code, result_description 215 214 216 if ( ! empty( $_REQUEST['orderby'] ) ) { 215 $sql .= ' ORDER BY ' . esc_sql($_REQUEST['orderby']); 216 $sql .= ! empty( $_REQUEST['order'] ) ? ' ' . esc_sql( $_REQUEST['order'] ) : ' ASC'; 217 if (in_array($_REQUEST['orderby'], ["attempt_time", "trusted_device", "ip_address", "ip_location", "username", "result_code", "result_description"])) { 218 $sql .= ' ORDER BY ' . esc_sql($_REQUEST['orderby']); 219 220 if (!empty($_REQUEST['order'])) { 221 if ($_REQUEST['order'] == 'desc') 222 $sql .= ' DESC'; 223 else 224 $sql .= ' ASC'; 225 } 226 } 217 227 } else { 218 228 // default to ordering by id
Note: See TracChangeset
for help on using the changeset viewer.