$74 GRAYBYTE WORDPRESS FILE MANAGER $31

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.ucceurope.co/wp-content/plugins/wp-all-import-pro/classes/

HOME
Current File : /home/bqrcodec/contact.ucceurope.co/wp-content/plugins/wp-all-import-pro/classes//nested.php
<?php

if ( ! class_exists('PMXI_Nested')){

	class PMXI_Nested{
		protected $nested_files;
		protected $xpath;
		protected $dom;
		protected $elements;
		public $xml;

		public function __construct( $dom, $nested_files, $xml, $xpath, $elements = false){
			$this->dom = $dom;
			$this->nested_files = $nested_files;
			$this->xpath = $xpath;
			$this->xml = $xml;
			$this->elements = $elements;
		}

		public function merge(){

			/* Merge nested XML/CSV files */		
			if ( ! empty($this->nested_files) ){				
				$tmp_files = array();
				foreach ($this->nested_files as $key => $nfile) {
					$factory = XmlImportParser::factory($this->xml, $this->xpath, $nfile, $tmp_file)->parse();
					$nested_fileURL = array_shift($factory); $tmp_files[] = $tmp_file;
					if ( ! empty($nested_fileURL) ){
						$errors = new WP_Error();

						$uploader = new PMXI_Upload($nested_fileURL, $errors);
						$upload_result = $uploader->url();
						
						if ($upload_result instanceof WP_Error){
							$errors = $upload_result;
						}
						else{				
							$source    = $upload_result['source'];
							$filePath  = $upload_result['filePath'];				
							if ( ! empty($upload_result['root_element'])) 
								$root_element = $upload_result['root_element'];
							else
								$root_element = '';
							$feed_type = $upload_result['feed_type'];
						}	

						unset($uploader);						

						$nested_xml = file_get_contents($filePath);
								      						    					    					    			    					    					    
				    	if ( ! empty($nested_xml) )
				      	{
				      		PMXI_Import_Record::preprocessXml($nested_xml);								
							
							if ( PMXI_Import_Record::validateXml($nested_xml) === true ){

					      		$nestedDom = new DOMDocument('1.0', 'UTF-8');
					      		$nestedold = libxml_use_internal_errors(true);
								$nestedDom->loadXML($nested_xml);				
								libxml_use_internal_errors($nestedold);
								$second = $nestedDom->documentElement;

								if ($second->hasChildNodes()) {
									
									foreach($second->childNodes as $node)
							        {
							           $importNode = $this->dom->importNode($node, true);
							           $this->dom->documentElement->appendChild($importNode);							           
							        }
							        
						        	$this->xml = ($this->elements) ? $this->dom->saveXML($this->elements->item(0)) : $this->dom->saveXML();
						        }
								unset($nestedDom);
							}
				      	}					    
					}
				}					
				foreach ($tmp_files as $tmp_file) { // remove all temporary files created
					@unlink($tmp_file);
				}	
			}
		}

		public function get_xml(){
			return $this->xml;
		}

	}
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0755
PHPExcel
--
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0755
XmlStreamReader
--
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0755
filesystem
--
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0755
ftp
--
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0755
PHPExcel.php
30.876 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
api.php
29.057 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
arraytoxml.php
2.221 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
chunk.php
11.885 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
cli.php
7.526 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
config.php
2.214 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
download.php
0.944 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
error.php
3.07 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
handler.php
4.599 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
helper.php
4.105 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
input.php
2.367 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
installer.php
1.022 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
nested.php
2.593 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
render.php
13.154 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
session.php
1.956 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
updater.php
24.927 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
upload.php
43.045 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644
zip.php
1.596 KB
25 Jul 2024 12.20 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF