??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/am1atec.co.uk/wp-content/plugins/cookieadmin-pro/includes/database.php
⬅ Kembali
<?php
namespace CookieAdminPro;
if(!defined('COOKIEADMIN_PRO_VERSION') || !defined('ABSPATH')){
die('Hacking Attempt');
}
class Database{
static $wpdb = '';
static $consent_table = '';
static function activate(){
global $wpdb;
self::$wpdb = $wpdb;
self::$consent_table = esc_sql(self::$wpdb->prefix . 'cookieadmin_consents');
self::cookieadmin_create_tables();
}
static function cookieadmin_create_tables() {
$charset_collate = self::$wpdb->get_charset_collate();
$db_path = !defined('SITEPAD') ? ABSPATH . 'wp-admin/includes/upgrade.php' : ABSPATH . 'site-admin/includes/upgrade.php';
require_once($db_path);
/*
dbDelta does not supports comments and these comments are not being applied,
So they could be the cause of issue which is preventing creation of this table
for some user.
consent_id -- Designed to store up to 128 characters for future expansion
user_ip -- For storing anonymized IP (IPv4 or IPv6)
country -- Full country name
browser -- Browser User agent string
domain -- Domain from which consent was submitted
consent_status -- Stores 'accepted', 'rejected', 'partially accepted', etc.
*/
//Create Consent table
$sql = "CREATE TABLE IF NOT EXISTS ".self::$consent_table." (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
consent_id VARCHAR(128) NOT NULL UNIQUE,
user_ip VARBINARY(16) DEFAULT NULL,
consent_time INT NOT NULL,
country VARCHAR(150) DEFAULT NULL,
browser TEXT DEFAULT NULL,
domain VARCHAR(255) DEFAULT NULL,
consent_status VARCHAR(50) NOT NULL
) {$charset_collate};";
dbDelta($sql);
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 admin
dir
—
2026-06-25 05:13
🐘 admin.php
php
32.1 KB
2026-06-04 08:02
🐘 contentblock.php
php
7.7 KB
2026-06-04 09:43
🐘 cron.php
php
2.6 KB
2026-02-13 12:52
🐘 database.php
php
1.6 KB
2026-03-05 07:53
🐘 donotsell.php
php
11 KB
2026-06-04 08:39
🐘 enduser.php
php
17.3 KB
2026-06-04 09:54
🐘 functions.php
php
18.8 KB
2026-06-04 08:02
🐘 gpc.php
php
3.8 KB
2026-06-02 13:15
🐘 license.php
php
4.4 KB
2025-10-23 11:06
🐘 plugin-update-checker.php
php
52.7 KB
2026-03-13 10:23
🐘 scanner.php
php
3.5 KB
2026-04-24 12:33
🐘 short-cirtuit.php
php
5.3 KB
2025-09-23 14:16
🐘 subdomain.php
php
3.1 KB
2026-05-04 11:24
🐘 translatestring.php
php
4.7 KB
2026-06-03 15:09