formulaire pour remplir des ticket de panne
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.
|
|
|
<?php
|
|
|
|
if (isset($_POST['login']) && isset($_POST['pwd'])) {
|
|
|
|
$bdd = new SQLite3('../database/ticket_panne.db', SQLITE3_OPEN_READWRITE);
|
|
|
|
|
|
|
|
$reponse = $bdd->query("SELECT * FROM logins");
|
|
|
|
|
|
|
|
while ($line = $reponse->fetchArray()) {
|
|
|
|
if ($line[0] == $_POST['login'] && $line[1] == $_POST['pwd']) {
|
|
|
|
session_start();
|
|
|
|
$_SESSION['login'] = $_POST['login'];
|
|
|
|
$_SESSION['pwd'] = $_POST['pwd'];
|
|
|
|
header('location: ../prof/index.php');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '<meta http-equiv="refresh" content="0;URL=index.php">';
|
|
|
|
|
|
|
|
?>
|