<?php
// Change Bank Name
define("WEB_TITLE","360-BankPro "); 
// Change Web URL https://domain.com or https://sud.domain.com  with No Ending splash "/"
define("WEB_URL","https://bnkpro.360plug.site"); 
// Change Your Website Email
define("WEB_EMAIL","alertmail@360plug.site
"); 
// Change Your Website Phone Number
define("WEB_PHONE","2348114313795"); 

// Do not Edit
$web_url = WEB_URL;
$web_title = WEB_TITLE;
$web_phone = WEB_PHONE;
$web_email = WEB_EMAIL;
// Do not Edit


// Set database Below
function dbConnect(){
    $servername = "localhost";
    $username = "plugsite_bankpro"; 
    $password = "plugsite_bankpro";
    $database = "plugsite_bankpro";
    
    $dns = "mysql:host=$servername;dbname=$database;charset=utf8mb4";
    
    try {
        $conn = new PDO($dns, $username, $password, [
            PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
            PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4",
            PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
        ]);
        return $conn;
    } catch(PDOException $e) {
        echo "Connection failed: " . $e->getMessage();
    }
}

// ← You forgot to keep this function!
function inputValidation($value): string
{
    return trim(htmlspecialchars(htmlentities($value)));
}