diff --git a/index.php b/index.php index ffb9cbc..47916f9 100755 --- a/index.php +++ b/index.php @@ -76,7 +76,7 @@ $u = $details->response->user; if (property_exists($u, "firstName") && property_exists($u, "lastName")) { $name = $u->firstName . " " . $u->lastName; - setcookie("name", $name, time()+60*60*24*1); + setrawcookie("name", rawurlencode($name), time()+60*60*24*1); } if (property_exists($u->checkins, "items")) { $coordinates = $u->checkins->items[0]->venue->location->lat . "," . $u->checkins->items[0]->venue->location->lng; diff --git a/js/main.js b/js/main.js index 3d29f7a..d78af47 100644 --- a/js/main.js +++ b/js/main.js @@ -164,6 +164,8 @@ dojo.addOnLoad(function() { dojo.ready(function() { setTimeout(function() { + if (dojo.cookie("name") != "undefined") + dojo.byId("name").innerText = dojo.cookie("name"); if (dojo.cookie("pagina") != "undefined") dijit.byId("pagina").attr("value", dojo.cookie("pagina")); dijit.byId("textarea_ids").attr("value", dojo.cookie("textarea")); diff --git a/main.php b/main.php index de0fd9e..2379ff5 100644 --- a/main.php +++ b/main.php @@ -69,6 +69,7 @@ function setLocalCache($key, $data) {
Para ajudar a manter atualizadas as venues do foursquare, disponibilizamos aos superusuários ferramentas que permitem editá-las em massa. Obrigado por ajudar a melhorar as listagens de venues do foursquare.