You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
460 B
20 lines
460 B
3 years ago
|
<?php
|
||
|
|
||
|
$good_login = 'prof';
|
||
|
$good_pwd = 'arthur';
|
||
|
|
||
|
if (isset($_POST['login']) && isset($_POST['pwd'])) {
|
||
|
if ($good_login == $_POST['login'] && $good_pwd == $_POST['pwd']) {
|
||
|
session_start();
|
||
|
$_SESSION['login'] = $_POST['login'];
|
||
|
$_SESSION['pwd'] = $_POST['pwd'];
|
||
|
header('location: prof/index.php');
|
||
|
}
|
||
|
else {
|
||
|
echo '<meta http-equiv="refresh" content="0;URL=index.php">';
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
echo 'c vide';
|
||
|
}
|
||
|
?>
|