load(); // ✅ 第 3 步:定義 env() 輔助函式(WordPress 沒內建) if (!function_exists('env')) { function env($key, $default = null) { return $_ENV[$key] ?? $_SERVER[$key] ?? $default; } } // upload path define( 'UPLOADS', '../upload' ); // 相對於 WordPress 根目錄 // ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', env('DB_DATABASE', 'wordpress')); /** Database username */ define('DB_USER', env('DB_USERNAME', 'root')); /** Database password */ define('DB_PASSWORD', env('DB_PASSWORD', '')); /** Database hostname */ define('DB_HOST', env('DB_HOST', '127.0.0.1')); /** Database charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The database collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * Authentication unique keys and salts. * * Change these to different unique phrases! You can generate these using * the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}. * * You can change these at any point in time to invalidate all existing cookies. * This will force all users to have to log in again. * * @since 2.6.0 */ define('AUTH_KEY', 'Q$WBUR 3Gj#W2sK#OTe+2rvl^jJfBgo=5 3JSQ{$kWfj!k3?97C=f!+Plf&RRTiE'); define('SECURE_AUTH_KEY', '2M&4+8>g;G#4[x#_]LWJ-%x3%XH3,2'); define('LOGGED_IN_KEY', '17ev.06mwyK.+w,XnD'); define('NONCE_KEY', 'w&#p-&=S|`nq>;WM x|bdTo~*-:B&]x~0H1JphLac]Kj %:ET>j%1)[aOuPre#[+'); define('AUTH_SALT', 'GIR^I?A/?QIU<^LBPWDLWeR9^A=d|6+z6gu-ic;M{:Zx-?Qs2OxgOjmjU,J>T|2z'); define('SECURE_AUTH_SALT', ';D?(~Xd:O/z