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 : 18.227.209.89


Current Path : /var/www/html/pget/
Upload File :
Current File : //var/www/html/pget/database.php

<?php
session_start();
include("/var/www/config.php");
	
	
	$servername = SERVERNAME;
	$username   = USERNAME;
	$password  = PASSWORD;
	$dbnames = [ 
		'rcub' => 'logisys3_rcu',
		'rcub-admin' => 'logisys3_rcu',
		'vskub' => 'logisys3_vku',
		'bcu' => 'logisys3_bcu',
		'dud' => 'logisys3_dud'
	];     
	$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());
	}
	
?>