aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-19 20:52:05 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-19 20:52:05 -0700
commita8e4ec7801b5ca8c986febed1f95124b412e92f9 (patch)
tree02dde668c26d5b932997139537c99de9ca7242ea /mod/item.php
parent81835acc36f17939b9e202cec2ff8981ca03536b (diff)
downloadvolse-hubzilla-a8e4ec7801b5ca8c986febed1f95124b412e92f9.tar.gz
volse-hubzilla-a8e4ec7801b5ca8c986febed1f95124b412e92f9.tar.bz2
volse-hubzilla-a8e4ec7801b5ca8c986febed1f95124b412e92f9.zip
use browser geolocation when desired
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 39865cdaf..4ebb1e978 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -57,6 +57,7 @@ function item_post(&$a) {
$title = notags(trim($_POST['title']));
$body = escape_tags(trim($_POST['body']));
$location = notags(trim($_POST['location']));
+ $coord = notags(trim($_POST['coord']));
$verb = notags(trim($_POST['verb']));
if(! strlen($body)) {
@@ -128,8 +129,8 @@ function item_post(&$a) {
$r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`gravity`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
`author-name`, `author-link`, `author-avatar`, `created`,
- `edited`, `changed`, `uri`, `title`, `body`, `location`, `verb`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
- VALUES( %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
+ `edited`, `changed`, `uri`, `title`, `body`, `location`, `coord`, `verb`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
+ VALUES( %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($profile_uid),
dbesc($post_type),
intval($wall),
@@ -148,6 +149,7 @@ function item_post(&$a) {
dbesc($title),
dbesc($body),
dbesc($location),
+ dbesc($coord),
dbesc($verb),
dbesc($str_contact_allow),
dbesc($str_group_allow),