REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.47 KB
Close
/proc/thread-self/root/var/softaculous/sitepad/editor/site-data/plugins/cookieadmin/includes/database.php
Text
Base64
<?php namespace CookieAdmin; if(!defined('COOKIEADMIN_VERSION') || !defined('ABSPATH')){ die('Hacking Attempt'); } class Database{ static $wpdb = ''; static $scanned_cookies_table = ''; static function activate(){ global $wpdb; self::$wpdb = $wpdb; self::$scanned_cookies_table = esc_sql(self::$wpdb->prefix . 'cookieadmin_cookies'); 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 scanned Cookies table $sql = "CREATE TABLE IF NOT EXISTS ".self::$scanned_cookies_table." ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, -- Auto Increment ID cookie_name VARCHAR(100) NOT NULL, -- Cookie name (e.g., CookieConsent, td) category VARCHAR(50) DEFAULT NULL, description VARCHAR(500) DEFAULT NULL, domain VARCHAR(255) NOT NULL, path VARCHAR(255) NULL DEFAULT '/', expires DATETIME NULL DEFAULT NULL, max_age INT(11) NULL DEFAULT NULL, samesite VARCHAR(10) NULL DEFAULT NULL, secure TINYINT(1) NOT NULL DEFAULT 0, httponly TINYINT(1) NOT NULL DEFAULT 0, raw_name VARCHAR(255) NULL, edited TINYINT(1) NULL DEFAULT 0, patterns VARCHAR(255) NOT NULL DEFAULT '[]', scan_timestamp INT(11) NULL DEFAULT 0 ) {$charset_collate};"; dbDelta($sql); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
admin
DIR
-
drwxr-xr-x
2026-02-20 22:02:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
admin.php
15.22 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
cookiecategorizer.php
3.85 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.47 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
4.78 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
40.52 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
6.51 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).