mirror of
https://github.com/BreizhHardware/ProjetS4COMWEB.git
synced 2026-01-18 16:47:35 +01:00
Index from php to html
This commit is contained in:
@@ -21,7 +21,7 @@ $pdo = dbConnect();
|
||||
?>
|
||||
<body style="background-color: #EEF2F7">
|
||||
<div id="topbar">
|
||||
<a href="index.php">
|
||||
<a href="index.html">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
|
||||
@@ -21,7 +21,7 @@ $pdo = dbConnect();
|
||||
?>
|
||||
<body style="background-color: #EEF2F7">
|
||||
<div id="topbar">
|
||||
<a href="index.php">
|
||||
<a href="index.html">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title> Acceuil </title>
|
||||
<title> Accueil </title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
@@ -22,7 +22,7 @@
|
||||
?>
|
||||
<body style="background-color: #EEF2F7">
|
||||
<div id="topbar">
|
||||
<a href="index.php">
|
||||
<a href="index.html">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<body style="background-color: #EEF2F7">
|
||||
<div id="topbar">
|
||||
|
||||
<a href="index.php">
|
||||
<a href="index.html">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
@@ -60,7 +60,7 @@
|
||||
if($login != false){
|
||||
error_log("Login success");
|
||||
$_SESSION['token'] = base64_encode("patient:".strval($login));
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
} else {
|
||||
error_log('Erreur de connexion');
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ session_start();
|
||||
?>
|
||||
<body style="background-color: #EEF2F7">
|
||||
<div id="topbar">
|
||||
<a href="index.php">
|
||||
<a href="index.html">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
@@ -98,7 +98,7 @@ session_start();
|
||||
if(SignupMedecin::insertMedecin($pdo,$name,$surname,$mail, $password,$specialite,$phone,$codePostal)){
|
||||
error_log("Signup success");
|
||||
$_SESSION['id'] = $mail;
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
} else {
|
||||
error_log("Erreur d'inscription");
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ session_start();
|
||||
?>
|
||||
<body style="background-color: #EEF2F7">
|
||||
<div id="topbar">
|
||||
<a href="index.php">
|
||||
<a href="index.html">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
@@ -88,7 +88,7 @@ session_start();
|
||||
if(SignupPatient::Insert($pdo,$name,$surname,$mail,$password,$phone)){
|
||||
error_log("Signup success");
|
||||
$_SESSION['id'] = $mail;
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
} else {
|
||||
error_log('Erreur de connexion');
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ function checkMedecin(){
|
||||
return true;
|
||||
} else {
|
||||
if($token[0] == "patient"){
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
return false;
|
||||
} else {
|
||||
echo '<meta http-equiv="refresh" content="0;url=login-praticien.php">';
|
||||
@@ -22,7 +22,7 @@ function checkMedecin(){
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ function checkPatient(){
|
||||
return true;
|
||||
} else {
|
||||
if($token[0] == "medecin"){
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
return false;
|
||||
} else {
|
||||
echo '<meta http-equiv="refresh" content="0;url=login.php">';
|
||||
@@ -42,7 +42,7 @@ function checkPatient(){
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;url=index.html">';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ error_reporting(E_ALL);
|
||||
session_start();
|
||||
unset($_SESSION["token"]);
|
||||
//Redirect to the rdv.php page
|
||||
echo '<meta http-equiv="refresh" content="0;URL=../../../../index.php">';
|
||||
echo '<meta http-equiv="refresh" content="0;URL=../../../../index.html">';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user