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