Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
wp-cli /
export-command /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Export_Command.php
14.32
KB
-rw-r--r--
WP_Export_Base_Writer.php
428
B
-rw-r--r--
WP_Export_Exception.php
62
B
-rw-r--r--
WP_Export_File_Writer.php
830
B
-rw-r--r--
WP_Export_Oxymel.php
518
B
-rw-r--r--
WP_Export_Query.php
14.01
KB
-rw-r--r--
WP_Export_Returner.php
1.06
KB
-rw-r--r--
WP_Export_Split_Files_Writer.p...
3.5
KB
-rw-r--r--
WP_Export_Term_Exception.php
67
B
-rw-r--r--
WP_Export_WXR_Formatter.php
9.71
KB
-rw-r--r--
WP_Export_XML_Over_HTTP.php
1.34
KB
-rw-r--r--
WP_Iterator_Exception.php
57
B
-rw-r--r--
WP_Map_Iterator.php
346
B
-rw-r--r--
WP_Post_IDs_Iterator.php
1.57
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : WP_Export_Split_Files_Writer.php
<?php class WP_Export_Split_Files_Writer extends WP_Export_Base_Writer { private $max_file_size; private $destination_directory; private $filename_template; private $before_posts_xml; private $after_posts_xml; private $f; private $next_file_number = 0; private $current_file_size = 0; private $available_sections = array( 'header', 'site_metadata', 'authors', 'categories', 'tags', 'nav_menu_terms', 'custom_taxonomies_terms', 'rss2_head_action', ); private $subsequent_sections = array(); public function __construct( $formatter, $writer_args = [] ) { parent::__construct( $formatter ); if ( ! defined( 'MB_IN_BYTES' ) ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- WordPress native constants. define( 'MB_IN_BYTES', 1024 * 1024 ); } //TODO: check if args are not missing if ( is_null( $writer_args['max_file_size'] ) ) { $this->max_file_size = 15 * MB_IN_BYTES; } elseif ( WP_CLI_EXPORT_COMMAND_NO_SPLIT === (string) $writer_args['max_file_size'] ) { $this->max_file_size = WP_CLI_EXPORT_COMMAND_NO_SPLIT; } else { $this->max_file_size = $writer_args['max_file_size'] * MB_IN_BYTES; } // Filter and handle condition where subsequent export files should not contain // all of the export sections if ( is_array( $writer_args['include_once'] ) && ! empty( $writer_args['include_once'] ) ) { $this->subsequent_sections = array_diff( $this->available_sections, $writer_args['include_once'] ); } $this->destination_directory = $writer_args['destination_directory']; $this->filename_template = $writer_args['filename_template']; $this->before_posts_xml = $this->formatter->before_posts(); $this->after_posts_xml = $this->formatter->after_posts(); } public function export() { $this->start_new_file(); foreach ( $this->formatter->posts() as $post_xml ) { if ( WP_CLI_EXPORT_COMMAND_NO_SPLIT !== $this->max_file_size && $this->current_file_size + strlen( $post_xml ) > $this->max_file_size ) { $this->start_new_file(); } $this->write( $post_xml ); } $this->close_current_file(); } protected function write( $xml ) { $res = fwrite( $this->f, $xml ); if ( false === $res ) { throw new WP_Export_Exception( 'WP Export: error writing to export file.' ); } $this->current_file_size += strlen( $xml ); } private function start_new_file() { if ( $this->f ) { $this->close_current_file(); } $file_path = $this->next_file_path(); $this->f = fopen( $file_path, 'w' ); if ( ! $this->f ) { throw new WP_Export_Exception( "WP Export: error opening {$file_path} for writing." ); } // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Possibly used by third party extension. do_action( 'wp_export_new_file', $file_path ); $this->current_file_size = 0; $this->write( $this->before_posts_xml ); if ( 1 === $this->next_file_number && ! empty( $this->subsequent_sections ) ) { $this->before_posts_xml = $this->formatter->before_posts( $this->subsequent_sections ); } } private function close_current_file() { if ( ! $this->f ) { return; } $this->write( $this->after_posts_xml ); fclose( $this->f ); } private function next_file_name() { $next_file_name = sprintf( $this->filename_template, $this->next_file_number ); ++$this->next_file_number; return $next_file_name; } private function next_file_path() { return untrailingslashit( $this->destination_directory ) . DIRECTORY_SEPARATOR . $this->next_file_name(); } }
Close