PluginProbe
CookieAdmin – Cookie Consent Banner / 1.0.3
CookieAdmin – Cookie Consent Banner v1.0.3
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 / cookieadmin.php

cookieadmin.php in CookieAdmin – Cookie Consent Banner 1.0.3, at cookieadmin.php

69 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: CookieAdmin - Cookie Consent Banner
4 Plugin URI: https://cookieadmin.net
5 Description: CookieAdmin provides easy to configure cookie consent banner with GDPR and CCPA law support.
6 Version: 1.0.3
7 Author: Softaculous
8 Author URI: https://www.softaculous.com
9 License: LGPL v2.1
10 License URI: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
11 Text Domain: cookieadmin
12 */
13
14 /*
15 * This file belongs to the CookieAdmin plugin.
16 *
17 * (c) Softaculous <sales@softaculous.com>
18 *
19 * You can view the LICENSE file that was distributed with this source code
20 * for copywright and license information.
21 */
22
23 if (!defined('ABSPATH')){
24 exit;
25 }
26
27 if(!function_exists('add_action')){
28 echo 'You are not allowed to access this page directly.';
29 exit;
30 }
31
32 // If COOKIEADMIN_VERSION exists then the plugin is loaded already !
33 if(defined('COOKIEADMIN_VERSION')) {
34 return;
35 }
36
37 define('COOKIEADMIN_FILE', __FILE__);
38
39 //we need to load textdomain for language translation
40 function cookieadmin_load_textdomain() {
41 load_plugin_textdomain( 'cookieadmin', false, dirname(plugin_basename( __FILE__ ) ) . '/languages/');
42 }
43
44 add_action( 'plugins_loaded', 'cookieadmin_load_textdomain' );
45
46 include_once(dirname(__FILE__).'/init.php');
47
48 // Activation & Deactivation Hooks
49 register_activation_hook(__FILE__, 'cookieadmin_activate');
50 register_deactivation_hook(__FILE__, 'cookieadmin_deactivate');
51
52 function cookieadmin_activate() {
53
54 add_option('cookieadmin_version', COOKIEADMIN_VERSION);
55
56 include_once(COOKIEADMIN_DIR . 'includes/database.php');
57
58 \CookieAdmin\Database::activate();
59
60 return true;
61 }
62
63 function cookieadmin_deactivate() {
64
65
66 return true;
67 }
68
69