From 6f7690a123751a8021e41f8185159cb89df6f08d Mon Sep 17 00:00:00 2001 From: Caique Moreira <47729557+MrMoreira@users.noreply.github.com> Date: Thu, 6 Jun 2024 00:10:12 -0300 Subject: [PATCH] 0.0.3 --- mrm/includes/navbar.php | 10 +++++----- mrm/index.php | 14 +++++++++----- mrm/pages/fnd.php | 28 ++++++++++++++++++++++++++++ mrm/processer/dbconnect.php | 6 +++--- 4 files changed, 45 insertions(+), 13 deletions(-) create mode 100644 mrm/pages/fnd.php diff --git a/mrm/includes/navbar.php b/mrm/includes/navbar.php index a3f7305..cfd0af6 100644 --- a/mrm/includes/navbar.php +++ b/mrm/includes/navbar.php @@ -11,11 +11,11 @@ @@ -26,7 +26,7 @@ -
  • Perfil
  • +
  • Perfil
  • Login
  • diff --git a/mrm/index.php b/mrm/index.php index 1fa86e4..4a3311c 100644 --- a/mrm/index.php +++ b/mrm/index.php @@ -15,21 +15,25 @@ '; echo ''; echo ''; echo session_id(); - echo $_SESSION['nome']; - echo $_SESSION['email']; + // Verifica se o botão foi clicado e chama a função + if (isset($_POST['deslogar'])) { unset($_SESSION['email'],$_SESSION['senha'] ); session_destroy(); echo "Deslogado com sucesso!"; - - - }; + header('Location: /mrm/'); + exit; + } + } else { + echo "

    Você não está logado!

    "; + } ?> diff --git a/mrm/pages/fnd.php b/mrm/pages/fnd.php new file mode 100644 index 0000000..15e8d25 --- /dev/null +++ b/mrm/pages/fnd.php @@ -0,0 +1,28 @@ + + + + + + Document + + + + + + + +
    +
    +

    Função não disponível

    +

    + função ou página não disponível no momento. + Será implementada em breve. Por favor, aguarde. +

    +
    +
    + + \ No newline at end of file diff --git a/mrm/processer/dbconnect.php b/mrm/processer/dbconnect.php index 7bd9dae..df356df 100644 --- a/mrm/processer/dbconnect.php +++ b/mrm/processer/dbconnect.php @@ -1,9 +1,9 @@