sqlConnect(); $sql->sqlQuery("SELECT IDGALLERIE, IDe_CATEGORIE, GALLERIE_NOM FROM GALLERIE WHERE IDGALLERIE = '".addslashes($_GET['id'])."'", "sql"); $sql->sqlClose(); if($sql->nbre_result['sql'] == 1) { if($config['categorie']['wall'][mysql_result($sql->result['sql'], "0", "IDe_CATEGORIE")][4] == 'wallpaper') $s = 's'; $new_adresse = $config['categorie']['wall'][mysql_result($sql->result['sql'], "0", "IDe_CATEGORIE")][4]."/".$config['categorie']['wall'][mysql_result($sql->result['sql'], "0", "IDe_CATEGORIE")][3]."/".rewrite(mysql_result($sql->result['sql'], "0", "GALLERIE_NOM")).$s.",".mysql_result($sql->result['sql'], "0", "IDGALLERIE")."-0.html"; } else $new_adresse = "index.html"; header("Status: 301 Moved Permanently"); header("location:".$new_adresse); break; default : header("Status: 301 Moved Permanently"); header("location:index.html"); break; } ?>