HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/gopalak/public_html/wp-content/plugins/restrict-user-access/admin/screen_account.php
<?php
/**
 * @package Restrict User Access
 * @author Joachim Jensen <joachim@dev.institute>
 * @license GPLv3
 * @copyright 2024 by Joachim Jensen
 */

defined('ABSPATH') || exit;

class RUA_Admin_Screen_Account extends RUA_Admin
{
    /** @var Freemius */
    protected $freemius;

    public function __construct($freemius)
    {
        parent::__construct();
        $this->freemius = $freemius;
    }

    /**
     * @inheritDoc
     */
    public function get_screen()
    {
        return 'user-access_page_wprua-account';
    }

    /**
     * @inheritDoc
     */
    public function authorize_user()
    {
        return true;
    }

    /**
     * @inheritDoc
     */
    public function prepare_screen()
    {
        $this->freemius->add_filter('hide_account_tabs', '__return_true');
        $this->freemius->add_filter('hide_billing_and_payments_info', '__return_true');

        $path = plugin_dir_path(dirname(__FILE__)) . 'view/';
        $view = WPCAView::make($path . 'account_login.php', [
            'list' => [
                __('Manage Subscription', 'restrict-user-access'),
                __('Access Invoices', 'restrict-user-access'),
                __('View Licenses', 'restrict-user-access')
            ]
        ]);
        $this->freemius->add_action('after_account_details', [$view, 'render']);
    }

    /**
     * @inheritDoc
     */
    public function admin_hooks()
    {
    }

    /**
     * @inheritDoc
     */
    public function add_scripts_styles()
    {
    }
}