UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
manage_farmer_anudaan_details.php
<?php session_start(); require_once "../panelassets/config.php"; $state = $_POST['state']; $district = $_POST['district']; $block = $_POST['block']; $villae=$_POST['villagename']; $farmername = $_POST['farmername']; $fathername = $_POST['fathername']; $mobileno1 = $_POST['mobileno1']; $cast=$_POST['cast']; $age = $_POST['age']; $gender=$_POST['gender']; $post=$_POST['post']; $tehsil=$_POST['tehsil']; $khasrano=$_POST['khasrano']; $bankname=$_POST['bankname']; $accountno=$_POST['accountno']; $ifsccode=$_POST['ifsccode']; $area=$_POST['area']; $totalarea=$_POST['totalarea']; $cropname=$_POST['cropname']; $farmname=$_POST['farmname']; $company=$_POST['company']; $system=$_POST['system']; $aadharno=$_POST['aadharno']; $anumanyalagat=$_POST['anumanyalagat']; $totalamtwithgst=$_POST['totalamtwithgst']; $billno=$_POST['billno']; $billamount=$_POST['billamount']; $jalasaytype=$_POST['jalasaytype']; $jalasaydeep=$_POST['jalasaydeep']; $pumptype=$_POST['pumptype']; $pumpcapacity=$_POST['pumpcapacity']; $lightduration=$_POST['lightduration']; $creationuserid=$_SESSION["adminid"]; $hdid = $_POST['hdid']; $btnopration = $_POST['btnopration']; $creationdatetime = date("Y-m-d H:m:s"); $billdate=null; $depositdate=null; if($_POST['billdate']=="") { $billdate="1900-01-01"; } else { $ubilldate = explode("-", $_POST['billdate']); $billdate =$ubilldate[2].'-'.$ubilldate[1].'-'.$ubilldate[0]; } if($_POST['depositdate']=="") { $depositdate="1900-01-01"; } else { $udepositdate = explode("-", $_POST['depositdate']); $depositdate =$udepositdate[2].'-'.$udepositdate[1].'-'.$udepositdate[0]; } $message= ""; $cnt=""; $finyearid=""; $query = "SELECT max(id) as id from financialyeartb"; $result = mysqli_query($conn,$query); while($row = mysqli_fetch_array($result)) { $finyearid= $row["id"]; } $query = "select count(0) as count from anudaanfarmerregtb where mobileno='".$mobileno1."' and isdeleted='".$notdeleted."'"; $result = mysqli_query($conn,$query); while($row = mysqli_fetch_array($result)) { $message= $row["count"]; } if($btnopration=="Save") { if($message=="0") { $query= " insert into anudaanfarmerregtb(farmername,fathername,mobileno,cast, age,gender,stcode,distcode,blockid,villageid,post,tehsil,khasrano,bankname,accountno,ifsccode,totalarea,area,cropname,farmname, companyname,fsystem,aadharno,anumanyalagat,totalamtwithgst,billno,billdate,billamount,depositdate,jalasay_type,jalasay_deep,pump_type,pump_capacity,light_duration,isdeleted,finyearid,creationuserid,creationdatetime) VALUES('{$farmername}','{$fathername}','{$mobileno1}','{$cast}','{$age}','{$gender}', '{$state}','{$district}','{$block}','{$villae}','{$post}','{$tehsil}','{$khasrano}','{$bankname}','{$accountno}','{$ifsccode}', '{$totalarea}','{$area}','{$cropname}','{$farmname}','{$company}','{$system}','{$aadharno}','{$anumanyalagat}','{$totalamtwithgst}','{$billno}','{$billdate}','{$billamount}','{$depositdate}', '{$jalasaytype}', '{$jalasaydeep}','{$pumptype}','{$pumpcapacity}','{$lightduration}','{$notdeleted}','{$finyearid}','{$creationuserid}','{$creationdatetime}')"; $result = mysqli_query($conn, $query); if($result==true) $message="1"; } else { $message="2"; } } 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."', post='{$post}',tehsil='{$tehsil}',khasrano='{$khasrano}',bankname='{$bankname}',accountno='{$accountno}',ifsccode='{$ifsccode}',totalarea='{$totalarea}',area='{$area}',cropname='{$cropname}',farmname='{$farmname}', companyname='{$company}',fsystem='{$system}',aadharno='{$aadharno}',anumanyalagat='{$anumanyalagat}',totalamtwithgst='{$totalamtwithgst}',billno='{$billno}',billdate='{$billdate}',billamount='{$billamount}',depositdate='{$depositdate}', jalasay_type='{$jalasaytype}',jalasay_deep='{$jalasaydeep}',pump_type='{$pumptype}',pump_capacity='{$pumpcapacity}',light_duration='{$lightduration}', 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