Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/05/2014, 22:50
Avatar de eccorposse
eccorposse
 
Fecha de Ingreso: diciembre-2009
Ubicación: Beijing
Mensajes: 69
Antigüedad: 14 años, 4 meses
Puntos: 0
Información Cambiar titulo segun variable

Saludos a todos pocr aca. Intento recoger dos variables que pasan por url, si, las recojo, pero ejemplo:

Entro a Help ?page=help y el titulo me sale bien HELP, entro por las demas variables, y todo perfecto, pero cuando paso ?page=home por la URL, me sale HELP en el titulo, y cuando so se pasa ninguna variable sale HOME, porsupesto estas en index.php, esto esta correcto hasta el punto de que cuando entro a help y vuelvo a home el titulo se queda con HELP. Aqui esta el codigo a ver si pueden arrojarme alguna luz.

<?php
$page = (isset($_GET['page']))?$_GET['page']:'home';
if(isset($_GET['page'])) {
$title = text_ui_home;
if ($page == 'help'); {
$title = text_ui_help;
}
}
else {
if ($page == 'home'); {
$title = text_ui_home;
}
}

/*else {
if (isset($_GET['lang'])) {
$title = text_ui_home;
}
if(isset($_GET['game'])) {
$gmxl = simplexml_load_file($resourcesDIR.'/'.$game.'/'.$game.'.xml');
foreach($gmxl->details as $item){
$name= $item->name;
$gmxloutput = $name;
}
$title = $gmxloutput;
}
else {
$title = text_ui_home;
}
}*/
?>