📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: class-suggestion.php
<?php /** * Suggestion save and send email. * * @package documentor */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Suggestion * * @class Documentor_Suggestion * @package documentor */ class Documentor_Suggestion { /** * Send suggestion. * * @param array $data - suggestion data. * * @return boolean */ public static function send( $data ) { self::mail_before_send(); $success = self::process_mail( $data ); self::mail_after_send(); return $success; } /** * Process email using wp_mail function. * * @param array $data - Form block attributes. * * @return boolean */ public static function process_mail( $data ) { if ( isset( $data['from'] ) && ! empty( $data['from'] ) ) { $from = $data['from']; } elseif ( is_user_logged_in() ) { $from = ''; $user = wp_get_current_user(); if ( $user->display_name ) { $from = $user->display_name; } if ( $user->user_email ) { $from .= ( $from ? ' <' : '' ) . $user->user_email . ( $from ? '>' : '' ); } } else { $from = esc_html__( 'Anonymous', 'documentor' ); } $data['from'] = $from; $data['ip_address'] = self::get_ip_address(); $data['blogname'] = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); // phpcs:ignore $wp_email = 'wordpress@' . preg_replace( '#^www\.#', '', strtolower( $_SERVER['SERVER_NAME'] ) ); $email_to = documentor()->get_option( 'show_feedback_suggestion_email', 'documentor_single', '' ) ? documentor()->get_option( 'show_feedback_suggestion_email', 'documentor_single', '' ) : get_option( 'admin_email' ); // translators: %s - blog name. $subject = sprintf( esc_html__( '[%s] New Doc Suggestion', 'documentor' ), $data['blogname'] ); // Prepare headers. $headers = 'Content-Type: text/html; charset="' . get_option( 'blog_charset' ) . "\"\n"; $headers .= 'From: "' . esc_html( $data['from'] ) . "\" <$wp_email>\n"; $headers .= "Reply-To: \"$wp_email\" <$wp_email>\n"; // Prepare message. $message = self::get_mail_html( $data ); return wp_mail( $email_to, wp_specialchars_decode( $subject ), $message, $headers ); } /** * Get mail HTML template. * * @param array $attributes - From block attributes. * * @return string */ public static function get_mail_html( $attributes ) { ob_start(); documentor()->get_template_part( 'feedback-mail', array( 'data' => $attributes, ) ); return ob_get_clean(); } /** * Get a clients IP address * * @return string */ public static function get_ip_address() { $ipaddress = ''; // phpcs:disable if ( isset( $_SERVER['HTTP_CLIENT_IP'] ) ) { $ipaddress = $_SERVER['HTTP_CLIENT_IP']; } elseif ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif ( isset( $_SERVER['HTTP_X_FORWARDED'] ) ) { $ipaddress = $_SERVER['HTTP_X_FORWARDED']; } elseif ( isset( $_SERVER['HTTP_FORWARDED_FOR'] ) ) { $ipaddress = $_SERVER['HTTP_FORWARDED_FOR']; } elseif ( isset( $_SERVER['HTTP_FORWARDED'] ) ) { $ipaddress = $_SERVER['HTTP_FORWARDED']; } elseif ( isset( $_SERVER['REMOTE_ADDR'] ) ) { $ipaddress = $_SERVER['REMOTE_ADDR']; } else { $ipaddress = 'UNKNOWN'; } // phpcs:enable return $ipaddress; } /** * Mail before send. */ public static function mail_before_send() { add_filter( 'wp_mail_content_type', array( __CLASS__, 'get_content_type' ) ); } /** * Mail after send. */ public static function mail_after_send() { remove_filter( 'wp_mail_content_type', array( __CLASS__, 'get_content_type' ) ); } /** * Change wp_mail content type to HTML. * * @return string */ public static function get_content_type() { return 'text/html'; } }
Save