403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.217.131
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-35-cloud-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/fluentcampaign-pro/app/Http/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/fluentcampaign-pro/app/Http/Controllers/LicenseController.php
<?php

namespace FluentCampaign\App\Http\Controllers;

use FluentCampaign\App\Services\PluginManager\LicenseManager;
use FluentCrm\App\Http\Controllers\Controller;
use FluentCrm\Framework\Request\Request;

class LicenseController extends Controller
{
    public function getStatus(Request $request, LicenseManager $licenseManager)
    {
        $licenseManager->verifyRemoteLicense(true);

        $data = $licenseManager->getLicenseDetails();

        $status = $data['status'];

        if($status == 'expired') {
            $data['renew_url'] = $licenseManager->getRenewUrl($data['license_key']);
        }

        $data['purchase_url'] = $licenseManager->getVar('purchase_url');

        unset($data['license_key']);
        return $data;
    }

    public function saveLicense(Request $request, LicenseManager $licenseManager)
    {
        $licenseKey = $request->get('license_key');
        $response = $licenseManager->activateLicense($licenseKey);
        if(is_wp_error($response)) {
            return $this->sendError([
                'message' => $response->get_error_message()
            ]);
        }
        return [
            'license_data' => $response,
            'message' => __('Your license key has been successfully updated', 'fluentcampaign-pro')
        ];
    }

    public function deactivateLicense(Request $request,  LicenseManager $licenseManager)
    {
        $response = $licenseManager->deactivateLicense();
        if(is_wp_error($response)) {
            return $this->sendError([
                'message' => $response->get_error_message()
            ]);
        }

        unset($response['license_key']);

        return [
            'license_data' => $response,
            'message' => __('Your license key has been successfully deactivated', 'fluentcampaign-pro')
        ];

    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit