Server IP : 149.202.105.228 / Your IP : 216.73.216.18 Web Server : Apache System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : atfycaf ( 116275) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/atfycaf/www/admin/ |
Upload File : |
<?php include "globalVars.php"; if (isset($_POST["saveChanges"])) { $newPass = cleanPost($_POST["adminUserPass"], $conn); $newPassR = cleanPost($_POST["adminUserPassR"], $conn); if ($newPass == $newPassR) { $newCookieVar = getRandID(20); mysqli_query($conn, "UPDATE admin SET loginPass = '". md5($newPass) ."', cookieVar = '$newCookieVar' WHERE id = '$adminID'"); $trackDate = date("Y-m-d H:i:s"); mysqli_query($conn, "INSERT INTO userActions (dateCreated, adminID, pageTracking, databaseUpdated, updateDetails) VALUES ('$trackDate', '$adminID', 'admin/userManagementDetails-Pass.html', 'admin', 'The User ". addslashes($adminName) ." <$adminEmail> updated their login password')"); header("Location: $url"); } } include "header.php"; ?> <h2>Update your Password</h2> <div class="formContainer"> <div class="functionButtons"> <form action="userManagementDetails.html" method="post"> <input type="submit" name="updateDetails" value="Your Details" /> </form> <form action="userManagementDetails-Pass.html" method="post"> <input type="submit" class="functionSelected" name="updateDetails" value="Change Password" /> </form> </div> </div> <p><strong>If you change your password you will be automatically logged out and required to log in again with your new password.</strong> <form action="userManagementDetails-Pass.html" method="post" id="passwordReset"> <div class="descStTab"> <div class="pFormRow"> <div class="pFormTitle">New Password: <span class="infoButton"><img src="images/infoButton.png" width="14" height="14" alt="Help" title="Help" border="0" /><span>The password they need to use to access this admin</span></span></div> <div class="pFormInput"> <input type="password" id="adminUserPass" name="adminUserPass" size="50" data-display="passStrength" required /> <div class="pFormLabel"> <label class="labelName">New Password:</label> </div> </div> </div> <div class="pFormRow"> <div class="pFormTitle">Repeat New Password: <span class="infoButton"><img src="images/infoButton.png" width="14" height="14" alt="Help" title="Help" border="0" /><span>The password they need to use to access this admin</span></span></div> <div class="pFormInput"> <input type="password" id="adminUserPassR" name="adminUserPassR" size="50" required /> <div class="pFormLabel"> <label class="labelName">Repeat New Password:</label> </div> </div> </div> <div id="passStrength"></div> <div id="passNoMatch">The passwords do not match</div> <input type="submit" id="saveChanges" class="submitButton" name="saveChanges" value="Update Password" disabled /> </div> </form> <?php include "footer.php"; ?>