Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/11/2009, 14:03
pinchu
 
Fecha de Ingreso: septiembre-2009
Mensajes: 215
Antigüedad: 14 años, 7 meses
Puntos: 1
Respuesta: que cambie el css al estar logueado

Podrías una función que te escriba la cabecera y en función de si el usuario está logueado o no pues te escriba un fichero css u otro.Algo así:


function mostrarHead($logueado) {
if ($logueado == "si") {
echo '
<head>
<title> Usuario logueado </title>
<meta http-equiv = "Content-Type" content = "text/html;charset= utf-8" />
<link rel = "stylesheet" type = "text/css" href = "rutaEstilosLogueado" />
</head>';
}

else {
echo '
<head>
<title> Usuario no logueado </title>
<meta http-equiv = "Content-Type" content = "text/html;charset= utf-8" />
<link rel = "stylesheet" type = "text/css" href = "tutaEstilosNoLogueado" />
</head>';
}