Mercurial > hg > lukkari
changeset 143:d70c899b0571
Remove mobile mode, and another $_GET.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 31 Aug 2014 01:10:35 +0300 |
parents | 0e8b8fac920d |
children | f64a46fa7961 |
files | index.php |
diffstat | 1 files changed, 3 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Sun Aug 31 01:10:09 2014 +0300 +++ b/index.php Sun Aug 31 01:10:35 2014 +0300 @@ -412,33 +412,10 @@ } -// Check if we are using mobile mode -/* -if (isset($_GET["m"])) -{ - $mobileMode = intval($_GET["m"]); - setcookie("lukmobile", $mobileMode, time() + 365*24*60*60); // expire in a year -} -else -if (isset($_COOKIE["lukmobile"])) +// Check class setting +if (($classID = stGetRequestItem("luokka", FALSE, TRUE)) !== FALSE && lukCheckClassID($classID)) { - $mobileMode = $_COOKIE["lukmobile"]; -} - -if ($mobileMode) -{ - $pageCSSData["prefix"] = $baseURI."mluk"; -} -*/ - -// Check class setting -if (isset($_GET["luokka"])) -{ - $classID = $_GET["luokka"]; - if (lukCheckClassID($classID)) - { - setcookie("lukluokka", $classID, time() + 365*24*60*60); // expire in a year - } + setcookie("lukluokka", $classID, time() + 365*24*60*60); // expire in a year } else if (isset($_COOKIE["lukluokka"]))