From ea77a8f5850ec0f9d368fcba871d7a1a33ea94e5 Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Sun, 7 Apr 2024 11:25:20 +0200 Subject: [PATCH] =?UTF-8?q?pr=C3=A9paration=20de=20la=20connection=20phpca?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.php | 6 ++++-- css/index.css | 1 + index.php | 7 ++++--- session_verif.php | 2 ++ 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/api.php b/api.php index afb8de6..86da9b6 100644 --- a/api.php +++ b/api.php @@ -38,14 +38,16 @@ switch($endpoint){ case 'auth': - try{ + /*try{ $_SESSION["utilisateur_authentifie"] = true; session_regenerate_id(true); $_SESSION["heure_debut"] = time(); echo(json_encode(["status"=>"1","msg"=>"Authentification réussie."])); }catch(Exception $e){ echo( json_encode(["status"=> "0","msg"=> $e->getMessage() ]) ); - } + }*/ + echo( json_encode(["status"=> "0","msg"=> "Authentification par api pas encore active."])); + break; case 'unauth': diff --git a/css/index.css b/css/index.css index 6b557ba..dffadb8 100644 --- a/css/index.css +++ b/css/index.css @@ -89,6 +89,7 @@ border-top: 0px; border-left: 0px; border-right: 0px; + } .color-red-tr{ diff --git a/index.php b/index.php index 5c2dc55..6f1815f 100644 --- a/index.php +++ b/index.php @@ -24,9 +24,10 @@

Comme vous pouvez le constater, on cherche quelqu'un pour le design (html + css) du site :D club.info@amicale-insat.fr

- - - + connection + déconnection +
+
diff --git a/session_verif.php b/session_verif.php index e96395a..2d6e19a 100644 --- a/session_verif.php +++ b/session_verif.php @@ -32,8 +32,10 @@ if (isset($_REQUEST['logout'])) { phpCAS::logout(); }*/ +//$_SESSION["utilisateur_authentifie"] = true; function verifier_session(){ + //return json_encode(["status"=>1,"msg"=>"Bonjour ".phpCAS::getUser()." !"]); return json_encode(["status"=>1,"msg"=>"Bonjour !"]);