Mercurial > hg > lukkari
comparison index.php @ 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 |
comparison
equal
deleted
inserted
replaced
142:0e8b8fac920d | 143:d70c899b0571 |
---|---|
410 if (in_array($tmp, $pageLanguages)) | 410 if (in_array($tmp, $pageLanguages)) |
411 $pageLang = $tmp; | 411 $pageLang = $tmp; |
412 } | 412 } |
413 | 413 |
414 | 414 |
415 // Check if we are using mobile mode | |
416 /* | |
417 if (isset($_GET["m"])) | |
418 { | |
419 $mobileMode = intval($_GET["m"]); | |
420 setcookie("lukmobile", $mobileMode, time() + 365*24*60*60); // expire in a year | |
421 } | |
422 else | |
423 if (isset($_COOKIE["lukmobile"])) | |
424 { | |
425 $mobileMode = $_COOKIE["lukmobile"]; | |
426 } | |
427 | |
428 if ($mobileMode) | |
429 { | |
430 $pageCSSData["prefix"] = $baseURI."mluk"; | |
431 } | |
432 */ | |
433 | |
434 // Check class setting | 415 // Check class setting |
435 if (isset($_GET["luokka"])) | 416 if (($classID = stGetRequestItem("luokka", FALSE, TRUE)) !== FALSE && lukCheckClassID($classID)) |
436 { | 417 { |
437 $classID = $_GET["luokka"]; | 418 setcookie("lukluokka", $classID, time() + 365*24*60*60); // expire in a year |
438 if (lukCheckClassID($classID)) | |
439 { | |
440 setcookie("lukluokka", $classID, time() + 365*24*60*60); // expire in a year | |
441 } | |
442 } | 419 } |
443 else | 420 else |
444 if (isset($_COOKIE["lukluokka"])) | 421 if (isset($_COOKIE["lukluokka"])) |
445 { | 422 { |
446 $classID = $_COOKIE["lukluokka"]; | 423 $classID = $_COOKIE["lukluokka"]; |