B4BY.588
Home
Terminal
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
sportmx
/
gradas-deportivas-futbol.sportmaster.mx
/
Filename :
login.php
back
Copy
<?php session_start(); $login_error = ''; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $correct_username = 'sportmaster'; $correct_password = password_hash('j9LMw8YEgLqqMxEq', PASSWORD_BCRYPT); $username = $_POST['username']; $password = $_POST['password']; if ($username === 'sportmaster' && password_verify($password, $correct_password)) { $_SESSION['user'] = $username; header('Location: update-pricing.php'); exit(); } else { $login_error = 'Credenciales inválidas'; } } ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Iniciar Sesión</title> <link rel="stylesheet" href="style.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div class="container login-container"> <form method="POST" class="login-form"> <h2>Iniciar Sesión</h2> <?php if($login_error): ?> <div class="error-message"><?php echo $login_error; ?></div> <?php endif; ?> <div class="form-group"> <label for="username">Usuario</label> <input type="text" id="username" name="username" required> </div> <div class="form-group"> <label for="password">Contraseña</label> <input type="password" id="password" name="password" required> </div> <button type="submit" class="cta-button">Iniciar Sesión</button> </form> </div> </body> </html>