Ciao a tutti !!
Ma secondo voi....Come mai il refresh in questa pagina non funziona ??!?!
Sto seguendo un tutorial di freephp.it cercanco di adattare un po' la grafica ai miei gusti, ma come mai facendo cosi' non esegue il refresh ?!?!codice:<?php include_once("../include/configurazione.php"); include_once("../include/authorize.php"); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" type="text/css" href="../css/matrix_admin.css"> </head> <body> <table border="0" cellspacing="0" cellpadding="0" class="centro"> <tr> <td align="center"> <table border="0" cellspacing="1" cellpadding="0" class="centro2" bgcolor="#BE0000"> <tr> <td valign="top"> <table border="0" cellspacing="0" cellpadding="0" class="centro2" bgcolor="#F8F8F8"> <tr> <td align="center" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="center">[img]images/spacer.gif[/img]</td> </tr> <tr> <td align="center" valign="top"> <table border="0" cellspacing="0" cellpadding="0" class="centro3"> <tr> <td align="center" valign="top"> <?php list($status, $user) = auth_get_status(); if($status == AUTH_NOT_LOGGED){ $uname = strtolower(trim($_POST['uname'])); $passw = strtolower(trim($_POST['passw'])); if($uname == "" or $passw == ""){ $status = AUTH_INVALID_PARAMS; }else{ list($status, $user) = auth_login($uname, $passw); if(!is_null($user)){ list($status, $uid) = auth_register_session($user); } } } switch($status){ case AUTH_LOGGED: header("Refresh: 5;URL=home.php"); echo 'Sei gia connesso ... attendi il reindirizzamento'; break; case AUTH_INVALID_PARAMS: header("Refresh: 5;URL=home.php"); echo 'Hai inserito dati non corretti ... attendi il reindirizzamento'; break; case AUTH_LOGEDD_IN: switch(auth_get_option("TRANSICTION METHOD")){ case AUTH_USE_LINK: header("Refresh: 5;URL=home.php?uid=".$uid); break; case AUTH_USE_COOKIE: header("Refresh: 5;URL=home.php"); setcookie('uid', $uid, time()+3600*365); break; case AUTH_USE_SESSION: header("Refresh: 5;URL=home.php"); $_SESSION['uid'] = $uid; break; } echo 'Ciao '.$user['name'].' ... attendi il reindirizzamento'; break; case AUTH_FAILED: header("Refresh: 5;URL=home.php"); echo 'Fallimento durante il tentativo di connessione ... attendi il reindirizzamento'; break; } ?> </td> </tr> </table> </td> </tr> <tr> <td align="center">[img]images/spacer.gif[/img]</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>
ciao ciao
Micky

Rispondi quotando

