Uname:Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64

Base Dir : /home/httpd/vhosts/comeonline.ch/httpdocs

User : onlineadmin


403WebShell
403Webshell
Server IP : 80.74.154.100  /  Your IP : 216.73.217.0
Web Server : Apache
System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64
User : onlineadmin ( 10487)
PHP Version : 8.5.7
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/siteorigin-panels/compat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/siteorigin-panels/compat//seopress.php
<?php
function siteorigin_panels_seopress_compat( $content ) {
	$id = empty( $_GET['post'] ) ? (int) $_GET['post_id'] : (int) $_GET['post'];
	if ( ! empty( $id ) ) {
		$page_builder_data = get_post_meta( $id, 'panels_data', true );
		if ( ! empty( $page_builder_data ) ) {
			$content = SiteOrigin_Panels_Admin::single()->generate_panels_preview( $id, $page_builder_data );

			// To help with consistent results, we strip out certain elements.
			if ( class_exists( 'DOMDocument' ) && class_exists( 'DOMXPath' ) ) {
				$whitelist = array(
					'p', 'a', 'img', 'caption', 'br',
					'blockquote', 'cite', 'em', 'strong', 'i', 'b', 'q',
					'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
					'ul', 'ol', 'li', 'table', 'tr', 'th', 'td',
				);
				$dom = new DOMDocument();
				$dom->loadHTML( $content );

				$xpath = new DOMXPath( $dom );
				$elements = $xpath->query( '//iframe | //script | //style | //link' );
				foreach ( $elements as $element ) {
					$element->parentNode->removeChild( $element );
				}
				$dom->removeChild( $dom->doctype );

				// Remove elements that are not in the whitelist.
				$elements = $xpath->query( '//*' );
				foreach ( $elements as $element ) {
					if ( ! in_array( $element->nodeName, $whitelist ) ) {
						$content = $dom->createDocumentFragment();
						while ( $element->childNodes->length > 0 ) {
							$content->appendChild( $element->childNodes->item( 0 ) );
						}
						$element->parentNode->replaceChild( $content, $element );
					}
				}

				$content = $dom->saveHTML();
			}
		}
	}

	return $content;
}
add_action( 'seopress_dom_analysis_get_post_content', 'siteorigin_panels_seopress_compat', 15, 2 );

Youez - 2016 - github.com/yon3zu
LinuXploit