Changeset 3090137
- Timestamp:
- 05/21/2024 11:29:33 AM (10 months ago)
- Location:
- wt-security
- Files:
-
- 449 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
wt-security/trunk/lib/Ajax.php
r3077409 r3090137 997 997 $open_ports[] = [ 998 998 'variables' => [ 999 "ports" => [ 1000 'TCPResults' => $ports['TCPResults'] ? WebTotem::getOpenPortsData(array_slice($ports['TCPResults'], 0, 3)) : [], 1001 ], 999 "ports" => $ports['TCPResults'] ? WebTotem::getOpenPortsData(array_slice($ports['TCPResults'], 0, 3)) : [], 1002 1000 'more' => true, 1003 1001 ], … … 1007 1005 $open_ports_modal[] = [ 1008 1006 'variables' => [ 1009 "ports" => [ 1010 'TCPResults' => WebTotem::getOpenPortsData($ports['TCPResults']) 1011 ], 1007 "ports" => WebTotem::getOpenPortsData($ports['TCPResults']), 1012 1008 ], 1013 1009 'template' => 'open_ports', … … 1885 1881 $open_ports[] = [ 1886 1882 'variables' => [ 1887 "ports" => [ 1888 'TCPResults' => WebTotem::getOpenPortsData($ports['TCPResults']), 1889 ], 1883 "ports" => WebTotem::getOpenPortsData($ports['TCPResults']), 1890 1884 ], 1891 1885 'template' => 'open_ports', … … 1894 1888 $open_ports_few[] = [ 1895 1889 'variables' => [ 1896 "more" => true, 1897 "ports" => [ 1898 'TCPResults' => $ports['TCPResults'] ? WebTotem::getOpenPortsData(array_slice($ports['TCPResults'], 0, 3)) : [], 1899 ], 1890 "ports" => $ports['TCPResults'] ? WebTotem::getOpenPortsData(array_slice($ports['TCPResults'], 0, 3)) : [], 1891 "more" => true, 1900 1892 ], 1901 1893 'template' => 'open_ports', -
wt-security/trunk/lib/Helper.php
r3089405 r3090137 299 299 } 300 300 301 302 303 /** 304 * Converting a date to the appropriate format. 305 * 306 * @param string $date 307 * Date in any format. 308 * @param string $format 309 * The format to which you want to convert the date. 310 * 311 * @return string 312 * Returns converted Date. 313 */ 301 /** 302 * Converting a date to the appropriate format. 303 * 304 * @param string $date 305 * Date in any format. 306 * @param string $format 307 * The format to which you want to convert the date. 308 * 309 * @return string 310 * Returns converted Date. 311 * @throws Exception 312 */ 314 313 public static function dateFormatter($date, $format = 'M j, Y \/ H:i') { 315 314 if (!$date) { … … 317 316 } 318 317 318 319 if ( is_numeric($date) && (int)$date == $date ){ 320 $date = date('Y-m-d H:i', $date); 321 } 322 323 if($wp_timezone = wp_timezone()){ 324 $UTC = new DateTimeZone("UTC"); 325 $date = new DateTime( $date, $UTC ); 326 $date->setTimezone( new DateTimeZone($wp_timezone->getName()) ); 327 return date_i18n($format,strtotime($date->format('Y-m-d H:i'))); 328 } 329 319 330 $time_zone = WebTotemOption::getOption('time_zone_offset'); 320 331 $user_time = ($time_zone) ? strtotime($time_zone . 'hours', strtotime($date)) : strtotime($date); … … 1640 1651 foreach ($data as $datum){ 1641 1652 $date_time = strtotime($datum['created_at']); 1642 $date = date_i18n('M j, Y', $date_time);1653 $date = self::dateFormatter($date_time, 'M j, Y'); 1643 1654 1644 1655 $logs[$date]['date'] = $date; 1645 1656 $logs[$date]['count'] = $dates_count[$date]; 1646 1657 $logs[$date]['logs'][] = [ 1647 'time' => date_i18n('H:i', $date_time),1658 'time' => self::dateFormatter($date_time,'H:i'), 1648 1659 'user_name' => $datum['user_name'], 1649 1660 'status' => $datum['status'], -
wt-security/trunk/lib/modules/login/BFProtection.php
r3023313 r3090137 172 172 if (preg_match('/^(?:\d{1,3}(?:\.|$)){4}/', $ip)) { 173 173 $octets = explode('.', $ip); 174 $bin = BFProtection . phpchr($octets[0]) . chr($octets[2]) . chr($octets[3]);174 $bin = chr($octets[0]) . chr($octets[2]) . chr($octets[3]); 175 175 return $bin; 176 176 } -
wt-security/trunk/readme.txt
r3089405 r3090137 8 8 Requires PHP: 7.1 9 9 Requires at least: 6.0 10 Stable tag: 2.4.2 610 Stable tag: 2.4.27 11 11 12 12 WebTotem is a SaaS which provides powerful tools for securing and monitoring your website in one place in easy and flexible way. … … 87 87 88 88 == Changelog == 89 = 2.4.27 = 90 * Fixed login attempts issue 91 * Internal improvements 92 89 93 = 2.4.26 = 90 94 * Feedback user issue has been fixed -
wt-security/trunk/wt-security.php
r3089405 r3090137 7 7 * Text Domain: wtotem 8 8 * Domain Path: /lang 9 * Version: 2.4.2 69 * Version: 2.4.27 10 10 * License: GPL v2 or later 11 11 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 55 55 * Current version of the plugin's code. 56 56 */ 57 define('WEBTOTEM_VERSION', '2.4.2 6');57 define('WEBTOTEM_VERSION', '2.4.27'); 58 58 59 59 /**
Note: See TracChangeset
for help on using the changeset viewer.