error_reporting(E_ALL); ini_set('arg_separator.output',';'); if (isset($_GET['logout'])) $logout=$_GET['logout']; else $logout=0; if ($logout==1) session_destroy(); if (!defined("BASE_PATH")) define('BASE_PATH', isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : substr($_SERVER['PATH_TRANSLATED'],0, -1*strlen($_SERVER['SCRIPT_NAME']))); $_SERVER['DOCUMENT_ROOT']=BASE_PATH; //session_start(); if (isset($_SESSION['Login'])) $login=$_SESSION['Login']; else $login=false; if ($login!=true) { session_write_close(); $url='http://'.$HTTP_SERVER_VARS['HTTP_HOST']."/index.php"; header ("Location: $url"); } include($_SERVER['DOCUMENT_ROOT']."/script/regvisita.php"); include($_SERVER['DOCUMENT_ROOT']."/funzioni/funzioni.php"); if (isset ($_SESSION['TipoPermesso']) && ($_SESSION['TipoPermesso']==512)) { $_SESSION['Registrato']=true; } else { $_SESSION['Registrato']=false; } ?> ?>
include("script/main_table.inc");?>if (isset ($_SESSION['Login']) && ($_SESSION['Login']==true)) { $_SESSION['Registrato']=true; echo "Utente registrato"; } else { $_SESSION['Registrato']=false; echo "Utente non registrato"; } ?> | |||
echo ''; include($_SERVER['DOCUMENT_ROOT']."/script/main_menu.php"); if (!$_SESSION['Login']) include($_SERVER['DOCUMENT_ROOT']."/script/login_form.inc"); ?> | include($_SERVER['DOCUMENT_ROOT']."/NewsLetter/newsletter_messaggio.inc"); //include($_SERVER['DOCUMENT_ROOT']."/NewsLetter/ins_articolo.inc"); ?> | // Se l'utente non ha gia' votato, allora mostra il sondaggio //if (!$_SESSION['votato']) { //include($_SERVER['DOCUMENT_ROOT']."/script/disp_sondaggio.php"); //}; include($_SERVER['DOCUMENT_ROOT']."/Articoli/ultimi_articoli.php"); //include($_SERVER['DOCUMENT_ROOT'].'/include/annunci_google.inc'); ?> | |