Comparar commits
1 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| 7ae8e018b8 |
@@ -1,18 +1,3 @@
|
||||
<?php
|
||||
//Controle de Sessão
|
||||
session_start();
|
||||
|
||||
if(@$_GET["sair"]=="ok"){
|
||||
$_SESSION["id"]="";
|
||||
session_destroy();
|
||||
}
|
||||
|
||||
if(@$_SESSION["id"]!=""){
|
||||
header("location: processa.php?id=".$_SESSION["id"]);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
To change this license header, choose License Headers in Project Properties.
|
||||
|
||||
+15
-3
@@ -81,10 +81,22 @@ and open the template in the editor.
|
||||
<div id="menuu">
|
||||
<ul>
|
||||
<li><a id="inicial" href="index.php" onclick="">Página inicial</a></li>
|
||||
<li><a id="recurso" href="atlas2021/index.html" onclick="curSec(this.id)">Mapas</a></li>
|
||||
<li><a id="recurso" href="mapas.php" onclick="curSec(this.id)">Mapas</a></li>
|
||||
<li><a id="ajuda" href="#ajuda" onclick="curSec(this.id)">Ajuda</a></li>
|
||||
<li><a id="conta" href="login.php" onclick="">Fazer login</a></li>
|
||||
<li><a id="entrar" href="cadastrar.php" onclick="">Cadastre-se</a></li>
|
||||
<?php
|
||||
session_start();
|
||||
if($_SESSION["id"]==""){
|
||||
?>
|
||||
<li><a id="conta" href="login.php" onclick="">Fazer login</a></li>
|
||||
<li><a id="entrar" href="cadastrar.php" onclick="">Cadastre-se</a></li>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<li><a id="logut" href="index.php?sair=ok" onclick="">Logut</a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="container">
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário