Tn Jones Shell Bypass
:
3.12.107.129
:
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/attendance_hold.php
<?php date_default_timezone_set("Asia/Kolkata"); ?> <?php include("connection.php"); session_start(); if (!isset($_SESSION['user']) || ($_SESSION['password'] == '')) { header("location:payrolLogin/login.php"); } else { $now = time(); // Checking the time now when home page starts. if ($now > $_SESSION['expire']) { session_destroy(); echo "Your session has expired! <a href='payrolLogin/login.php'>Login here</a>"; } else { if(isset($_SESSION['user'])) { $dept=$_SESSION['department']; $sche=$_SESSION['scheme']; $username=$_SESSION['user']; } $user_query = mysql_query("SELECT * FROM login where user='$username' ")or die(mysql_error()); $user_row = mysql_fetch_array($user_query); $dd = $user_row['department']; $uu = $user_row['scheme']; $hos = $user_row['sub_select']; $dv = $user_row['division']; $ud = $user_row['district']; $us = $user_row['user']; $Email_Id = $user_row['Email']; $officeno = $user_row['officeno']; ?> <?php include("connection.php"); $msg=""; if(isset($_REQUEST['submit'])) { $bill=$_REQUEST['bill']; $pfile=$_REQUEST['pfile']; $sfile=$_REQUEST['sfile']; $dept=$_REQUEST['dept']; $sche=$_REQUEST['scheme']; $hos=$_REQUEST['hospital']; $Division=$_REQUEST['Division']; $district=$_REQUEST['dist']; $month=$_REQUEST['month']; $feedback=$_REQUEST['feedback']; $remark=$_REQUEST['remark']; $totempwork=$_REQUEST['totempwork']; $totempatt=$_REQUEST['totempatt']; $att_month=$_REQUEST['att_month']; $att_year=$_REQUEST['att_year']; $filedate=date("d-m-y,h:i:s"); $hvalue="H".time(); $sq=mysql_query("select * from health where department LIKE '$dept' and scheme LIKE '$sche' and hospital LIKE '$hos' and district LIKE '$district' and month LIKE '$month'")or die("Details already Exist in our Record"); $r = mysql_fetch_array($sq); $a1=$r['department']; $a=$r['scheme']; $b=$r['district']; $c=$r['month']; $d=$r['attandance']; if(mysql_num_rows($sq)>0) { $msg="<font color='red'><b>इस माह की अटेंडेंस पहले ही अपलोड की जा चुकी है | यदि अटेंडेंस में कोई त्रुटि है, तो संशोधन हेतु +91 9451992551 नंबर पर कॉल करें | और शेष माह की अटेंडेंस माह के पहले कार्यदिवस में अपलोड करें | धन्यवाद् ! </b> </font><img src='$d'/ width='200' height='100'>"; } else { $uploadDir = 'document/'; $image_name = $username."-".$month."-"; $extension = end(explode(".", $_FILES["attandance"]["name"])); if ($_FILES["attandance"]["error"] > 0) { echo "" . $_FILES["attandance"]["error"]; }else{ $attandance= $uploadDir . $image_name . $_FILES["attandance"]["name"]; move_uploaded_file($_FILES["attandance"]["tmp_name"], $attandance); } $Email="accounts@ramaipl.com"; $headers .= 'From: <accounts@ramaipl.com>' . "\r\n"; $headers .= 'Cc: care@ramaipl.com' . "\r\n"; $emailSubject = $sche." Payment ".$month; //Sender ID,While using route4 sender id should be 6 characters long. $emailContent = " Thank You , \r\n \r\n Your attendance for the month of $month has been received.\r\n we will forward the process for billing shortly. \r\n \r\n For query regarding attandance & bill feel free to contact us on $officeno "; //mail($Email_Id ,$emailSubject, $headers ,$emailContent); mail($Email ,$emailSubject, $headers ,$emailContent); $sql1=mysql_query("insert into epfesic(department,scheme,sub_loc,district,month,EPF_upload,epf_date,ESIC_upload,esic_date,text1,text2,text3,text4,text5,text6) values ('$dept','$sche','$hos','$district','$month','$text0','$text01','$text00','$text02','$text1','$text2','$text3','$text4','$text5','$text6')"); if($sql=mysql_query("insert into health(idhealth, department, scheme,hospital,district,month,att_month,att_year,attandance,attformdate,bill,billformdate,payment,pay_remark,payformdate,salary,salformdate,feedback,remark,totemp,totempatt,Dispatch_mode,carier_name,Mobile_no,tracking_id,Dispatch_date,Dispatch_remark,Delivery_date,Delivery_remark,text1,text2,text3,text4,text5,text6,text7) values ('$hvalue','$dept','$sche','$hos','$district','$month','$att_month','$att_year','$attandance','$filedate','$bill','$file1','$pfile','$pay_remark','$file2','$sfile','$file3','$feedback','$remark','$totempwork','$totempatt','$Dispatch_mode','$carier_name','$Mobile_no','$tracking_id','$Dispatch_date','$Dispatch_remark','$Delivery_date','$Delivery_remark','$text1','$Division','$text3','$text4','$text5','$text6','$text7');")) { echo "<script>"; echo "location.href='attreport.php'"; echo "</script>"; $msg="<font color='navy'>Record saved</font>"; } else { $msg="ALready exist in record"; } } } ?> <!DOCTYPE html> <html> <head> <title>Payroll</title> <link href="css/bootstrap.css" rel='stylesheet' type='text/css'/> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="js/jquery.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="cache-control" content="no-cache" /> <meta name="keywords" content="Payroll Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" /> <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> <!---- start-smoth-scrolling----> <script type="text/javascript" src="js/move-top.js"></script> <script type="text/javascript" src="js/easing.js"></script> <script src="js/jquery.easydropdown.js"></script> <script src="js/cbpViewModeSwitch.js" type="text/javascript"></script> <script> function ValidateFileUpload() { var fuData = document.getElementById('attandance'); var FileUploadPath = fuData.value; if (FileUploadPath == '') { alert("Please upload an image"); } else { var Extension = FileUploadPath.substring(FileUploadPath.lastIndexOf('.') + 1).toLowerCase(); if (Extension == "gif" || Extension == "png" || Extension == "bmp" || Extension == "jpeg" || Extension == "jpg" || Extension == "pdf") { if (fuData.files && fuData.files[0]) { var size = fuData.files[0].size; if(size >= 960000) { alert("Maximum file 818 Kb width (1000pixel) * height (1000pixel)"); document.getElementById('attandance').value=""; document.getElementById('attandance').focus(); return; }else{ var reader = new FileReader(); reader.onload = function(e) { $('#image').attr('src', e.target.result); } reader.readAsDataURL(fuData.files[0]); } } } else { alert("Photo only allows file types of GIF, PNG, JPG, JPEG and BMP. "); document.getElementById('attandance').value=""; document.getElementById('attandance').focus(); } } } function showmonth(s2) { if (s2 == "") { document.getElementById("month1").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("month1").innerHTML = xmlhttp.responseText; } }; xmlhttp.open("GET","datamonth.php?na2="+s2,true); xmlhttp.send(); } } </script> </head> <body> <div class="header"> <div class="container"> <div class="logo"> <a href="index.html"><img src="images/logo.png" alt=""/></a> </div> <div class="top-menu"> <span class="menu"> </span> </div> <div id="sb-search" class="sb-search"> <h4 align="right"><a href="logout.php"><img src="images/logout.jpg"></a></h4> </div> <!-- search-scripts --> <script src="js/classie.js"></script> <script src="js/uisearch.js"></script> <!-- //search-scripts --> <div class="clearfix"></div> </div> <div class="clearfix"></div> </div> <!-- header-section-ends --> <div class="content"> <br> <div class="good-design"> <h3><?php echo $dd;?></h3> <h4><b><font size="3"><?php echo $uu;?> (<?php echo $ud;?>)</font></b></h4><br> <marquee behavior="alternate"><font color="red" size="+1"><b>कृपया Upload की जाने वाली File के नाम में किसी भी प्रकार के Special Character (`!@#$%^&*()_+=-;',./":<>?][}{\|) का इस्तेमाल न करें | अन्यथा Attendance मान्य नहीं होगी | </b></font></marquee> <form method="POST" enctype="multipart/form-data"> <table style="border:1px solid black;width:50%;" class="form" cellpadding="2px" align="center" > <tr><td colspan="4" style="border:1px solid black;background-color:#2A5CAA;color:white" align="center"><b>UPLOAD ATTENDANCE</b></td></tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Department</font></strong></td> <td><input class="inp-text" name="dept" id="dept" required value="<?php echo $dd; ?>" readonly type="text" size="30" style="background-color:gray;font-weight:bold;width:200px;height:30px;text-transform:uppercase;color:white;" /></td> <td align="right"><strong><font color="navy">Scheme</font></strong></td> <td><input class="inp-text" name="scheme" id="scheme" required value="<?php echo $uu; ?>" readonly type="text" size="30" style="background-color:gray;font-weight:bold;width:200px;height:30px;text-transform:uppercase;color:white;" /></td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Division</font></strong></td> <td><input class="inp-text" name="Division" id="Division" required value="<?php echo $dv; ?>" readonly type="text" size="30" style="background-color:gray;font-weight:bold;width:200px;height:30px;text-transform:uppercase;color:white;" /></td> <td align="right"><strong><font color="navy">District</font></strong></td> <td><input class="inp-text" name="dist" id="dist" required value="<?php echo $ud; ?>" readonly type="text" size="30" style="background-color:gray;font-weight:bold;width:200px;height:30px;text-transform:uppercase;color:white;" /></td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Sub Location</font></strong></td> <td><select name="hospital" id="hospital" required ize="30" style="font-weight:bold;width:200px;height:30px;text-transform:uppercase;" /> <?php $sql=mysql_query("SELECT * FROM login WHERE department='$dd' AND scheme='$uu' AND district='$ud' and user='$username'")or die(mysql_error()); while($r = mysql_fetch_array($sql)) { ?> <option value="<?php echo $r['sub_select'];?>"><?php echo $r['sub_select'];?></option> <?php } ?> </select> </td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Month</font></strong></td> <td><select name="month" id="month" required="required" type="text" style="width:200px;height:30px;text-transform:uppercase;color:black;" onChange="showmonth(this.value)"/> <option value=""></option> <?php $sql=mysql_query("SELECT m.DB_MonthName, m.Display_Name FROM monthorder m order by m.MonthOrder DESC")or die("Error in qurey"); //$sql=mysql_query("SELECT distinct DB_MonthName FROM monthorder order by DB_MonthName")or die(mysql_error()); while($r = mysql_fetch_array($sql)) { ?> <option value="<?php echo $r['DB_MonthName'];?>"><?php echo $r['DB_MonthName'];?></option> <?php } ?> </select></td> <td align="right"><strong><font color="navy">Upload File (only 1024 kb)</font></strong></td> <td align="center"><input name="attandance" id="attandance" required onchange="return ValidateFileUpload()" type="file" size="30" style="width:200px;height:30px;text-transform:uppercase;color:black;" /></td> </tr> <div id="month1"> </div> <tr><td colspan="4"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Feedback</font></strong></td> <td align="center"><select name="feedback" id="feedback" required="required" style="width:200px;height:30px;text-transform:uppercase;color:black;" > <option value=""></option> <option value="SATISFIED">SATISFIED</option> <option value="NOT SATISFIED">NOT SATISFIED</option> </select> </td> <td align="right"><strong><font color="navy">Remark</font></strong></td> <td align="center"><input name="remark" id="remark" type="text" style="width:200px;height:30px;text-transform:uppercase;color:black;" /></td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Total Employee Working</font></strong></td> <td align="center"><select name="totempwork" id="totempwork" style="width:200px;height:30px;text-transform:uppercase;color:black;" > <option value=""></option> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option><option value="07">07</option><option value="08">08</option><option value="09">09</option> <option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option> <option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option> <option value="18">18</option><option value="19">19</option><option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> <option value="32">32</option> <option value="33">33</option> <option value="34">34</option> <option value="35">35</option> <option value="36">36</option> <option value="37">37</option> <option value="38">38</option> <option value="39">39</option> <option value="40">40</option> <option value="41">41</option> <option value="42">42</option> <option value="43">43</option> <option value="44">44</option> <option value="45">45</option> <option value="46">46</option> <option value="47">47</option> <option value="48">48</option> <option value="49">49</option> <option value="50">50</option> <option value="51">51</option> <option value="52">53</option> <option value="54">54</option> <option value="55">55</option> <option value="56">56</option> <option value="57">57</option> <option value="58">58</option> <option value="59">59</option> <option value="60">60</option> <option value="61">61</option> <option value="62">62</option> <option value="63">63</option> <option value="64">64</option> <option value="65">65</option> <option value="66">66</option> <option value="67">67</option> <option value="68">68</option> </select> </td> <td align="right"><strong><font color="navy">Total Employee Attendance</font></strong></td> <td align="center"><select name="totempatt" id="totempatt" style="width:200px;height:30px;text-transform:uppercase;color:black;" > <option value=""></option> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option><option value="07">07</option><option value="08">08</option><option value="09">09</option> <option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option> <option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option> <option value="18">18</option><option value="19">19</option><option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> <option value="32">32</option> <option value="33">33</option> <option value="34">34</option> <option value="35">35</option> <option value="36">36</option> <option value="37">37</option> <option value="38">38</option> <option value="39">39</option> <option value="40">40</option> <option value="41">41</option> <option value="42">42</option> <option value="43">43</option> <option value="44">44</option> <option value="45">45</option> <option value="46">46</option> <option value="47">47</option> <option value="48">48</option> <option value="49">49</option> <option value="50">50</option> <option value="51">51</option> <option value="52">53</option> <option value="54">54</option> <option value="55">55</option> <option value="56">56</option> <option value="57">57</option> <option value="58">58</option> <option value="59">59</option> <option value="60">60</option> <option value="61">61</option> <option value="62">62</option> <option value="63">63</option> <option value="64">64</option> <option value="65">65</option> <option value="66">66</option> <option value="67">67</option> <option value="68">68</option> </select> </select> </td> </tr> <tr><td colspan="4"><br></td></tr> <tr> <td align="center" colspan="4"> <table style="width:20%;"><tr><td> <input class="send_btn" name="submit" type="submit" value="Submit" alt="Submit" title="Submit" style="font-weight:bold;width:100px;height:30px;background-color:#2A5CAA;color:white;"/></td> <td> <a href="page1.php"><input type="button" name="" value="Back" style="font-weight:bold;width:100px;height:30px;background-color:#2A5CAA;color:white;"></a> </td> <td> <a href="attreport.php"><input type="button" name="" value="View Old Attendance" style="font-weight:bold;width:200px;height:30px;background-color:#2A5CAA;color:white;"></a> </td> </tr></table></td> </tr> </table><br> <h4><b>नोट* <span>अपलोड फाइल के विकल्प में सिर्फ एक फाइल ही अपलोड की जा सकती है </b></span></h4><br> <h5><font color="green" size='4'><b>अतः एक से अधिक पन्नों (pages) की अटेंडेंस होने पर सभी पन्नों (pages) को एक साथ मर्ज (Merge) कर PDF फाइल बना लें Merge करने के लिए दी गई लिंक पर क्लिक करें<a href='https://online2pdf.com/'><font color='red'>यहाँ क्लिक करें</font> </a> </b></font></h5> <br> <?php echo $msg;?> </div><br> </form> <div class="footer"> <div class="container"> <div class="clearfix"></div> <div class="footer-bottom"> <p> Copyright ©2016 All rights Reserved | Designed by<a href="http://ramaipl.com" target="target_blank">RAMA INFOTECH PVT LTD</a></p> </div> <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> <a href="#" id="toTop" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a> </div> </div> <?php }} ?> </body> </html>