PluginProbe
CookieAdmin – Cookie Consent Banner / 1.1.2
CookieAdmin – Cookie Consent Banner v1.1.2
1.2.3 1.2.2 1.2.1 1.2.0 1.1.9 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8
cookieadmin / init.php

init.php in CookieAdmin – Cookie Consent Banner 1.1.2, at init.php

40 lines 803 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * CookieAdmin
4 * https://cookieadmin.net
5 * (c) Softaculous Team
6 */
7
8 // We need the ABSPATH
9 if (!defined('ABSPATH')) exit;
10
11 function cookieadmin_autoloader($class){
12
13 if(!preg_match('/^CookieAdmin\\\(.*)/is', $class, $m)){
14 return;
15 }
16
17 $m[1] = str_replace('\\', '/', $m[1]);
18
19 if(strpos($class, 'CookieAdmin\lib') === 0){
20 if(file_exists(COOKIEADMIN_DIR.$m[1].'.php')){
21 include_once(COOKIEADMIN_DIR.$m[1].'.php');
22 }
23 }
24
25 // For Pro
26 if(file_exists(COOKIEADMIN_DIR.'includes/'.strtolower($m[1]).'.php')){
27 include_once(COOKIEADMIN_DIR.'includes/'.strtolower($m[1]).'.php');
28 }
29 }
30
31 spl_autoload_register(__NAMESPACE__.'\cookieadmin_autoloader');
32
33
34 if(!class_exists('CookieAdmin')){
35 #[\AllowDynamicProperties]
36 class CookieAdmin{
37 }
38 }
39
40 add_action('plugins_loaded', 'cookieadmin_load_plugin');