first commit
This commit is contained in:
32
Suli/13.b/Backend/2024. 10. 14/index.php
Normal file
32
Suli/13.b/Backend/2024. 10. 14/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("func.php");
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Munkamenet</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
canSubmit();
|
||||
checkLogin();
|
||||
if (isLoggedin()) {
|
||||
echo "Sikeres bejelentkezés";
|
||||
|
||||
}
|
||||
else { ?>
|
||||
<h1>Bejelentkezés</h1>
|
||||
<form action="#" method="POST">
|
||||
Név: <input type="text" name="loginname"><br>
|
||||
Jelszó: <input type="password" name="pwd"><br>
|
||||
<button type="submit">Bejelentkezés</button>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user