<?php
define("WEB_TITLE","REPLACE_SYSTEM_NAME");  // Change Bank Name
define("WEB_URL","https://federal.99code.xyz");  // https://domain.com or https://sud.domain.com with No Ending splash "/"
define("WEB_EMAIL","CHANGE_SYSTEM_EMAIL");  // Change Your Website Email
define("WEB_PHONE","2348114313795");  // Change Your Website Phone Number

// 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";
    //Change Database Username "root"
    $username = "dingservercloud_fed"; 
    //Change Database Password ""
    $password = "dingservercloud_feD1";
    //Change Database ""
    $database = "dingservercloud_fed";
    //Do not edit... That's all
    $dns = "mysql:host=$servername;dbname=$database";

    try {
        $conn = new PDO($dns, $username, $password);
        // set the PDO error mode to exception
        $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        return $conn;
    } catch(PDOException $e) {
        echo "Connection failed: " . $e->getMessage();
    }
}
//return dbConnect();

function inputValidation($value): string
{
    return trim(htmlspecialchars(htmlentities($value)));
}