403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/xampp/htdocs-coblaa/cbname/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xampp/htdocs-coblaa/cbname/extraction.php
<html>

<?php 
session_start();
include('db.php'); 
?>

<head>
<title>Cbname</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/extraction.css" />
<meta name="google-adsense-account" content="ca-pub-4728417548940171"><!--gog ads  -->



</head>

<?php 

if(isset($_SESSION['id']))
{
$user_id = $_SESSION['id'];		

}
?>

<input id="my_id" value="<?php echo $user_id ?>" style="display:none;" />


<body  >


<div class="main_home_div" >

<a href=""><div class="main_log" >CBN</div></a>
<div class="main_title" >Crane blue names</div>
<div class="right_home_btn" >
<a href="cbname"><button class="main_home_btn" >Home</button></a>
<?php if(isset($_SESSION['id'])){ ?>
<a href="logout"><button class="main_home_btn" >Logout</button></a>
<?php }else{ ?>
<a href="login"><button class="main_home_btn" >Login</button></a>
<?php } ?>
<button class="main_home_btn" >Contact</button>
</div>

</div>
<div class="position_div" ></div>



<div class="main_container" >


<div id="sub_container1" class="sub_container" >
<h2 class="sub_title" >Add new name</h2>
<input id="name_input" class="name_input" placeholder="Fname" />
<input id="name_other" class="name_input" placeholder="Other name" />
<select id="name_gender" class="name_input">
<option selected >Male & Female</option>
<option>Male</option>
<option>Female</option>

</select>
<textarea id="name_detail" class="name_detail" ></textarea>
<button class="get_mean_btn" onClick="add_new_ame();" >Add name</button>
</div>

<?php if(isset($_GET['nameid'])){ $name_id = $_GET['nameid']; ?>

<div class="sub_container" >
<h2 class="sub_title" >Know the celebirity with your name</h2>
<form method="post" enctype="multipart/form-data">
<input name="celeb_input" class="name_input" required placeholder="Write Name...." />
<input name="celeb_known4" class="name_input" required placeholder="Known for" />
<input type="file" name="celeb_img" required class="name_input"  />
<button type="submit" name="add_new_celeb_img" class="get_celeb_btn" >Add Celebirity</button>
<form>
</div>

<?php 

if(isset($_POST['add_new_celeb_img']))
{
	$celeb_name = $_POST['celeb_input'];
	$celeb_known4 = $_POST['celeb_known4'];
	$celeb_img = $_FILES['celeb_img']['name'];
		
	$type = explode('.',$celeb_img);
	$type = end($type);
	
	$random_name = rand();
	$tmp_image = $_FILES['celeb_img']['tmp_name'];
	
	if($type !=='JPG' AND $type !=="jpg" AND $type !=="png" AND $type !=="jpeg" AND $type !=="jfif"){echo"<span style='color:red;'>Image Formate Not Surported, Choose Another Image.</span>";}
	
	else{
	
	$insert_celeb ="insert into celebtb (my_id,name_id,celeb_name,celeb_detail,img_url,cur_date,cur_time) values ('$user_id','$name_id','$celeb_name','$celeb_known4','$random_name.$type',CURDATE(),CURTIME() )";
	$run_insert_celeb = mysqli_query($con,$insert_celeb);
	
	if($run_insert_celeb){
		
		move_uploaded_file($tmp_image,'celeb_profile/'.$random_name.'.'.$type);
			//echo"<script>window.open('results?search=$name_id','_self')</script>";	
		echo"<span style='color:green;'>New Store Name Data Has Been Save Thanks.</span>";
		
	}else{echo"<span style='color:red;'>Something Went Wrong Store Data Not Saved.</span>";}
	
	
	//echo $celeb_input;
	}
}


 ?>



<script>
document.getElementById('sub_container1').style.display="none";
</script>
<?php } ?>

</div>

<script>
function add_new_ame()
{
	my_id = document.getElementById('my_id').value;	
	new_name = document.getElementById('name_input').value;	
	name_details = document.getElementById('name_detail').value;
    name_gender = document.getElementById('name_gender').value;
    name_other = document.getElementById('name_other').value;		

	if(new_name =="" || name_details=="" ){}else{

	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?new_name="+new_name+"&&name_details="+name_details+"&&my_id="+my_id+"&&name_other="+name_other+"&&name_gender="+name_gender+"&&status=add_name",false);
	xmlhpttp.send(null);
	//document.getElementById('disp_post_image_output').innerHTML =xmlhpttp.responseText;
	alert(new_name);
	}
	
	
}


</script>



</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit