PHP WebShell

Текущая директория: /var/www/bitcardoApp/config

Просмотр файла: db_config.php

<?php
// Database Configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'bitcardo_wallet');
define('DB_PASS', 'Allowme@2050?');
define('DB_NAME', 'bitcardo_wallet');

// Establish procedural MySQLi connection
$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);

// Check connection
if (!$conn) {
    die('Database connection failed: ' . mysqli_connect_error());
}

// CONFIG
//define("PAYSTACK_SECRET", "sk_live_ccd3513dbbe0b3a072adff5993a91a12e0f174d2"); // <-- Set your secret key here

$paystackSecret = "sk_live_ccd3513dbbe0b3a072adff5993a91a12e0f174d2";

// Ensure settings helper is available wherever DB is included
// (kept at the end so $conn is defined first)
$__settings_file = __DIR__ . '/settings.php';
if (file_exists($__settings_file)) {
    require_once $__settings_file;
}
unset($__settings_file);

Выполнить команду


Для локальной разработки. Не используйте в интернете!