Dipende com'è la logica quando fai il login.
Prova così, se $_SESSION['logged'] non è settata oppure contiene un valore uguale a 0 include form_login.php, nel altro caso form_logout.php.
Codice PHP:<?php session_start(); ?>
<html>
<head>
<title><?php echo $_GET['page'];?></title>
<link href="stile.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="intestazione">
[img]temp_4/img/logo copia.png[/img]
<div id="i_form">
<?php
include_once("funzioni.php");
if (isset($_SESSION['logged'])==false || $_SESSION['logged']==0)
{
//utente non loggato
include("form_login.php");
}
else
{
//echo $_SESSION['utente'].'utente loggato'; // Lo metterei su form_logout.php
include("form_logout.php");
}
//form_log($_SESSION['logged']);
?>
</div>
</div>


Rispondi quotando