Tn Jones Shell Bypass
:
18.223.210.83
:
160.187.54.56 / upgov.net
:
Linux 160-187-54-56.cprapid.com 4.18.0-553.22.1.lve.1.el7h.x86_64 #1 SMP Tue Oct 8 14:36:03 UTC 2024 x86_64
:
/
home
/
upgov
/
www
/
rmpyrll
/
Upload File:
files >> /home/upgov/www/rmpyrll/invoice_1219.php
<?php date_default_timezone_set("Asia/Kolkata"); ?> <?php include("connection.php"); session_start(); if (!isset($_SESSION['user']) || ($_SESSION['password'] == '')) { header("location:index.php"); exit(); } if(isset($_SESSION['user'])) { $username=$_SESSION['user']; } $user_query = mysql_query("SELECT * FROM loginemp where user='$username' ")or die(mysql_error()); $user_row = mysql_fetch_array($user_query); $username = $user_row['user']; ?> <?php include("connection.php"); $msg=""; if(isset($_REQUEST['submit'])) { $bill_type=$_REQUEST['bill_type']; $old_billid=$_REQUEST['old_billid']; $dept=$_REQUEST['dept']; $sche=$_REQUEST['scheme']; $hos=$_REQUEST['hospital']; $district=$_REQUEST['district1']; $post=$_REQUEST['post']; $month=$_REQUEST['ptm2']."-".$_REQUEST['ptm3']; $bill_date=date('m/d/y,h:i:s'); $wages=$_REQUEST['wages']; $service_tax=$_REQUEST['service_tax']; $g_total=$_REQUEST['g_total']; $entry_date=date('m/d/y,h:i:s'); $updated_date=$_REQUEST['text10']; $gstno=$_REQUEST['gstno']; $invoice_month=date("Y/M"); $service_charge=$_REQUEST['text3']; $text4=$_REQUEST['text4']; $text5=$_REQUEST['text5']; $text6=$_REQUEST['text6']; $text7=$_REQUEST['text7']; $text8=$_REQUEST['text8']; $text9=$_REQUEST['text9']; $stockno=mysql_query("Select count(sno) from invoice_1119"); $user_row = mysql_fetch_array($stockno); $billid= date("Y/M")."-".$billid=$user_row["count(sno)"]+1; if($sql=mysql_query("INSERT INTO invoice_1119 (bill_type, old_bill_id,bill_id, department, scheme, sub_loc, district, post, month, bill_date, wages, gst, g_total, updated_by, entry_date, updated_date, GST_NO, invoice_month, service_charge, text4, text5, text6, text7, text8, text9) VALUES (UPPER('$bill_type'), '$old_billid','$billid',UPPER('$dept'),UPPER('$sche'), UPPER('$hos'), UPPER('$district'), UPPER('$post'),UPPER('$month'),'$bill_date', '$wages', '$service_tax', '$g_total', UPPER('$username'), '$entry_date', '$updated_date', '$gstno', '$invoice_month', '$service_charge', '$text4', '$text5', '$text6', '$text7', '$text8', '$text9');")) { echo "<script>"; echo "location.href='view_1119.php'"; echo "</script>"; $msg="<font color='navy'>Record saved</font>"; } else { $msg="ALready exist in record<br><br>INSERT INTO invoice_1119 (bill_type, old_bill_id,bill_id, department, scheme, sub_loc, district, post, month, bill_date, wages, gst, g_total, updated_by, entry_date, updated_date, GST_NO, invoice_month, service_charge, text4, text5, text6, text7, text8, text9) VALUES (UPPER('$bill_type'), '$old_billid','$billid',UPPER('$dept'),UPPER('$sche'), UPPER('$hos'), UPPER('$district'), UPPER('$post'),UPPER('$month'),'$bill_date', '$wages', '$service_tax', '$g_total', UPPER('$username'), '$entry_date', '$updated_date', '$gstno', '$invoice_month', '$service_charge', '$text4', '$text5', '$text6', '$text7', '$text8', '$text9');"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <title>Rama Login</title> <!-- for-mobile-apps --> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="Lucrative Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <script> $(document).ready(function() { $('.popup-with-zoom-anim').magnificPopup({ type: 'inline', fixedContentPos: false, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: 'my-mfp-zoom-in' }); }); </script> <!--27.5.17 strt--> <script> function fun(d) { var str=""; if(d=="REVISED" || d=="DIFFERENCE") { str="<input type='text' name='old_billid' required='required' maxlength='4' id='old_billid' style='width:250px;height:45px;color:black;' placeholder='Old Invoice No' class='long'/> "; document.getElementById("old").innerHTML=str; } else if (d=='FRESH') { str="<input type='hidden' name='old_billid' required='required' id='old_billid' style='width:240px;height:25px;' placeholder='Old Bill ID' class='long'/>"; document.getElementById("old").innerHTML=str; } else { str=""; } document.getElementById("old").innerHTML=str; } </script> <!--27.5.17 end--> <script> function showUser(str) { if (str == "") { document.getElementById("ss1").innerHTML =""; return; } else { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("ss1").innerHTML = xmlhttp.responseText; } }; xmlhttp.open("GET","data.php?na="+str,true); xmlhttp.send(); } } function showUser1(str1) { if (str1 == "") { document.getElementById("dist22").innerHTML =""; return; } else { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("dist22").innerHTML = xmlhttp.responseText; } }; xmlhttp.open("GET","data1.php?na1="+str1,true); xmlhttp.send(); } } function showUser2(str2) { var a=document.getElementById("scheme").value; if (str2 == "") { document.getElementById("div1").innerHTML =""; return; } else { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("div1").innerHTML = xmlhttp.responseText; } }; xmlhttp.open("GET","data2.php?na2="+str2+"&na4="+a,true); xmlhttp.send(); } } function showUser4(str4) { var a=document.getElementById("dept").value; if (str2 == "") { document.getElementById("gst").innerHTML =""; return; } else { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("gst").innerHTML = xmlhttp.responseText; } }; xmlhttp.open("GET","data3.php?na6="+str4+"&na5="+a,true); xmlhttp.send(); } } //SCANNER </script> <!-- //for-mobile-apps --> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> <!-- js --> <script type="text/javascript" src="js/jquery-2.1.4.min.js"></script> <!-- //js --> <!-- pop-up-box --> <link href="css/popuo-box.css" rel="stylesheet" type="text/css" media="all" /> <!-- //pop-up-box --> <!-- font-awesome icons --> <link href="css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons --> <link href="//fonts.googleapis.com/css?family=Work+Sans:100,200,300,400,500,600,700,800,900&subset=latin-ext" rel="stylesheet"> <link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'> </head> <body onload=display_ct();> <!-- header --> <div class="header"> <div class="container"> <div class="agile_header_grid"> <div class="w3_agile_logo"> <h3><a href="index.html"><span><img src="images/logo.png" height="80px" width="200px"/></span> Welcome : <?php echo $username;?></a></h3> </div> <div class="agileits_w3layouts_sign_in"> <ul> <li><font size="-1" color="orange"><strong><span id='ct' align="right"></span></strong></font></li> </ul> </div> <div class="w3_agileits_nav"> <nav class="navbar navbar-default"> <div class="navbar-header navbar-left"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1"> </div> </nav> </div> </div> </div> </div> <!-- //header --> <!-- pop-up-box --> <!-- //pop-up-box --> <script src="js/jquery.magnific-popup.js" type="text/javascript"></script> <script type="text/javascript"> function display_c(){ var refresh=1000; // Refresh rate in milli seconds mytime=setTimeout('display_ct()',refresh) } function display_ct() { var strcount var x = new Date() document.getElementById('ct').innerHTML = x; tt=display_c(); } </script> <!-- banner --> <table align="right"> <tr> <td align="right"> <a href="logout.php" target="_blank"><font color="navy" size="3"><input type="button" value="Logout" align="right" style="font-weight:bold;width:90px;height:35px;background-color:#20B2AA;color:white;"/></font></a> </td></tr></table><br> <!-- //banner --> <!-- contact --> <br> <h4 align="right" ><font color="white" ><a href="help_file.pdf" target="_blank" >Help File</a> </font></h4> <br> <h2 align="Center"><font color="#20B2AA">Generate Individual, NOVEMBER 2019</font></h2> <br> <form method='POST'> <table align="center" border="1" cellpadding="0px" cellspacing="0px" style='border:1px soild black;'> <tr> <td colspan="4" style="background-color:#20B2AA;color:white;height:45px;font-size:25px;" align="center"><b>Fill Invoice Details</b></td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="left"><strong><font color="navy">Department</font><font color="red">* </font></strong></td> <td> <select name="dept" id="dept" onChange="showUser(this.value)" style="width:250px;height:42px;text-transform:uppercase;color:black;"> <option value=""></option> <?php $sql=mysql_query("SELECT distinct department FROM login")or die(mysql_error()); while($r = mysql_fetch_array($sql)) { ?> <option value="<?php echo $r['department'];?>"><?php echo $r['department'];?></option> <?php } ?> </select> </td> <td align="left"><strong><font color="navy">Scheme </font><font color="red">* </font></strong></td> <td> <div id="ss1"> <select name="scheme" id="scheme" style="width:250px;height:42px;text-transform:uppercase;color:black;" title="Scheme is requried" placeholder="District1" required > <option value=""></option> </select> </div> </td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="left"><strong><font color="navy">District </font><font color="red">* </font></strong></td> <td><input name="district1" id="district1" title="district is requried" style="height:42px;width:250px;color:#000000;text-transform:uppercase;" required="required"/> </td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="left"><strong><font color="navy">Sub_Location </font><font color="red">* </font></strong></td> <td><input name="hospital" id="hospital" title="district is requried" style="height:42px;width:250px;color:#000000;text-transform:uppercase;" required="required"/> </td> <td align="right"><strong><font color="navy">Post name</font><font color="red">* </font></strong></td> <td><input name="post" id="post" title="post is requried" style="height:42px;width:250px;color:#000000;text-transform:uppercase;" required="required"/></td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="left"><strong><font color="navy">Bill Date</font><font color="red">* </font></strong></td> <td> <select name="ptm2" id="ptm2" style="height:42px;width:120px;" required="required"> <option value="">Month</option> <option value='JAN'>JANUARY</option> <option value='FEB'>FEBRUARY</option> <option value='MAR'>MARCH</option> <option value='APR'>APRIL</option> <option value='MAY'>MAY</option> <option value='JUN'>JUNE</option> <option value='JUL'>JULY</option> <option value='AUG'>AUGUST</option> <option value='SEPT'>SEPTEMBER</option> <option value='OCT'>OCTOBER</option> <option value='NOV'>NOVEMBER</option> <option value='DEC'>DECEMBER</option> </select> <select name="ptm3" id="ptm3" style="height:42px;width:125px;" required="required"> <option value="<?php echo date('Y', strtotime($date .' -1 YEAR'))?>"><?php echo date('Y', strtotime($date .' -1 YEAR'))?></option> <option value="<?php echo date('Y')?>"><?php echo date('Y')?></option> </select> </td> <td><strong><font color="navy">Bill type</font><font color="red">* </font></strong></td> <td> <select name="bill_type" id="bill_type" style="height:42px;width:250px;color:#000000;text-transform:uppercase;" required="required" onchange='fun(this.value)'> <option value="">Select type</option> <option value="FRESH">FRESH</option> <option value="REVISED">REVISED</option> <option value="DIFFERENCE">DIFFERENCE</option> </select> </td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td><strong><font color="navy">GST No</font><font color="red">* </font></strong></td> <td><div id="gst"><input name="gstno" id="gstno" title="post is requried" style="height:42px;width:250px;color:#000000;text-transform:uppercase;" /></div></td> </tr> <tr> <td align="left"> <div id="old"></div></td> </tr> <tr> <td colspan="4" align="center"> <input name="submit" type="submit" value="SUBMIT" style="font-weight:bold;width:90px;height:35px;background-color:#20B2AA;color:white;"/> <a href='gen_invoiceid.php'> <input type="button" name="back" value="BACK" id="back" style="font-weight:bold;width:90px;height:35px;background-color:#20B2AA;color:white;"/></a> </td> </td> </tr> </table> </form> <?php echo $msg;?> <!-- //contact --> <br> <br> <br> <br> <!-- footer --> <div class="copyright"> <div align="center"> <p><font color="white">© 2019 Rama Infotech. All Rights Reserved | Design by </font><a href="https://p8.secure.hostingprod.com/@www.ramaipl.com/ssl/">ramaipl.com</a></p> </div> </div> <!-- //footer --> <!-- start-smoth-scrolling --> <script type="text/javascript" src="js/move-top.js"></script> <script type="text/javascript" src="js/easing.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { $(".scroll").click(function(event){ event.preventDefault(); $('html,body').animate({scrollTop:$(this.hash).offset().top},1000); }); }); </script> <!-- start-smoth-scrolling --> <!-- for bootstrap working --> <script src="js/bootstrap.js"></script> <!-- //for bootstrap working --> <!-- here stars scrolling icon --> <script type="text/javascript"> $(document).ready(function() { /* var defaults = { containerID: 'toTop', // fading element id containerHoverID: 'toTopHover', // fading element hover id scrollSpeed: 1200, easingType: 'linear' }; */ $().UItoTop({ easingType: 'easeOutQuart' }); }); </script> <!-- //here ends scrolling icon --> </body> </html>