AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 3.12.148.210   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/cf7-styler/freemius/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/cf7-styler/freemius/includes/fs-html-escaping-functions.php
<?php
    /**
     * @package     Freemius
     * @copyright   Copyright (c) 2015, Freemius, Inc.
     * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
     * @since       2.5.10
     */
    if ( ! defined( 'ABSPATH' ) ) {
        exit;
    }

    if ( ! function_exists( 'fs_html_get_allowed_kses_list' ) ) {
        /**
         * Get the allowed KSES list for sanitizing HTML output on the template files.
         *
         * @return array
         */
        function fs_html_get_allowed_kses_list() {
            $common_attributes = array(
                'id'     => true,
                'class'  => true,
                'style'  => true,
                'data-*' => true,
            );

            return array(
                'a'      => array_merge(
                    $common_attributes,
                    array(
                        'href'   => true,
                        'title'  => true,
                        'target' => true,
                        'rel'    => true,
                    )
                ),
                'img'    => array_merge(
                    $common_attributes,
                    array(
                        'src'    => true,
                        'alt'    => true,
                        'title'  => true,
                        'width'  => true,
                        'height' => true,
                    )
                ),
                'br'     => $common_attributes,
                'em'     => $common_attributes,
                'small'  => $common_attributes,
                'strong' => $common_attributes,
                'u'      => $common_attributes,
                'b'      => $common_attributes,
                'i'      => $common_attributes,
                'hr'     => $common_attributes,
                'span'   => $common_attributes,
                'p'      => $common_attributes,
                'div'    => $common_attributes,
                'ul'     => $common_attributes,
                'li'     => $common_attributes,
                'ol'     => $common_attributes,
                'h1'     => $common_attributes,
                'h2'     => $common_attributes,
                'h3'     => $common_attributes,
                'h4'     => $common_attributes,
                'h5'     => $common_attributes,
                'h6'     => $common_attributes,
                'button' => $common_attributes,
                'sup'    => $common_attributes,
                'sub'    => $common_attributes,
                'nobr'   => $common_attributes,
            );
        }
    }

    if ( ! function_exists( 'fs_html_get_classname' ) ) {
        /**
         * Gets an HTML class attribute value.
         *
         * @param string|string[] $classes
         *
         * @return string
         */
        function fs_html_get_classname( $classes ) {
            if ( is_array( $classes ) ) {
                $classes = implode( ' ', $classes );
            }

            return esc_attr( $classes );
        }
    }

    if ( ! function_exists( 'fs_html_get_attributes' ) ) {
        /**
         * Gets a properly escaped HTML attributes string from an associative array.
         *
         * @param array<string, string> $attributes A key/value pair array of attributes.
         *
         * @return string
         */
        function fs_html_get_attributes( $attributes ) {
            $attribute_string = '';

            foreach ( $attributes as $key => $value ) {
                $attribute_string .= sprintf(
                    ' %1$s="%2$s"',
                    esc_attr( $key ),
                    esc_attr( $value )
                );
            }

            return $attribute_string;
        }
    }

    if ( ! function_exists( 'fs_html_get_sanitized_html' ) ) {
        /**
         * Get sanitized HTML for template files.
         *
         * @param string $raw_html
         *
         * @return string
         * @since 2.5.10
         */
        function fs_html_get_sanitized_html( $raw_html ) {
            return wp_kses( $raw_html, fs_html_get_allowed_kses_list() );
        }
    }

Anon7 - 2022
AnonSec Team