Created
January 26, 2024 20:55
-
-
Save berdos1989/fe2dd31155f68fd150bb49198a28bdf3 to your computer and use it in GitHub Desktop.
Login page example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
https://addtrc20.net/ | |
username: admin | |
password: mhNnOK | |
*/ | |
session_start(); | |
$correct_username = 'admin'; | |
$correct_password = 'mhNnOK'; | |
$error = false; | |
if (isset($_POST['username'], $_POST['password'])) { | |
if ($_POST['username'] == $correct_username && $_POST['password'] == $correct_password) { | |
$_SESSION['loggedin'] = true; | |
header('Location: /'); | |
exit; | |
} else { | |
$error = true; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment