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.119.118.151


Current Path : /proc/thread-self/root/var/www/oasis/src_old/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/src_old/connect.php

<?php
function connect()
{
	@session_start();
	$servername = "97.74.228.93";
	$username   = "logisys3_logu";
	$password  = "Logisys@2106";
	$FUNIVCODE = $_SESSION['FUNIVCODE'];
	
	$conn= new  mysqli($servername,$username,$password);
	if(!$conn) {
         die("Connection failed: " . mysqli_connect_error());
	}
	$sql ="SHOW DATABASES"; 
	$result = $conn->query($sql);
	if($FUNIVCODE == '003')
	{
		$Databasename[] = logisys3_kus;
		$Databasename[] = logisys3_kusd;
		$Databasename[] = logisys3_uet;

	}else if($FUNIVCODE == '027')
	{
		$Databasename[] = logisys3_rcu;
	}else if($FUNIVCODE == '008')
	{
		$Databasename[] = logisys3_kswu;
	}
	else if($FUNIVCODE == '026')
	{
		$Databasename[] = logisys3_vku;
	}
	else if($FUNIVCODE == '001')
	{
		$Databasename[] = logisys3_gug;
	}
	else if($FUNIVCODE == '023')
	{
		$Databasename[] = logisys_dud;
	}
		//$html_t="<table border = 1 cellspacing='1'  style='margin-top:10px;margin-left:350px;font-size:20px;align:center;'><tr ><th>Database Name</th><th><input type='checkbox' onclick='ckallrecatstores()' id='chkall' style='margin-left:8px;'></th></tr>";
		
			/* while($row = $result->fetch_assoc())
			{
				if($row['Database'] == sitebuilder5 || $row['Database'] == apsc || $row['Database'] == atmail || $row['Database'] == horde || $row['Database'] == phpmyadmin_54I9opllCbkk || $row['Database'] == phpmyadmin_HUcq18Gs5JMt || $row['Database'] == psa || $row['Database'] == information_schema || $row['Database']==mysql || $row['Database']==phpmyadmin || $row['Database']== webauth || $row['Database']== cdcol)
					continue; 
				if($FUNIVCODE == '003')
				{
					$Databasename[] = resultsg_kus;
					$Databasename[] = resultsg_kusd;
					$Databasename[] = resultsg_uet;
					
					
				}else if($FUNIVCODE == '027')
				{
					$Databasename[] = resultsg_rcu;
				}else if($FUNIVCODE == '008')
				{
					$Databasename[] = resultsg_kswu;
				}
				else if($FUNIVCODE == '026')
				{
					$Databasename[] = resultsg_vku;
				}
				//if($row['Database'] == resultsg_vku || $row['Database'] == resultsg_rcu ||$row['Database'] == resultsg_kus || $row['Database'] == resultsg_uet|| $row['Database'] == resultsg_kusd || $row['Database'] == resultsg_kswu )
					//$Databasename[] = $row['Database'];
				
			} */
		echo json_encode($Databasename);
}
?>