public function addToCase($id, $q) {
if(!isset($_COOKIE["case"])) { $case[$id] = $q;
}
else {
$case[$id] = $q;
}}
cHVibGljIGZ1bmN0aW9uIGFkZFRvQ2FzZSgkaWQsICRxKSB7CgogaWYoIWlzc2V0KCRfQ09PS0lFWyJjYXNlIl0pKSB7CiAgICAgJGNhc2VbIm9kcmVyaWQiXSA9IHVuaXFpZCgpOwogICAgICRjYXNlWyRpZF0gPSAkcTsKICAgICAkY2FzZT1zZXJpYWxpemUoJGNhc2UpOwogICAgIHNldGNvb2tpZSgiY2FzZSIsICRjYXNlKTsKICAgIH0KICBlbHNlIHsKICAkY2FzZSA9IHVuc2VyaWFsaXplKCRfQ09PS0lFWyJjYXNlIl0pOwogICRjYXNlWyRpZF0gPSAkcTsKICAkY2FzZT1zZXJpYWxpemUoJGNhc2UpOwogIHNldGNvb2tpZSgiY2FzZSIsICRjYXNlKTsKICAgCiB9fQ==