����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.129.25.216 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/learn.skilltainment.org/ |
Upload File : |
<?php include './sidebar.php'; include './navbar.php'; if (isset($_POST['submit'])) { $fname = mysqli_real_escape_string($conn, htmlentities($_POST['fname'])); $lname = mysqli_real_escape_string($conn, htmlentities($_POST['lname'])); $email = mysqli_real_escape_string($conn, htmlentities($_POST['email'])); $mobile = mysqli_real_escape_string($conn, htmlentities($_POST['mobile'])); $password = mysqli_real_escape_string($conn, htmlentities($_POST['password'])); $hashed = md5($password); if (empty($password)) { $query2 = "UPDATE `users` SET `firstname`='$fname',`surname`='$lname',`email`='$email',`mobile`='$mobile' WHERE `uid`='$user'"; if ($run2 = mysqli_query($conn, $query2)) { ?> <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { swal("SUCCESS", "Profile was successfully updated", "success"); setTimeout(function() { window.location = 'settings' }, 2000); }); </script> <?php } else { die(mysqli_error($conn)); } } else { $query2 = "UPDATE `users` SET `firstname`='$fname',`surname`='$lname',`email`='$email',`mobile`='$mobile',`password`='$hashed' WHERE `uid`='$user'"; if ($run2 = mysqli_query($conn, $query2)) { ?> <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { swal("SUCCESS", "Profile was successfully updated", "success"); setTimeout(function() { window.location = 'settings' }, 2000); }); </script> <?php } else { die(mysqli_error($conn)); } } } ?> <!-- Settings --> <div class="container-fluid pt-4 px-4"> <div class="col-12"> <div class="bg-secondary rounded p-4 my-4"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <div class="form-floating mb-3"> <input type="text" name="fname" class="form-control" id="floatingText" placeholder="First Name" value="<?php echo $firstname; ?>" required> <label for="floatingText">First Name</label> </div> <div class="form-floating mb-3"> <input type="text" name="lname" class="form-control" id="floatingText" placeholder="Last Name" value="<?php echo $surname; ?>" required> <label for="floatingText">Last Name</label> </div> <div class="form-floating mb-3"> <input type="email" name="email" class="form-control" id="floatingInput" placeholder="Email Address" value="<?php echo $email; ?>" required> <label for="floatingInput">Email Address</label> </div> <div class="form-floating mb-3"> <input type="text" name="mobile" class="form-control" id="floatingText" placeholder="Mobile Number" value="<?php echo $mobile; ?>" required> <label for="floatingText">Mobile Number</label> </div> <div class="form-floating mb-4"> <input type="password" name="password" class="form-control" id="floatingPassword" placeholder="Password"> <label for="floatingPassword">Password</label> </div> <input type="hidden" name="uid" value="<?php echo $user; ?>"> <button type="submit" name="submit" class="btn btn-primary py-3 w-100 mb-4">Update</button> </form> </div> </div> </div> <!-- Settings End --> <?php include './footer.php'; ?>