SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > > > > content-control


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins////content-control

NameTypeSizeLast ModifiedActions
assets Directory - -
classes Directory - -
dist Directory - -
inc Directory - -
vendor Directory - -
vendor-prefixed Directory - -
content-control.php File 4084 bytes May 27 2025 12:57:52.
contributors.txt File 48 bytes October 16 2019 03:51:26.
index.php File 82 bytes September 18 2023 05:47:10.
readme.txt File 23325 bytes May 27 2025 12:57:52.
uninstall.php File 614 bytes May 09 2025 02:30:24.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins////content-control/content-control.php

<?php
/**
 * Plugin Name: Content Control
 * Plugin URI: https://contentcontrolplugin.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=plugin-uri
 * Description: Restrict content to logged in/out users or specific user roles. Restrict access to certain parts of a page/post. Control the visibility of widgets.
 * Version: 2.6.5
 * Author: Code Atlantic
 * Author URI: https://code-atlantic.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=author-uri
 * Donate link: https://code-atlantic.com/donate/?utm_campaign=donations&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=donate-link
 * Text Domain: content-control
 *
 * Minimum PHP: 7.4
 * Minimum WP: 6.2
 *
 * @package    Content Control
 * @author     Code Atlantic
 * @copyright  Copyright (c) 2023, Code Atlantic LLC.
 */

namespace ContentControl;

defined( 'ABSPATH' ) || exit;

/**
 * Define plugin's global configuration.
 *
 * @return array<string,string|bool>
 */
function get_plugin_config() {
	return [
		'name'          => 'Content Control',
		'slug'          => 'content-control',
		'version'       => '2.6.5',
		'option_prefix' => 'content_control',
		// Maybe remove this and simply prefix `name` with `'Popup Maker'`.
		'text_domain'   => 'content-control',
		'fullname'      => 'Content Control',
		'min_php_ver'   => '7.4.0',
		'min_wp_ver'    => '6.2.0',
		'file'          => __FILE__,
		'basename'      => \plugin_basename( __FILE__ ),
		'url'           => \plugin_dir_url( __FILE__ ),
		'path'          => __DIR__ . \DIRECTORY_SEPARATOR,
		'api_url'       => 'https://contentcontrolplugin.com/',
	];
}

/**
 * Get config or config property.
 *
 * @param string|null $key Key of config item to return.
 *
 * @return mixed
 */
function config( $key = null ) {
	$config = get_plugin_config();

	if ( ! isset( $key ) ) {
		return $config;
	}

	return isset( $config[ $key ] ) ? $config[ $key ] : false;
}

/**
 * Register autoloader.
 */
require_once __DIR__ . '/classes/Plugin/Autoloader.php';

if ( ! Plugin\Autoloader::init( config( 'name' ), config( 'path' ) ) ) {
	return;
}

/**
 * Check plugin prerequisites.
 *
 * @return bool
 */
function check_prerequisites() {

	// 1.a Check Prerequisites.
	$prerequisites = new \ContentControl\Plugin\Prerequisites( [
		[
			// a. PHP Min Version.
			'type'    => 'php',
			'version' => config( 'min_php_ver' ),
		],
		// a. PHP Min Version.
		[
			'type'    => 'wp',
			'version' => config( 'min_wp_ver' ),
		],
	]  );

	/**
	 * 1.b If there are missing requirements, render error messaging and return.
	 */
	if ( $prerequisites->check() === false ) {
		$prerequisites->setup_notices();

		return false;
	}

	return true;
}

add_action(
	'plugins_loaded',
	function () {
		if ( check_prerequisites() ) {
			plugin_instance();
		}
	},
	// Core plugin loads at 11, Pro loads at 12 & addons load at 13.
	11
);

/**
 * Initiates and/or retrieves an encapsulated container for the plugin.
 *
 * This kicks it all off, loads functions and initiates the plugins main class.
 *
 * @return \ContentControl\Plugin\Core
 */
function plugin_instance() {
	static $plugin;

	if ( ! $plugin instanceof \ContentControl\Plugin\Core ) {
		require_once __DIR__ . '/inc/functions.php';
		require_once __DIR__ . '/inc/deprecated.php';
		$plugin = new Plugin\Core( get_plugin_config() );
	}

	return $plugin;
}

/**
 * Easy access to all plugin services from the container.
 *
 * @see \ContentControl\plugin_instance
 *
 * @param string|null $service_or_config Key of service or config to fetch.
 * @return \ContentControl\Plugin\Core|mixed
 */
function plugin( $service_or_config = null ) {
	if ( ! isset( $service_or_config ) ) {
		return plugin_instance();
	}

	return plugin_instance()->get( $service_or_config );
}

\register_activation_hook( __FILE__, '\ContentControl\Plugin\Install::activate_plugin' );
\register_deactivation_hook( __FILE__, '\ContentControl\Plugin\Install::deactivate_plugin' );
\register_uninstall_hook( __FILE__, '\ContentControl\Plugin\Install::uninstall_plugin' );

SILENT KILLER Tool