UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
save_ashram_address.php
<?php include "../config.php"; if($_FILES['fileToUpload']['name']){ $error=array(); $file_name=$_FILES['fileToUpload']['name']; $file_size=$_FILES['fileToUpload']['size']; $file_tmp=$_FILES['fileToUpload']['tmp_name']; $file_type=$_FILES['fileToUpload']['type']; $file_ext=strtolower(end(explode('.',$file_name))); $extensions=array("jpeg","jpg","png"); if(in_array($file_ext,$extensions)===false){ $error[]="This extension file is not allowed, Please choose a JPG or PNG file."; } if($file_size > 2097152) { $error="File size must be 2mb or lower."; } $new_name=time()."-".basename($file_name); $target="ashram_images/".$new_name; $image_name=$new_name; if(empty($errors)==true){ move_uploaded_file($file_tmp,$target); }else{ print_r($error); die(); } } $name=mysqli_real_escape_string($conn, $_POST['name']); $address=mysqli_real_escape_string($conn, $_POST['address']); $mobile=mysqli_real_escape_string($conn, $_POST['mobile']); $email=mysqli_real_escape_string($conn, $_POST['email']); $date=date("d M, Y"); $data=0; $sql="INSERT INTO ashramaddressbooktb(name,address,phone,email,image_name,added_on) VALUES('{$name}','{$address}','{$mobile}','{$email}','{$image_name}','{$date}')"; if(mysqli_query($conn, $sql)) { $data=1; } echo json_encode($data); ?>
Copyright © 2025 - UnknownSec