/home/aqcert/public_html/admin
NameSizeModeActions
dash/-0755rm
image/-0755rm
images/-0755rm
tinymce/-0755rm
about-us.php32160644editdlrm
allcertificate.php27610644editdlrm
certificate-update.php58450644editdlrm
certificate.php67430644editdlrm
changepassword.php37720644editdlrm
clients.php92590644editdlrm
config.php6450644editdlrm
connection.php2360644editdlrm
contact.php35420644editdlrm
delete_slider_image.php11510644editdlrm
error_log38630644editdlrm
footer.php32020644editdlrm
home-slider.php49010644editdlrm
how-we-work.php32220644editdlrm
index.php27050644editdlrm
login.php69200644editdlrm
login1.php38420644editdlrm
logout.php2550644editdlrm
main.php77080644editdlrm
services-update.php48010644editdlrm
services.php49950644editdlrm
slider_image_change.php46610644editdlrm
update-footer.php32200644editdlrm
vision-mission.php32320644editdlrm
welcome-update.php32230644editdlrm
Edit: /home/aqcert/public_html/admin/login.php (6920B)
Assure Quality Certification Limited prepare($sql)){ // Bind variables to the prepared statement as parameters $stmt->bindParam(':username', $param_username, PDO::PARAM_STR); // Set parameters $param_username = trim($_POST["username"]); // Attempt to execute the prepared statement try{ if($stmt->execute()){ // Check if username exists, if yes then verify password if($stmt->rowCount() == 1){ if($row = $stmt->fetch()){ $id = $row["id"]; $username = $row["username"]; $hashed_password = base64_decode($row["password"]); $hash=password_hash($hashed_password, PASSWORD_DEFAULT); if(password_verify($password,$hash)){ // Password is correct, so start a new session session_start(); // Store data in session variables $_SESSION["loggedin"] = true; $_SESSION["id"] = $id; $_SESSION["username"] = $username; // Redirect user to welcome page header("location: allcertificate.php"); } else{ // Display an error message if password is not valid $password_err = "The password you entered was not valid."; echo ''; header("location: login.php"); } } } else{ // Display an error message if username doesn't exist $username_err = "No account found with that username."; echo ''; header("location: login.php"); } } else{ echo "Oops! Something went wrong. Please try again later."; echo ''; header("location: login.php"); } } catch(Exception $e){ 'Message: ' .$e->getMessage(); echo '

Message: Oops! Something went wrong. Please try again later.

'; } } // Close statement unset($stmt); } // Close connection unset($pdo); } ?>

Asure Quality Certification Limited
Admin Login

" method="post" enctype="multipart/form-data">