Changeset 3384467
- Timestamp:
- 10/25/2025 01:38:12 PM (5 months ago)
- Location:
- 0-day-analytics
- Files:
-
- 40 edited
- 1 copied
-
tags/3.7.4/classes/vendor/helpers/class-php-helper.php (modified) (8 diffs)
-
tags/3.7.5/classes/vendor/helpers/class-ajax-helper.php (modified) (1 diff)
-
tags/3.7.5/classes/vendor/helpers/class-php-helper.php (modified) (8 diffs)
-
tags/3.7.5/classes/vendor/lists/entity/class-common-table.php (modified) (1 diff)
-
tags/3.7.6/classes/vendor/helpers/class-ajax-helper.php (modified) (1 diff)
-
tags/3.7.6/classes/vendor/helpers/class-php-helper.php (modified) (8 diffs)
-
tags/3.7.6/classes/vendor/lists/entity/class-common-table.php (modified) (2 diffs)
-
tags/3.8.0/classes/vendor/entities/class-abstract-entity.php (modified) (1 diff)
-
tags/3.8.0/classes/vendor/helpers/class-ajax-helper.php (modified) (3 diffs)
-
tags/3.8.0/classes/vendor/helpers/class-miscellaneous.php (modified) (3 diffs)
-
tags/3.8.0/classes/vendor/helpers/class-php-helper.php (modified) (8 diffs)
-
tags/3.8.0/classes/vendor/helpers/class-transients-helper.php (modified) (1 diff)
-
tags/3.8.0/classes/vendor/lists/class-requests-list.php (modified) (1 diff)
-
tags/3.8.0/classes/vendor/lists/class-table-list.php (modified) (1 diff)
-
tags/3.8.0/classes/vendor/lists/entity/class-common-table.php (modified) (2 diffs)
-
tags/3.8.0/classes/vendor/lists/traits/class-list-trait.php (modified) (1 diff)
-
tags/3.9.1 (copied) (copied from 0-day-analytics/trunk)
-
tags/3.9.1/advanced-analytics.php (modified) (4 diffs)
-
tags/3.9.1/classes/vendor/controllers/class-endpoints.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/controllers/connectors/class-slack-api.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/controllers/connectors/class-slack.php (modified) (4 diffs)
-
tags/3.9.1/classes/vendor/controllers/connectors/class-telegram-api.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/controllers/connectors/class-telegram.php (modified) (4 diffs)
-
tags/3.9.1/classes/vendor/helpers/class-miscellaneous.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/lists/views/class-fatals-view.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/lists/views/class-table-view.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/lists/views/class-transients-view.php (modified) (1 diff)
-
tags/3.9.1/classes/vendor/lists/views/class-wp-mail-view.php (modified) (1 diff)
-
tags/3.9.1/readme.txt (modified) (2 diffs)
-
trunk/advanced-analytics.php (modified) (4 diffs)
-
trunk/classes/vendor/controllers/class-endpoints.php (modified) (1 diff)
-
trunk/classes/vendor/controllers/connectors/class-slack-api.php (modified) (1 diff)
-
trunk/classes/vendor/controllers/connectors/class-slack.php (modified) (4 diffs)
-
trunk/classes/vendor/controllers/connectors/class-telegram-api.php (modified) (1 diff)
-
trunk/classes/vendor/controllers/connectors/class-telegram.php (modified) (4 diffs)
-
trunk/classes/vendor/helpers/class-miscellaneous.php (modified) (1 diff)
-
trunk/classes/vendor/lists/views/class-fatals-view.php (modified) (1 diff)
-
trunk/classes/vendor/lists/views/class-table-view.php (modified) (1 diff)
-
trunk/classes/vendor/lists/views/class-transients-view.php (modified) (1 diff)
-
trunk/classes/vendor/lists/views/class-wp-mail-view.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
0-day-analytics/tags/3.7.4/classes/vendor/helpers/class-php-helper.php
r3375967 r3384467 5 5 * @package 0-day 6 6 * @subpackage helpers 7 * @since latest7 * @since 3.9.1 8 8 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 9 9 */ … … 21 21 * All the user related settings must go trough this class. 22 22 * 23 * @since latest23 * @since 3.9.1 24 24 */ 25 25 class PHP_Helper { … … 30 30 * @var array 31 31 * 32 * @since latest32 * @since 3.9.1 33 33 */ 34 34 private static $class_map = array(); … … 39 39 * @return array 40 40 * 41 * @since latest41 * @since 3.9.1 42 42 */ 43 43 public static function get_class_map(): array { … … 73 73 * @return string|false 74 74 * 75 * @since latest75 * @since 3.9.1 76 76 */ 77 77 public static function get_class_by_filename( string $file ) { … … 96 96 * @return array 97 97 * 98 * @since latest98 * @since 3.9.1 99 99 */ 100 100 public static function get_subclasses_of_class( string $current_class, string $base_class, bool $exclude_abstracts = true ): array { … … 120 120 * @return array 121 121 * 122 * @since latest122 * @since 3.9.1 123 123 */ 124 124 public static function get_classes_by_namespace( string $namespace ) { … … 169 169 * @return array 170 170 * 171 * @since latest171 * @since 3.9.1 172 172 */ 173 173 public static function get_classes_with_term( $term ) { -
0-day-analytics/tags/3.7.5/classes/vendor/helpers/class-ajax-helper.php
r3377720 r3384467 643 643 * @return void 644 644 * 645 * @since latest645 * @since 3.9.1 646 646 */ 647 647 public static function error_log_filtering_dismiss_notice() { -
0-day-analytics/tags/3.7.5/classes/vendor/helpers/class-php-helper.php
r3375967 r3384467 5 5 * @package 0-day 6 6 * @subpackage helpers 7 * @since latest7 * @since 3.9.1 8 8 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 9 9 */ … … 21 21 * All the user related settings must go trough this class. 22 22 * 23 * @since latest23 * @since 3.9.1 24 24 */ 25 25 class PHP_Helper { … … 30 30 * @var array 31 31 * 32 * @since latest32 * @since 3.9.1 33 33 */ 34 34 private static $class_map = array(); … … 39 39 * @return array 40 40 * 41 * @since latest41 * @since 3.9.1 42 42 */ 43 43 public static function get_class_map(): array { … … 73 73 * @return string|false 74 74 * 75 * @since latest75 * @since 3.9.1 76 76 */ 77 77 public static function get_class_by_filename( string $file ) { … … 96 96 * @return array 97 97 * 98 * @since latest98 * @since 3.9.1 99 99 */ 100 100 public static function get_subclasses_of_class( string $current_class, string $base_class, bool $exclude_abstracts = true ): array { … … 120 120 * @return array 121 121 * 122 * @since latest122 * @since 3.9.1 123 123 */ 124 124 public static function get_classes_by_namespace( string $namespace ) { … … 169 169 * @return array 170 170 * 171 * @since latest171 * @since 3.9.1 172 172 */ 173 173 public static function get_classes_with_term( $term ) { -
0-day-analytics/tags/3.7.5/classes/vendor/lists/entity/class-common-table.php
r3377720 r3384467 478 478 * @return int bool 479 479 * 480 * @since latest480 * @since 3.9.1 481 481 */ 482 482 public static function find( array $data ) { -
0-day-analytics/tags/3.7.6/classes/vendor/helpers/class-ajax-helper.php
r3377720 r3384467 643 643 * @return void 644 644 * 645 * @since latest645 * @since 3.9.1 646 646 */ 647 647 public static function error_log_filtering_dismiss_notice() { -
0-day-analytics/tags/3.7.6/classes/vendor/helpers/class-php-helper.php
r3375967 r3384467 5 5 * @package 0-day 6 6 * @subpackage helpers 7 * @since latest7 * @since 3.9.1 8 8 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 9 9 */ … … 21 21 * All the user related settings must go trough this class. 22 22 * 23 * @since latest23 * @since 3.9.1 24 24 */ 25 25 class PHP_Helper { … … 30 30 * @var array 31 31 * 32 * @since latest32 * @since 3.9.1 33 33 */ 34 34 private static $class_map = array(); … … 39 39 * @return array 40 40 * 41 * @since latest41 * @since 3.9.1 42 42 */ 43 43 public static function get_class_map(): array { … … 73 73 * @return string|false 74 74 * 75 * @since latest75 * @since 3.9.1 76 76 */ 77 77 public static function get_class_by_filename( string $file ) { … … 96 96 * @return array 97 97 * 98 * @since latest98 * @since 3.9.1 99 99 */ 100 100 public static function get_subclasses_of_class( string $current_class, string $base_class, bool $exclude_abstracts = true ): array { … … 120 120 * @return array 121 121 * 122 * @since latest122 * @since 3.9.1 123 123 */ 124 124 public static function get_classes_by_namespace( string $namespace ) { … … 169 169 * @return array 170 170 * 171 * @since latest171 * @since 3.9.1 172 172 */ 173 173 public static function get_classes_with_term( $term ) { -
0-day-analytics/tags/3.7.6/classes/vendor/lists/entity/class-common-table.php
r3378902 r3384467 478 478 * @return int bool 479 479 * 480 * @since latest480 * @since 3.9.1 481 481 */ 482 482 public static function find( array $data ) { … … 1064 1064 * @return string 1065 1065 * 1066 * @since latest1066 * @since 3.9.1 1067 1067 */ 1068 1068 private static function format_value_for_html( $value ) { -
0-day-analytics/tags/3.8.0/classes/vendor/entities/class-abstract-entity.php
r3380967 r3384467 776 776 * @return array 777 777 * 778 * @since latest778 * @since 3.9.1 779 779 */ 780 780 public static function get_all_columns(): array { -
0-day-analytics/tags/3.8.0/classes/vendor/helpers/class-ajax-helper.php
r3380967 r3384467 652 652 * @return void 653 653 * 654 * @since latest654 * @since 3.9.1 655 655 */ 656 656 public static function error_log_filtering_dismiss_notice() { … … 665 665 * @return void 666 666 * 667 * @since latest667 * @since 3.9.1 668 668 */ 669 669 public static function export_large_csv() { … … 916 916 * @return void 917 917 * 918 * @since latest918 * @since 3.9.1 919 919 */ 920 920 public static function export_large_csv_cleanup() { -
0-day-analytics/tags/3.8.0/classes/vendor/helpers/class-miscellaneous.php
r3380967 r3384467 7 7 * @package advanced-analytics 8 8 * 9 * @since latest9 * @since 3.9.1 10 10 */ 11 11 … … 23 23 * Responsible for general repeating stuff. 24 24 * 25 * @since latest25 * @since 3.9.1 26 26 */ 27 27 class Miscellaneous { … … 32 32 * @return string 33 33 * 34 * @since latest34 * @since 3.9.1 35 35 */ 36 36 public static function get_flex_style(): string { -
0-day-analytics/tags/3.8.0/classes/vendor/helpers/class-php-helper.php
r3375967 r3384467 5 5 * @package 0-day 6 6 * @subpackage helpers 7 * @since latest7 * @since 3.9.1 8 8 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 9 9 */ … … 21 21 * All the user related settings must go trough this class. 22 22 * 23 * @since latest23 * @since 3.9.1 24 24 */ 25 25 class PHP_Helper { … … 30 30 * @var array 31 31 * 32 * @since latest32 * @since 3.9.1 33 33 */ 34 34 private static $class_map = array(); … … 39 39 * @return array 40 40 * 41 * @since latest41 * @since 3.9.1 42 42 */ 43 43 public static function get_class_map(): array { … … 73 73 * @return string|false 74 74 * 75 * @since latest75 * @since 3.9.1 76 76 */ 77 77 public static function get_class_by_filename( string $file ) { … … 96 96 * @return array 97 97 * 98 * @since latest98 * @since 3.9.1 99 99 */ 100 100 public static function get_subclasses_of_class( string $current_class, string $base_class, bool $exclude_abstracts = true ): array { … … 120 120 * @return array 121 121 * 122 * @since latest122 * @since 3.9.1 123 123 */ 124 124 public static function get_classes_by_namespace( string $namespace ) { … … 169 169 * @return array 170 170 * 171 * @since latest171 * @since 3.9.1 172 172 */ 173 173 public static function get_classes_with_term( $term ) { -
0-day-analytics/tags/3.8.0/classes/vendor/helpers/class-transients-helper.php
r3380967 r3384467 155 155 * 156 156 * @since 1.8.5 157 * @since latest- Added $request parameter.157 * @since 3.9.1 - Added $request parameter. 158 158 */ 159 159 public static function get_transient_by_id( ?\WP_REST_Request $request = null, $id = 0 ) { -
0-day-analytics/tags/3.8.0/classes/vendor/lists/class-requests-list.php
r3380967 r3384467 324 324 * 325 325 * @since 1.0.0 326 * @since latest- added $args param.326 * @since 3.9.1 - added $args param. 327 327 * 328 328 * @return Array -
0-day-analytics/tags/3.8.0/classes/vendor/lists/class-table-list.php
r3380967 r3384467 270 270 * 271 271 * @since 1.0.0 272 * @since latest- added $args param.272 * @since 3.9.1 - added $args param. 273 273 * 274 274 * @return Array -
0-day-analytics/tags/3.8.0/classes/vendor/lists/entity/class-common-table.php
r3380967 r3384467 478 478 * @return int bool 479 479 * 480 * @since latest480 * @since 3.9.1 481 481 */ 482 482 public static function find( array $data ) { … … 1064 1064 * @return string 1065 1065 * 1066 * @since latest1066 * @since 3.9.1 1067 1067 */ 1068 1068 public static function format_value_for_html( $value ) { -
0-day-analytics/tags/3.8.0/classes/vendor/lists/traits/class-list-trait.php
r3380967 r3384467 199 199 * @return int 200 200 * 201 * @since latest201 * @since 3.9.1 202 202 */ 203 203 public function get_count() { -
0-day-analytics/tags/3.9.1/advanced-analytics.php
r3384334 r3384467 11 11 * Plugin Name: 0 Day Analytics 12 12 * Description: Take full control of error log, crons, transients, plugins, requests, mails and DB tables. 13 * Version: 3.9. 013 * Version: 3.9.1 14 14 * Author: Stoil Dobrev 15 15 * Author URI: https://github.com/sdobreff/ … … 37 37 // Constants. 38 38 if ( ! defined( 'ADVAN_VERSION' ) ) { 39 define( 'ADVAN_VERSION', '3.9. 0' );39 define( 'ADVAN_VERSION', '3.9.1' ); 40 40 define( 'ADVAN_TEXTDOMAIN', '0-day-analytics' ); 41 41 define( 'ADVAN_NAME', '0 Day Analytics' ); … … 91 91 92 92 \register_shutdown_function( array( WP_Error_Handler::class, 'shutdown' ) ); 93 if ( ! Settings::get_option( 'plugin_exception_handler_disable' ) ) {94 \set_exception_handler( array( WP_Error_Handler::class, 'exception_handler' ) );95 }96 93 97 94 \add_action( 'doing_it_wrong_trigger_error', array( WP_Error_Handler::class, 'trigger_error' ), 0, 4 ); … … 100 97 101 98 \add_action( 'doing_it_wrong_run', array( WP_Error_Handler::class, 'action_doing_it_wrong_run' ), 99, 3 ); 99 100 if ( ! Settings::get_option( 'plugin_exception_handler_disable' ) ) { 101 \set_exception_handler( array( WP_Error_Handler::class, 'exception_handler' ) ); 102 } 102 103 103 104 // All deprecated error following their own idea of what to pass and how to pass it. That list covers the most common ones. -
0-day-analytics/tags/3.9.1/classes/vendor/controllers/class-endpoints.php
r3384334 r3384467 288 288 'endpoints' => array( 289 289 array( 290 '(?P<transient_id>\ w+)' => array(290 '(?P<transient_id>\d+)' => array( 291 291 'methods' => array( 292 292 'method' => \WP_REST_Server::READABLE, -
0-day-analytics/tags/3.9.1/classes/vendor/controllers/connectors/class-slack-api.php
r3384334 r3384467 123 123 124 124 return false; 125 } else { 126 $response_data = json_decode( $response['body'], true ); 125 } elseif ( ! empty( $response['body'] ) ) { 126 127 $response_data = json_decode( $response['body'], true ); 127 128 if ( $response_data['ok'] ) { 128 129 self::$valid_message = $response_data; -
0-day-analytics/tags/3.9.1/classes/vendor/controllers/connectors/class-slack.php
r3374674 r3384467 14 14 use ADVAN\Helpers\Settings; 15 15 use ADVAN\Controllers\Slack_API; 16 use ADVAN\Helpers\Miscellaneous; 16 17 17 18 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. … … 131 132 public static function set_settings( array $options ): void { 132 133 // Sanitize each setting value. 133 $sanitized_options = array_map( 'sanitize_text_field',$options );134 $sanitized_options = Miscellaneous::sanitize_options_recursive( $options ); 134 135 135 136 $current_options = Settings::get_current_options(); … … 158 159 return self::$auth_key; 159 160 } 161 160 162 /** 161 * Returns the currently stored Slack AUTH key or falseif there is none.163 * Returns the currently stored Slack channel or an empty string if there is none. 162 164 * 163 * @return bool|string165 * @return string 164 166 * 165 167 * @since 1.8.0 … … 179 181 */ 180 182 public static function get_slack_setting( string $setting ) { 181 if ( ! isset( $setting ) ) {182 return '';183 }184 185 183 if ( isset( self::get_settings()[ $setting ] ) ) { 186 184 return self::get_settings()[ $setting ]; -
0-day-analytics/tags/3.9.1/classes/vendor/controllers/connectors/class-telegram-api.php
r3374674 r3384467 115 115 116 116 return false; 117 } else{118 $response_data = json_decode( wp_remote_retrieve_body( $response ), true );117 } elseif ( ! empty( $response['body'] ) ) { 118 $response_data = json_decode( \wp_remote_retrieve_body( $response ), true ); 119 119 if ( ! empty( $response_data['ok'] ) && ! empty( $response_data['result']['is_bot'] ) && true === $response_data['result']['is_bot'] ) { 120 120 self::$valid_message = $response_data; -
0-day-analytics/tags/3.9.1/classes/vendor/controllers/connectors/class-telegram.php
r3374674 r3384467 13 13 14 14 use ADVAN\Helpers\Settings; 15 use ADVAN\Helpers\Miscellaneous; 15 16 use ADVAN\Controllers\Telegram_API; 16 17 … … 131 132 public static function set_settings( array $options ): void { 132 133 // Sanitize each setting value. 133 $sanitized_options = array_map( 'sanitize_text_field',$options );134 $sanitized_options = Miscellaneous::sanitize_options_recursive( $options ); 134 135 135 136 $current_options = Settings::get_current_options(); … … 159 160 } 160 161 /** 161 * Returns the currently stored Telegram AUTH key or falseif there is none.162 * Returns the currently stored Telegram channel or an empty string if there is none. 162 163 * 163 * @return bool|string164 * @return string 164 165 * 165 166 * @since 1.8.5 … … 179 180 */ 180 181 public static function get_telegram_setting( string $setting ) { 181 if ( ! isset( $setting ) ) {182 return '';183 }184 185 182 if ( isset( self::get_settings()[ $setting ] ) ) { 186 183 return self::get_settings()[ $setting ]; -
0-day-analytics/tags/3.9.1/classes/vendor/helpers/class-miscellaneous.php
r3384334 r3384467 380 380 ); 381 381 } 382 383 /** 384 * Recursively sanitize all values in an array. 385 * 386 * @param mixed $options Array or value to sanitize. 387 * 388 * @return mixed 389 * 390 * @since 3.9.1 391 */ 392 public static function sanitize_options_recursive( $options ) { 393 if ( is_array( $options ) ) { 394 $sanitized = array(); 395 foreach ( $options as $key => $value ) { 396 $sanitized[ $key ] = self::sanitize_options_recursive( $value ); 397 } 398 399 return $sanitized; 400 } else { 401 if ( is_string( $options ) ) { 402 return \sanitize_text_field( $options ); 403 } 404 return $options; 405 } 406 } 382 407 } 383 408 } -
0-day-analytics/tags/3.9.1/classes/vendor/lists/views/class-fatals-view.php
r3384334 r3384467 212 212 <div class=""><span title="<?php \esc_html_e( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 213 213 </div> 214 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">214 <div class="http-request-args aadvana-pre-300"> 215 215 <?php 216 216 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/tags/3.9.1/classes/vendor/lists/views/class-table-view.php
r3384334 r3384467 220 220 <div class=""><span title="<?php \esc_html_e( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 221 221 </div> 222 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">222 <div class="http-request-args aadvana-pre-300"> 223 223 <?php 224 224 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/tags/3.9.1/classes/vendor/lists/views/class-transients-view.php
r3380967 r3384467 411 411 <div class=""><span title="<?php \esc_html_e( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 412 412 </div> 413 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">413 <div class="http-request-args aadvana-pre-300"> 414 414 <?php 415 415 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/tags/3.9.1/classes/vendor/lists/views/class-wp-mail-view.php
r3380967 r3384467 369 369 <div class=""><span title="<?php echo __( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 370 370 </div> 371 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">371 <div class="http-request-args aadvana-pre-300"> 372 372 <?php 373 373 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/tags/3.9.1/readme.txt
r3384334 r3384467 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 3.9. 06 Stable tag: 3.9.1 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 110 110 == Changelog == 111 111 112 = 3.9.1 = 113 Fixes translation called too early on settings save. FE fixes for darkskin. 114 112 115 = 3.9.0 = 113 116 Added DB table for PHP errors which collects data from the PHP environment. Code optimizations and bug fixes. -
0-day-analytics/trunk/advanced-analytics.php
r3384334 r3384467 11 11 * Plugin Name: 0 Day Analytics 12 12 * Description: Take full control of error log, crons, transients, plugins, requests, mails and DB tables. 13 * Version: 3.9. 013 * Version: 3.9.1 14 14 * Author: Stoil Dobrev 15 15 * Author URI: https://github.com/sdobreff/ … … 37 37 // Constants. 38 38 if ( ! defined( 'ADVAN_VERSION' ) ) { 39 define( 'ADVAN_VERSION', '3.9. 0' );39 define( 'ADVAN_VERSION', '3.9.1' ); 40 40 define( 'ADVAN_TEXTDOMAIN', '0-day-analytics' ); 41 41 define( 'ADVAN_NAME', '0 Day Analytics' ); … … 91 91 92 92 \register_shutdown_function( array( WP_Error_Handler::class, 'shutdown' ) ); 93 if ( ! Settings::get_option( 'plugin_exception_handler_disable' ) ) {94 \set_exception_handler( array( WP_Error_Handler::class, 'exception_handler' ) );95 }96 93 97 94 \add_action( 'doing_it_wrong_trigger_error', array( WP_Error_Handler::class, 'trigger_error' ), 0, 4 ); … … 100 97 101 98 \add_action( 'doing_it_wrong_run', array( WP_Error_Handler::class, 'action_doing_it_wrong_run' ), 99, 3 ); 99 100 if ( ! Settings::get_option( 'plugin_exception_handler_disable' ) ) { 101 \set_exception_handler( array( WP_Error_Handler::class, 'exception_handler' ) ); 102 } 102 103 103 104 // All deprecated error following their own idea of what to pass and how to pass it. That list covers the most common ones. -
0-day-analytics/trunk/classes/vendor/controllers/class-endpoints.php
r3384334 r3384467 288 288 'endpoints' => array( 289 289 array( 290 '(?P<transient_id>\ w+)' => array(290 '(?P<transient_id>\d+)' => array( 291 291 'methods' => array( 292 292 'method' => \WP_REST_Server::READABLE, -
0-day-analytics/trunk/classes/vendor/controllers/connectors/class-slack-api.php
r3384334 r3384467 123 123 124 124 return false; 125 } else { 126 $response_data = json_decode( $response['body'], true ); 125 } elseif ( ! empty( $response['body'] ) ) { 126 127 $response_data = json_decode( $response['body'], true ); 127 128 if ( $response_data['ok'] ) { 128 129 self::$valid_message = $response_data; -
0-day-analytics/trunk/classes/vendor/controllers/connectors/class-slack.php
r3374674 r3384467 14 14 use ADVAN\Helpers\Settings; 15 15 use ADVAN\Controllers\Slack_API; 16 use ADVAN\Helpers\Miscellaneous; 16 17 17 18 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. … … 131 132 public static function set_settings( array $options ): void { 132 133 // Sanitize each setting value. 133 $sanitized_options = array_map( 'sanitize_text_field',$options );134 $sanitized_options = Miscellaneous::sanitize_options_recursive( $options ); 134 135 135 136 $current_options = Settings::get_current_options(); … … 158 159 return self::$auth_key; 159 160 } 161 160 162 /** 161 * Returns the currently stored Slack AUTH key or falseif there is none.163 * Returns the currently stored Slack channel or an empty string if there is none. 162 164 * 163 * @return bool|string165 * @return string 164 166 * 165 167 * @since 1.8.0 … … 179 181 */ 180 182 public static function get_slack_setting( string $setting ) { 181 if ( ! isset( $setting ) ) {182 return '';183 }184 185 183 if ( isset( self::get_settings()[ $setting ] ) ) { 186 184 return self::get_settings()[ $setting ]; -
0-day-analytics/trunk/classes/vendor/controllers/connectors/class-telegram-api.php
r3374674 r3384467 115 115 116 116 return false; 117 } else{118 $response_data = json_decode( wp_remote_retrieve_body( $response ), true );117 } elseif ( ! empty( $response['body'] ) ) { 118 $response_data = json_decode( \wp_remote_retrieve_body( $response ), true ); 119 119 if ( ! empty( $response_data['ok'] ) && ! empty( $response_data['result']['is_bot'] ) && true === $response_data['result']['is_bot'] ) { 120 120 self::$valid_message = $response_data; -
0-day-analytics/trunk/classes/vendor/controllers/connectors/class-telegram.php
r3374674 r3384467 13 13 14 14 use ADVAN\Helpers\Settings; 15 use ADVAN\Helpers\Miscellaneous; 15 16 use ADVAN\Controllers\Telegram_API; 16 17 … … 131 132 public static function set_settings( array $options ): void { 132 133 // Sanitize each setting value. 133 $sanitized_options = array_map( 'sanitize_text_field',$options );134 $sanitized_options = Miscellaneous::sanitize_options_recursive( $options ); 134 135 135 136 $current_options = Settings::get_current_options(); … … 159 160 } 160 161 /** 161 * Returns the currently stored Telegram AUTH key or falseif there is none.162 * Returns the currently stored Telegram channel or an empty string if there is none. 162 163 * 163 * @return bool|string164 * @return string 164 165 * 165 166 * @since 1.8.5 … … 179 180 */ 180 181 public static function get_telegram_setting( string $setting ) { 181 if ( ! isset( $setting ) ) {182 return '';183 }184 185 182 if ( isset( self::get_settings()[ $setting ] ) ) { 186 183 return self::get_settings()[ $setting ]; -
0-day-analytics/trunk/classes/vendor/helpers/class-miscellaneous.php
r3384334 r3384467 380 380 ); 381 381 } 382 383 /** 384 * Recursively sanitize all values in an array. 385 * 386 * @param mixed $options Array or value to sanitize. 387 * 388 * @return mixed 389 * 390 * @since 3.9.1 391 */ 392 public static function sanitize_options_recursive( $options ) { 393 if ( is_array( $options ) ) { 394 $sanitized = array(); 395 foreach ( $options as $key => $value ) { 396 $sanitized[ $key ] = self::sanitize_options_recursive( $value ); 397 } 398 399 return $sanitized; 400 } else { 401 if ( is_string( $options ) ) { 402 return \sanitize_text_field( $options ); 403 } 404 return $options; 405 } 406 } 382 407 } 383 408 } -
0-day-analytics/trunk/classes/vendor/lists/views/class-fatals-view.php
r3384334 r3384467 212 212 <div class=""><span title="<?php \esc_html_e( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 213 213 </div> 214 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">214 <div class="http-request-args aadvana-pre-300"> 215 215 <?php 216 216 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/trunk/classes/vendor/lists/views/class-table-view.php
r3384334 r3384467 220 220 <div class=""><span title="<?php \esc_html_e( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 221 221 </div> 222 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">222 <div class="http-request-args aadvana-pre-300"> 223 223 <?php 224 224 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/trunk/classes/vendor/lists/views/class-transients-view.php
r3380967 r3384467 411 411 <div class=""><span title="<?php \esc_html_e( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 412 412 </div> 413 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">413 <div class="http-request-args aadvana-pre-300"> 414 414 <?php 415 415 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/trunk/classes/vendor/lists/views/class-wp-mail-view.php
r3380967 r3384467 369 369 <div class=""><span title="<?php echo __( 'Copy to clipboard (as raw HTML)', '0-day-analytics' ); ?>" class="dashicons dashicons-clipboard" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span> <span title="<?php esc_html_e( 'Share', '0-day-analytics' ); ?>" class="dashicons dashicons-share" style="cursor:pointer;font-family: dashicons !important;" aria-hidden="true"></span></div> 370 370 </div> 371 <div class="http-request-args aadvana-pre-300" style="background: #fff;color:#000;">371 <div class="http-request-args aadvana-pre-300"> 372 372 <?php 373 373 \esc_html_e( 'Loading please wait...', '0-day-analytics' ); -
0-day-analytics/trunk/readme.txt
r3384334 r3384467 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 3.9. 06 Stable tag: 3.9.1 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 110 110 == Changelog == 111 111 112 = 3.9.1 = 113 Fixes translation called too early on settings save. FE fixes for darkskin. 114 112 115 = 3.9.0 = 113 116 Added DB table for PHP errors which collects data from the PHP environment. Code optimizations and bug fixes.
Note: See TracChangeset
for help on using the changeset viewer.