??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/rosestpetronal.nl/wp-content/plugins/contact-form-7/includes/filesystem.php
⬅ Kembali
<?php
/**
* Class for filesystem operations.
*/
class WPCF7_Filesystem {
/**
* The singleton instance.
*
* @var WPCF7_Filesystem
*/
private static $instance;
/**
* Filesystem object.
*
* @var WP_Filesystem_Base
*/
private $filesystem;
/**
* Retrieves the singleton instance.
*/
public static function get_instance() {
if ( empty( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Constructor.
*/
private function __construct() {
$this->connect();
}
/**
* Connects to the filesystem.
*
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/
private function connect() {
global $wp_filesystem;
if ( $this->filesystem ) {
return false;
}
require_once ABSPATH . 'wp-admin/includes/file.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
ob_start();
$credentials = request_filesystem_credentials( '' );
ob_end_clean();
if ( false === $credentials or ! WP_Filesystem( $credentials ) ) {
wp_trigger_error(
__FUNCTION__,
__( 'Could not access filesystem.', 'contact-form-7' )
);
}
if ( $wp_filesystem instanceof WP_Filesystem_Base ) {
$this->filesystem = $wp_filesystem;
} else {
$this->filesystem = new WP_Filesystem_Direct( 1 );
}
if ( ! defined( 'FS_CHMOD_DIR' ) ) {
define( 'FS_CHMOD_DIR', fileperms( ABSPATH ) & 0777 | 0755 );
}
if ( ! defined( 'FS_CHMOD_FILE' ) ) {
define( 'FS_CHMOD_FILE', fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 );
}
}
/**
* Changes filesystem permissions.
*
* @param string $file Path to the file.
* @param int|false $mode Optional. The permissions as octal number.
* @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 $this->filesystem->chmod( $file, $mode, $recursive );
}
/**
* Deletes a file or directory.
*
* @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 $this->filesystem->delete( $file, $recursive, $type );
}
/**
* Writes a string to a file.
*
* @param string $file Path to the file where to write the data.
* @param string $contents The data to write.
* @param int $mode The file permissions as octal number.
* @return bool True on success, false on failure.
*/
public function put_contents( $file, $contents, $mode = false ) {
return $this->filesystem->put_contents( $file, $contents, $mode );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 block-editor
dir
—
2026-06-11 12:00
📁 config-validator
dir
—
2026-06-11 12:00
📁 css
dir
—
2026-06-11 12:00
📁 js
dir
—
2026-06-11 12:00
📁 swv
dir
—
2026-06-11 12:00
🐘 capabilities.php
php
834 B
2026-06-11 12:00
🐘 contact-form-functions.php
php
10.3 KB
2026-06-11 12:00
🐘 contact-form-template.php
php
5.6 KB
2026-06-11 12:00
🐘 contact-form.php
php
30.7 KB
2026-06-11 12:00
🐘 controller.php
php
3.2 KB
2026-06-11 12:00
🐘 file.php
php
10.1 KB
2026-06-11 12:00
🐘 filesystem.php
php
3 KB
2026-06-11 12:00
🐘 form-tag.php
php
14.3 KB
2026-06-11 12:00
🐘 form-tags-manager.php
php
14.6 KB
2026-06-11 12:00
🐘 formatting.php
php
14.5 KB
2026-06-11 12:00
🐘 functions.php
php
17 KB
2026-06-11 12:00
🐘 html-formatter.php
php
20.7 KB
2026-06-11 12:00
🐘 integration.php
php
8.8 KB
2026-06-11 12:00
🐘 l10n.php
php
3.4 KB
2026-06-11 12:00
🐘 mail-tag.php
php
4.1 KB
2026-06-11 12:00
🐘 mail.php
php
15.1 KB
2026-06-11 12:00
🐘 pipe.php
php
2.6 KB
2026-06-11 12:00
🐘 pocket-holder.php
php
325 B
2026-06-11 12:00
🐘 rest-api.php
php
13 KB
2026-06-11 12:00
🐘 shortcodes.php
php
2.7 KB
2026-06-11 12:00
🐘 special-mail-tags.php
php
6.5 KB
2026-06-11 12:00
🐘 submission.php
php
20.2 KB
2026-06-11 12:00
🐘 upgrade.php
php
3.1 KB
2026-06-11 12:00
🐘 validation-functions.php
php
6.7 KB
2026-06-11 12:00
🐘 validation.php
php
3.3 KB
2026-06-11 12:00