!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-cli/export-command/src/   drwxr-xr-x
Free 714.48 GB of 879.6 GB (81.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     WP_Post_IDs_Iterator.php (1.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class WP_Post_IDs_Iterator implements Iterator {
    private $limit = 100;
    private $post_ids;
    private $ids_left;
    private $results = array();

    public function __construct( $post_ids, $limit = null ) {
        $this->db       = $GLOBALS['wpdb'];
        $this->post_ids = $post_ids;
        $this->ids_left = $post_ids;
        if ( ! is_null( $limit ) ) {
            $this->limit = $limit;
        }
    }

    public function current() {
        return $this->results[ $this->index_in_results ];
    }

    public function key() {
        return $this->global_index;
    }

    public function next() {
        ++$this->index_in_results;
        ++$this->global_index;
    }

    public function rewind() {
        $this->results          = array();
        $this->global_index     = 0;
        $this->index_in_results = 0;
        $this->ids_left         = $this->post_ids;
    }

    public function valid() {
        if ( isset( $this->results[ $this->index_in_results ] ) ) {
            return true;
        }
        if ( empty( $this->ids_left ) ) {
            return false;
        }
        $has_posts = $this->load_next_posts_from_db();
        if ( ! $has_posts ) {
            return false;
        }
        $this->index_in_results = 0;
        return true;
    }

    private function load_next_posts_from_db() {
        $next_batch_post_ids = array_splice( $this->ids_left, 0, $this->limit );
        $in_post_ids_sql     = _wp_export_build_IN_condition( 'ID', $next_batch_post_ids );
        $this->results       = $this->db->get_results( "SELECT * FROM {$this->db->posts} WHERE {$in_post_ids_sql}" );
        if ( ! $this->results ) {
            if ( $this->db->last_error ) {
                throw new WP_Iterator_Exception( "Database error: {$this->db->last_error}" );
            } else {
                return false;
            }
        }
        return true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0224 ]--