Tn Jones Shell Bypass
:
3.22.242.84
:
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/mandal_changepass.php
<?php date_default_timezone_set("Asia/Kolkata"); ?> <?php include("connection.php"); session_start(); if (!isset($_SESSION['user']) || ($_SESSION['password'] == '')) { header("location:payrolLogin/mandallogin.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/mandallogin.php'>Login here</a>"; } else { //Starting this else one [else1] if(isset($_SESSION['user'])) { $dept=$_SESSION['department']; $sche=$_SESSION['scheme']; $username=$_SESSION['user']; } $user_query = mysql_query("SELECT * FROM login_mandal where user='$username' ")or die(mysql_error()); $user_row = mysql_fetch_array($user_query); $dd = $user_row['department']; $usch = $user_row['scheme']; $divi= $user_row['division']; ?> <?php $msg=""; if(isset($_REQUEST['btn'])) { $id = $_REQUEST['user']; $password = $_REQUEST['opass']; $newpassword = $_REQUEST['Npass']; $confirmnewpassword = $_REQUEST['Confirmpass']; $result = mysql_query("SELECT password FROM login_mandal WHERE user='$username'"); if(!$result) { $msg= "The username you entered does not exist"; } else if($password!= mysql_result($result, 0)) { $msg= "You entered an incorrect password"; } if($newpassword=$confirmnewpassword) $sql=mysql_query("UPDATE login_mandal SET password='$newpassword' where user='$username'"); if($sql==true) { $msg= "Congratulations You have successfully changed your password"; } else { $msg= "Passwords do not match"; } } ?> <!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 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 fun() { var a=document.getElementById("user").value; var a=document.getElementById("Cpass").value; var b=document.getElementById("Npass").value; var c=document.getElementById("Confirmpass").value; if(a=="") { alert("Please enter the user name"); document.getElementById("user").focus(); return false; } else if(b=="") { alert("Please enter old password"); document.getElementById("Cpass").focus(); return false; } else if(c=="") { alert("Please enter new password"); document.getElementById("Npass").focus(); return false; } else if(d=="") { alert("Please enter Confirm password"); document.getElementById("Confirmpass").focus(); return false } else if(c!=d) { alert("Please match the new and Confirm password"); } else { alert("password Changed"); } } </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"> </div> <!-- search-scripts --> <script src="js/classie.js"></script> <script src="js/uisearch.js"></script> <script> new UISearch( document.getElementById( 'sb-search' ) ); </script> <!-- //search-scripts --> <div class="clearfix"></div> <div id="sb-search" class="sb-search"> <h4 align="right"><a href="logout.php"><img src="images/logout.jpg"></a></h4> </div> </div> <!-- script-for-nav --> <script> $(document).ready(function(){ $("span.menu").click(function(){ $(".top-nav ul").slideToggle(1000); }); }); </script> <!-- script-for-nav --> <!-- /top-nav --> <div class="clearfix"></div> </div> </div> <!-- header-section-ends --> <div class="banner"> <div class="container"> <h3>MANDAL PANEL</h3> </div> </div> <div class="content"> <br> <div class="good-design"> <h3><?php echo $dd;?></h3> <h4> <font size="4"> <b><?php echo $usch;?></b> </font> </h4><br> <form method="post" > <table style="border:1px solid black;width:35%;" border="3" cellspacing="0" cellpadding="0" align="center"> <tr style="border:1px solid black;background-color:#2A5CAA;color:white"><td colspan="2" align="center"><strong><font size="+1">Reset Password</font></strong></td></tr> <tr><td colspan="2"><br></td></tr> <?php $sql1=mysql_query("select * from login_mandal where user='$username'"); if($r=mysql_fetch_array($sql1)) { ?> <tr> <td ><strong><font color="navy">User Id</font></strong></td> <td><input type="text" name="user" id="user" readonly style=" width:200px; height:32px" value="<?php echo $r['user'];?>"></td> </tr> <?php } ?> <tr><td colspan="2"><br></td></tr> <tr> <td><strong><font color="navy">Old password</font></strong></td> <td><input type="password"style=" width:200px; height:32px" autocomplete="off" name="opass" id="Cpass"></td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td><strong><font color="navy">New Password</font></strong></td> <td ><input type="password" name="Npass" style=" width:200px; height:32px" id="Npass"></td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td ><strong><font color="navy">Confirm Password</font></strong></td> <td><input type="password" name="Confirmpass" style=" width:200px; height:32px" id="Confirmpass"></td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td colspan="2" align="center"><input style="font-weight:bold;width:80px;height:30px;background-color:#2A5CAA;color:white;" type="submit" name="btn" value="OK" onClick="return fun()" /> <a href="pagemandal.php"><input type="button" name="" value="Back" style="font-weight:bold;width:80px;height:30px;background-color:#2A5CAA;color:white;"></a> </td> </tr> </table> </form> <br> <center><font size="3" color="navy"><b><?php echo $msg;?></b></font></center> <div class="clearfix"></div> </div> </div> </div> <div class="footer"> <div class="container"> <div class="clearfix"></div> <div class="footer-bottom"> <p> Copyright ©2015 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>