403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.11/wp-content/plugins/fluentform/app/Http/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.11/wp-content/plugins/fluentform/app/Http/Controllers/FormIntegrationController.php
<?php

namespace FluentForm\App\Http\Controllers;

use FluentForm\App\Services\Integrations\FormIntegrationService;

class FormIntegrationController extends Controller
{
    public function index(FormIntegrationService $integrationService)
    {
        try {
            $formId = (int) $this->request->get('form_id');
            return $this->sendSuccess(
                $integrationService->get($formId)
            );
        } catch (\Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage(),
            ], 422);
        }
    }
    
    public function find(FormIntegrationService $integrationService)
    {
        try {
            $integration = $integrationService->find($this->request->all());
            return $this->sendSuccess($integration);
        } catch (\Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage(),
            ], 422);
        }
    }
    
    public function update(FormIntegrationService $integrationService)
    {
        try {
            $integration = $integrationService->update($this->request->all());
            return $this->sendSuccess($integration);
        } catch (\Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage()
            ], 422);
        }
    }
    
    public function delete(FormIntegrationService $integrationService)
    {
        try {
            $formId = intval($this->request->get('form_id'));
            $id = intval($this->request->get('integration_id'));
            $integrationService->delete($id, $formId);
            return $this->sendSuccess([
                'message' => __('Successfully deleted the Integration.', 'fluentform'),
            ], 200);
        } catch (\Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage(),
            ], 422);
        }
    }
    
    public function integrationListComponent()
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'integration_name' => 'sanitize_text_field',
                'list_id'          => 'sanitize_text_field',
            ];
            $attributes = fluentform_backend_sanitizer($attributes, $sanitizeMap);
            
            $integrationName = $attributes['integration_name'];
            $formId = (int)$attributes['form_id'];
            $listId = $attributes['list_id'];
            $merge_fields = false;
            $merge_fields = apply_filters_deprecated(
                'fluentform_get_integration_merge_fields_' . $integrationName,
                [
                    $merge_fields,
                    $listId,
                    $formId
                ],
                FLUENTFORM_FRAMEWORK_UPGRADE,
                'fluentform/get_integration_merge_fields_' . $integrationName,
                'Use fluentform/get_integration_merge_fields_' . $integrationName . ' instead of fluentform_get_integration_merge_fields_' . $integrationName
            );

            $merge_fields = apply_filters('fluentform/get_integration_merge_fields_' . $integrationName, $merge_fields, $listId, $formId);
            
            return $this->sendSuccess([
                'merge_fields' => $merge_fields,
            ]);
        } catch (\Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage(),
            ], 422);
        }
    }
    
}

Youez - 2016 - github.com/yon3zu
LinuXploit