REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.38 KB
Close
/proc/thread-self/root/var/softaculous/sitepad/editor/site-data/plugins/cookieadmin-pro/includes/database.php
Text
Base64
<?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); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
admin.php
16.32 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cron.php
2.58 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
database.php
1.38 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
enduser.php
9.61 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
functions.php
17.19 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license.php
4.41 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
plugin-update-checker.php
52.71 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
scanner.php
3.43 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
short-cirtuit.php
5.31 KB
lrw-r--r--
2026-02-18 23:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).