$62 GRAYBYTE WORDPRESS FILE MANAGER $92

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/test2.proid.vn/wp-content/plugins/cookieadmin-pro/includes/

HOME
Current File : /home/bqrcodec/test2.proid.vn/wp-content/plugins/cookieadmin-pro/includes//database.php
<?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);
	}
}



Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
admin.php
19.597 KB
13 Mar 2026 6.23 AM
bqrcodec / bqrcodec
0644
cron.php
2.579 KB
13 Feb 2026 7.52 AM
bqrcodec / bqrcodec
0644
database.php
1.589 KB
5 Mar 2026 2.53 AM
bqrcodec / bqrcodec
0644
enduser.php
13.973 KB
14 Mar 2026 4.37 AM
bqrcodec / bqrcodec
0644
functions.php
15.463 KB
12 Mar 2026 4.42 AM
bqrcodec / bqrcodec
0644
gpc.php
3.487 KB
13 Mar 2026 6.23 AM
bqrcodec / bqrcodec
0644
license.php
4.408 KB
23 Oct 2025 7.06 AM
bqrcodec / bqrcodec
0644
plugin-update-checker.php
52.734 KB
13 Mar 2026 6.23 AM
bqrcodec / bqrcodec
0644
scanner.php
3.298 KB
11 Mar 2026 7.45 AM
bqrcodec / bqrcodec
0644
short-cirtuit.php
5.314 KB
23 Sep 2025 10.16 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF