Autor Zpráva
lolosu
Profil *
Zdravim, na webe www.taste-of-bodom.sk mam spravenu zmenu dizajnov takytom skriptom:

<?php
 session_start();
 if (isset($_GET["design"])) {
  if ($_GET["design"] == 1) {
   $_SESSION["design"] = "hate-crew-deathroll";
   setcookie("TasteOfBodomDesign", "hate-crew-deathroll", time()+180*24*60*60);
  } else {
   $_SESSION["design"] = "blooddrunk";
   setcookie("TasteOfBodomDesign", "blooddrunk", time()+180*24*60*60);
  };
 };
 if (isset($_SESSION["design"])) {
  $design = $_SESSION["design"];
 } elseif (isset($_COOKIE["TasteOfBodomDesign"])) {
  $_SESSION["design"] = $_COOKIE["TasteOfBodomDesign"];
  $design = $_COOKIE["TasteOfBodomDesign"];
 } else {
  $design = "blooddrunk";
  $_SESSION["design"] = $design;
  setcookie("TasteOfBodomDesign", $design, time()+180*24*60*60);
 };
 if (($design <> "blooddrunk") and ($design <> "hate-crew-deathroll")) {
  $design = "blooddrunk";
  $_SESSION["design"] = $design;
  setcookie("TasteOfBodomDesign", $design, time()+180*24*60*60);
 };
?>


V opere mi to, ze ked si uzivatel nastavy jeden zo stylov - neskor sa opat vrati na stranku - ma nastaveny naposledy zovleny styl, funguje. No v Mozzile a IE mi to nefunguje. Ked sa uzivatel opat vrati na web, ma nastaveny zakladny styl.
Viete mi prosim poradit, najlepsie by bolo napisat presny kod ako to mam spravit, pretoze PHP neviem a s tymto mi pomahala kamarat. A ak nie, tak aspon strucne riesenie problemu a ja to poslem kamaratovi.
Dakujem vopred.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: