/home/altere25/sportzsoftlivemeet.com/wp-content/plugins/easy-wp-smtp/src
NameSizeModeActions
Admin/-0755rm
Compatibility/-0755rm
Helpers/-0755rm
Migrations/-0755rm
Providers/-0755rm
Queue/-0755rm
Reports/-0755rm
Tasks/-0755rm
UsageTracking/-0755rm
AbstractConnection.php11160644editdlrm
Conflicts.php142330644editdlrm
Connect.php93640644editdlrm
Connection.php9640644editdlrm
ConnectionInterface.php10380644editdlrm
ConnectionsManager.php7650644editdlrm
Core.php317310644editdlrm
DBRepair.php61890644editdlrm
Debug.php34680644editdlrm
Geo.php67910644editdlrm
MailCatcher.php13900644editdlrm
MailCatcherInterface.php11850644editdlrm
MailCatcherTrait.php115880644editdlrm
MailCatcherV6.php12340644editdlrm
OptimizedEmailSending.php11730644editdlrm
Options.php383090644editdlrm
Processor.php119920644editdlrm
SiteHealth.php129530644editdlrm
Uploads.php47430644editdlrm
WP.php182170644editdlrm
WPMailArgs.php46070644editdlrm
WPMailInitiator.php41170644editdlrm
Edit: /home/altere25/sportzsoftlivemeet.com/wp-content/plugins/easy-wp-smtp/src/Uploads.php (4743B)
$upload_root, 'url' => trailingslashit( $upload_dir['baseurl'] ) . $dir, ]; } /** * Create .htaccess file in the EasyWPSMTP upload directory. * * @since 2.1.0 * * @return bool True when the .htaccess file exists, false on failure. */ public static function create_upload_dir_htaccess_file() { /** * Filters create upload dir htaccess file. * * @since 2.1.0 * * @param bool $is_create Creates upload dir htaccess file. */ if ( ! apply_filters( 'easy_wp_smtp_uploads_create_upload_dir_htaccess_file', true ) ) { return false; } $upload_dir = self::upload_dir(); if ( is_wp_error( $upload_dir ) ) { return false; } $htaccess_file = wp_normalize_path( trailingslashit( $upload_dir['path'] ) . '.htaccess' ); $cache_key = 'easy_wp_smtp_upload_dir_htaccess_file'; if ( is_file( $htaccess_file ) ) { $cached_stat = get_transient( $cache_key ); $stat = array_intersect_key( stat( $htaccess_file ), [ 'size' => 0, 'mtime' => 0, 'ctime' => 0, ] ); if ( $cached_stat === $stat ) { return true; } @unlink( $htaccess_file ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged } if ( ! function_exists( 'insert_with_markers' ) ) { require_once ABSPATH . 'wp-admin/includes/misc.php'; } /** * Filters upload dir htaccess file content. * * @since 2.1.0 * * @param bool $content Upload dir htaccess file content. */ $contents = apply_filters( 'easy_wp_smtp_uploads_create_upload_dir_htaccess_file_content', '# Disable PHP and Python scripts parsing. SetHandler none SetHandler default-handler RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo RemoveType .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo php_flag engine off php_flag engine off php_flag engine off Header set X-Robots-Tag "noindex" ' ); $created = insert_with_markers( $htaccess_file, 'EasyWPSMTP', $contents ); if ( $created ) { clearstatcache( true, $htaccess_file ); $stat = array_intersect_key( stat( $htaccess_file ), [ 'size' => 0, 'mtime' => 0, 'ctime' => 0, ] ); set_transient( $cache_key, $stat ); } return $created; } /** * Create index.html file in the specified directory if it doesn't exist. * * @since 2.1.0 * * @param string $path Path to the directory. * * @return int|false Number of bytes that were written to the file, or false on failure. */ public static function create_index_html_file( $path ) { if ( ! is_dir( $path ) || is_link( $path ) ) { return false; } $index_file = wp_normalize_path( trailingslashit( $path ) . 'index.html' ); // Do nothing if index.html exists in the directory. if ( file_exists( $index_file ) ) { return false; } // Create empty index.html. return file_put_contents( $index_file, '' ); // phpcs:ignore WordPress.WP.AlternativeFunctions } }