$40 GRAYBYTE WORDPRESS FILE MANAGER $25

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.malloca.com/wp-content/plugins/code-snippets-pro/php/

HOME
Current File : /home/bqrcodec/contact.malloca.com/wp-content/plugins/code-snippets-pro/php//class-licensing.php
<?php

namespace Code_Snippets;

use  Freemius ;
use  Freemius_Exception ;
use function  fs_dynamic_init ;
/**
 * Handles interfacing with the Freemius SDK and API.
 *
 * @package Code_Snippets
 */
class Licensing
{
    /**
     * Freemius product ID.
     */
    const  PRODUCT_ID = 10565 ;
    /**
     * Freemius public key.
     */
    const  PUBLIC_KEY = 'pk_107ff34fc0b2a9700c150c1acf13a' ;
    /**
     * Freemius SDK instance.
     *
     * @var Freemius
     */
    public  $sdk ;
    /**
     * Class constructor.
     *
     * @throws Freemius_Exception Freemius fails to initialise.
     */
    public function __construct()
    {
        $plugin = code_snippets();
        $this->enable_multisite_support();
        $this->register_hooks();
    }
    
    /**
     * Create the necessary constant to enable multisite support within the Freemius SDK.
     *
     * @return void
     */
    private function enable_multisite_support()
    {
        $constant_name = sprintf( 'WP_FS__PRODUCT_%d_MULTISITE', self::PRODUCT_ID );
        if ( !defined( $constant_name ) ) {
            define( $constant_name, true );
        }
    }
    
    /**
     * Determine whether the current site has an active license.
     *
     * @return bool
     */
    public function is_licensed()
    {
        return true;
    }
    
    /**
     * Determine whether the current site has any license, including an expired license.
     *
     * @return bool
     */
    public function was_licensed()
    {
        return true;
    }
    
    /**
     * Register hooks with Freemius.
     *
     * @return void
     */
    public function register_hooks()
    {
        add_action( 'after_uninstall', [ $this, 'uninstall_hook' ] );
        add_filter(
            'is_submenu_visible',
            [ $this, 'is_submenu_visible' ],
            10,
            2
        );
        add_filter( 'plugin_icon', [ $this, 'plugin_icon' ] );
    }
    
    /**
     * Get the relative path to the plugin icon.
     *
     * @return string
     */
    public function plugin_icon()
    {
        return dirname( CODE_SNIPPETS_FILE ) . '/assets/icon.svg';
    }
    
    /**
     * Control whether a Freemius submenu is visible.
     *
     * @param bool   $is_visible Whether the submenu is visible.
     * @param string $submenu_id Submenu ID.
     *
     * @return bool
     */
    public function is_submenu_visible( $is_visible, $submenu_id )
    {
        return ( 'account' === $submenu_id ? $is_visible : false );
    }
    
    /**
     * Clean up data when the plugin is uninstalled.
     *
     * @return void
     */
    public function uninstall_hook()
    {
        require_once __DIR__ . '/uninstall.php';
        Uninstall\uninstall_plugin();
    }
    
    /**
     * Override default strings used by Freemius to better integrate it with the rest of the plugin.
     *
     * @return void
     */
    public function override_strings()
    {
		//
    }

}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
admin-menus
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
export
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
front-end
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
settings
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
views
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
class-active-snippets.php
6.827 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-admin.php
9.028 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-command.php
15.078 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-contextual-help.php
6.101 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-db.php
7.98 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-licensing.php
2.886 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-list-table.php
37.864 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-plugin.php
8.257 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-rest-api.php
1.416 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-snippet.php
16.934 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-upgrade.php
6.263 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
class-validator.php
6.809 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
editor.php
3.053 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
load.php
1.299 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
snippet-ops.php
16.085 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
strings.php
2.165 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
uninstall.php
1.921 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF