Example #1
0
<?php

require_once '../../../../wp-config.php';
require_once PARSER_DIR . 'includes/parser/video_parser.php';
$vParser = new VParser();
$post_id = $_GET['post_id'] * 1;
if ($post = get_posts(['include' => [$post_id]])) {
    if (preg_match('/src="(.*?)"/', $post[0]->post_content, $p)) {
        $player_link = $p[1];
        preg_match('/http(s?):\\/\\/(.*?)\\//', $player_link, $pp);
        if ($site_name = $vParser->findSiteByDomainName($pp[2])) {
            $vParser->selectSite($site_name);
            header("Content-Type: text/html; charset=UTF-8");
            if ($header_line = $vParser->getHeaderAdvBlocking()) {
                header($header_line);
            }
            ?>
            <html>
            	<style>
					body, html{
						margin: 0;
						padding: 0;
					}
					embed, iframe{
						width: 100% !important;
						height: 100% !important;
					}
				</style>
                <meta name="robots" content="noindex, nofollow">
            </html>
            <?php