# HG changeset patch # User Matti Hamalainen # Date 1409436635 -10800 # Node ID d70c899b0571a8197256df19346fa66144a00849 # Parent 0e8b8fac920da6a9244e73b258c6bc4cef730f20 Remove mobile mode, and another $_GET. diff -r 0e8b8fac920d -r d70c899b0571 index.php --- 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"]))