Skip to content

Commit

Permalink
Nome do usuário
Browse files Browse the repository at this point in the history
Implementação inacabada da exibição do nome do usuário.
  • Loading branch information
gavlinski committed Jan 13, 2014
1 parent 25491ff commit 5655729
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
1 change: 1 addition & 0 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function setLocalCache($key, $data) {
<body class="claro">
<h2>Edi&ccedil;&atilde;o de venues em massa via API</h2>
<div style="width: 578px;">
<!--<p>Ol&aacute;, <span id="name">Superusu&aacute;rio</span>!</p>-->
<p>Para ajudar a manter atualizadas as venues do foursquare, disponibilizamos aos superusu&aacute;rios ferramentas que permitem edit&aacute;-las em massa. Obrigado por ajudar a melhorar as listagens de venues do foursquare.<p>
<div id="accordion" dojoType="dijit.layout.AccordionContainer" doLayout="false">
<div dojoType="dijit.layout.ContentPane" title="Importar dados de um arquivo CSV">
Expand Down

0 comments on commit 5655729

Please sign in to comment.