Current Path: > home > transcarter > > > public_html > wp-content > plugins > > LayerSlider > assets > classes
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
class.km.autoupdate.plugins.v3.php | File | 1726 bytes | March 10 2023 20:45:24. | |
class.km.autoupdate.v3.php | File | 16249 bytes | March 10 2023 20:45:24. | |
class.ls.config.php | File | 2480 bytes | March 10 2023 20:45:24. | |
class.ls.dom.php | File | 4008 bytes | March 10 2023 20:45:24. | |
class.ls.elementor.php | File | 2533 bytes | March 10 2023 20:45:24. | |
class.ls.elementor.widget.php | File | 4505 bytes | March 10 2023 20:45:24. | |
class.ls.exportutil.php | File | 6149 bytes | March 10 2023 20:45:24. | |
class.ls.filesystem.php | File | 1953 bytes | March 10 2023 20:45:24. | |
class.ls.importutil.php | File | 9880 bytes | March 10 2023 20:45:24. | |
class.ls.modulemanager.php | File | 4185 bytes | March 10 2023 20:45:24. | |
class.ls.modules.php | File | 3000 bytes | March 10 2023 20:45:24. | |
class.ls.notifications.php | File | 13031 bytes | March 10 2023 20:45:24. | |
class.ls.popups.php | File | 4787 bytes | March 10 2023 20:45:24. | |
class.ls.posts.php | File | 10320 bytes | March 10 2023 20:45:24. | |
class.ls.remotedata.php | File | 2462 bytes | March 10 2023 20:45:24. | |
class.ls.revisions.php | File | 6622 bytes | March 10 2023 20:45:24. | |
class.ls.sliders.php | File | 21612 bytes | March 10 2023 20:45:24. | |
class.ls.sources.php | File | 7556 bytes | March 10 2023 20:45:24. | |
class.ls.templateutils.php | File | 6958 bytes | March 10 2023 20:45:24. | |
class.ls.transitionpresets.php | File | 785 bytes | March 10 2023 20:45:24. | |
class.ls.uninstaller.php | File | 4185 bytes | March 10 2023 20:45:24. | |
index.php | File | 27 bytes | March 10 2023 20:45:24. |
<?php namespace LayerSlider; use DOMDocument, DOMXPath, Exception; // Prevent direct file access defined( 'LS_ROOT_FILE' ) || exit; libxml_use_internal_errors( true ); class DOM { private $dom; private $nodes; public function __construct($html = null) { if( $html ) { $this->dom = new DOMDocument(); $this->dom->encoding = 'utf-8'; $this->dom->loadHTML( self::utf8_decode( preg_replace('~>\s+<~', '><', trim( $html ) ) ) ); $body = isset( $this->dom->documentElement ) ? $this->dom->documentElement->lastChild : $this->dom->getElementsByTagName('body')->item(0); $this->nodes = $body->childNodes; } } public function __get( $prop ) { if( 'length' === $prop ) { return $this->nodes ? $this->nodes->length : 0; } throw new Exception( 'Unknown property: ' . $prop ); } public function __toString() { preg_match('~<body>(.*)</body>~s', $this->dom->saveHTML(), $html); return isset( $html[1] ) ? $html[1] : ''; } public static function newDocument( $html ) { return new self( $html ); } public static function newDocumentHTML( $html ) { return new self( $html ); } public static function unloadDocuments() { // TODO } public function children() { if( $this->length ) { $item = $this->nodes->item(0); $length = $item->childNodes->length; foreach( $item->childNodes as $child ) { if( get_class( $child ) === 'DOMText') { $length = 0; break; } } if( $length ) { $doc = new self(); $doc->dom = &$this->dom; $doc->nodes = &$item->childNodes; return $doc; } } return $this; } public function append( $html ) { $doc = new DOMDocument(); $doc->encoding = 'utf-8'; $doc->loadHTML( self::utf8_decode('<div>'.preg_replace('~>\s+<~', '><', trim( $html )).'</div>') ); $body = isset( $doc->documentElement ) ? $doc->documentElement->lastChild : $doc->getElementsByTagName('body')->item(0); $i = $this->length; while ($i--) { $item = $this->nodes->item($i); foreach ($body->firstChild->childNodes as $node) { $item->appendChild($this->dom->importNode($node, true)); } } return $this; } public function find( $rule ) { $rule = '//' . preg_replace('/\s*,\s*/', ' | //', trim( $rule )); $rule = preg_replace('/\[(\w+)\*="([^"]*)"\]/', '[contains(@$1, "$2")]', $rule); $xpath = new DOMXPath( $this->dom ); $nodes = $xpath->query( $rule, $this->nodes->item(0) ); $doc = new self(); $doc->dom = &$this->dom; $doc->nodes = &$nodes; return $doc; } public function val( $value = null ) { return $this->attr( 'value', $value ); } public function html( $html ) { $i = $this->length; while( $i-- ) { $this->nodes->item( $i )->nodeValue = ''; } return $this->append($html); } public function attr( $attr, $value = null ) { // Getter if( is_string( $attr ) && $value === null ) { return $this->length ? $this->nodes->item(0)->getAttribute( $attr ) : ''; } // Setter if( is_string( $attr ) ) { $attr = [ $attr => $value ]; } $i = $this->length; while( $i-- ) { $item = $this->nodes->item( $i ); foreach( $attr as $key => &$val ) { if( ! is_array( $val ) ) { $item->setAttribute( $key, $val ); } } } return $this; } public function removeAttr($attr) { $i = $this->length; while( $i-- ) { $this->nodes->item( $i )->removeAttribute( $attr ); } return $this; } public function addClass( $class ) { $i = $this->length; while( $i-- ) { $node = $this->nodes->item($i); $classes = $node->getAttribute('class'); $node->setAttribute( 'class', $classes ? "$classes $class" : $class ); } return $this; } public static function utf8_decode( $str ) { if( function_exists('mb_convert_encoding') ) { return mb_convert_encoding( $str, 'HTML-ENTITIES', 'UTF-8'); } else { return htmlspecialchars_decode( utf8_decode( htmlentities( $str, ENT_COMPAT, 'utf-8', false ) ) ); } } }
SILENT KILLER Tool