Heray-Was-Here
Server : Apache
System : Linux dal-shared-66.hostwindsdns.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : krnuyqrm ( 1183)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /var/softaculous/sitepad/editor/site-data/plugins/cookieadmin-pro/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/softaculous/sitepad/editor/site-data/plugins/cookieadmin-pro/cookieadmin-pro.php
<?php
/*
Plugin Name: CookieAdmin Pro
Plugin URI: https://cookieadmin.net
Description: CookieAdmin provides easy to configure cookie consent banner with GDPR and CCPA law support.
Version: 1.2.2
Author: Softaculous
Author URI: https://www.softaculous.com
License: LGPL v2.1
License URI: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
Text Domain: cookieadmin-pro
*/

/*
 * This file belongs to the CookieAdmin plugin.
 *
 * (c) Softaculous <sales@softaculous.com>
 *
 * You can view the LICENSE file that was distributed with this source code
 * for copywright and license information.
 */

// We need the ABSPATH
if (!defined('ABSPATH')) exit;

if(!function_exists('add_action')){
	echo 'You are not allowed to access this page directly.';
	exit;
}

// If COOKIEADMIN_PREMIUM exists then the plugin is loaded already !
if(defined('COOKIEADMIN_PREMIUM')) {
	return;
}

define('COOKIEADMIN_PRO_VERSION', '1.2.2');
define('COOKIEADMIN_PRO_DIR', plugin_dir_path(__FILE__));
define('COOKIEADMIN_API', 'https://api.cookieadmin.net/');
define('COOKIEADMIN_PRO_FILE', __FILE__);
define('COOKIEADMIN_PRO_PLUGIN_URL', plugin_dir_url(__FILE__));

function cookieadmin_pro_autoloader($class){
	
	if(!preg_match('/^CookieAdminPro\\\(.*)/is', $class, $m)){
		return;
	}

	$m[1] = str_replace('\\', '/', $m[1]);

	if(strpos($class, 'CookieAdminPro\lib') === 0){
		if(file_exists(COOKIEADMIN_PRO_DIR.$m[1].'.php')){
			include_once(COOKIEADMIN_PRO_DIR.$m[1].'.php');
		}
	}

	// For Pro
	if(file_exists(COOKIEADMIN_PRO_DIR.'includes/'.strtolower($m[1]).'.php')){
		include_once(COOKIEADMIN_PRO_DIR.'includes/'.strtolower($m[1]).'.php');
	}
}

spl_autoload_register(__NAMESPACE__.'\cookieadmin_pro_autoloader');

include_once(COOKIEADMIN_PRO_DIR.'includes/functions.php');

// Register activation/deactivation handlers early so they fire even if we
register_activation_hook(__FILE__, 'cookieadmin_pro_activation');
register_deactivation_hook(__FILE__, 'cookieadmin_pro_deactivation');

//we need to load textdomain for language translation
function cookieadmin_pro_load_textdomain() {
    load_plugin_textdomain( 'cookieadmin', false, dirname(plugin_basename( __FILE__ ) ) . '/languages/');
}
add_action( 'plugins_loaded', 'cookieadmin_pro_load_textdomain' );

$cookieadmin_tmp_plugins = get_option('active_plugins', []);

if(
	!defined('SITEPAD') && (
	!(in_array('cookieadmin/cookieadmin.php', $cookieadmin_tmp_plugins) || 
	cookieadmin_pro_is_network_active('cookieadmin')) || 
	!file_exists(WP_PLUGIN_DIR . '/cookieadmin/cookieadmin.php'))
){
	include_once(COOKIEADMIN_PRO_DIR .'/includes/short-cirtuit.php');
	return;
}

define('COOKIEADMIN_PREMIUM', plugin_basename(__FILE__));

include_once(dirname(__FILE__).'/init.php');


Hry