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