From e99b9376a0151903f1d88f4570c907e6a8228db0 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 17 Apr 2013 22:44:53 -0700 Subject: poke doco and cleanup --- mod/poke.php | 61 +++++++++++++++++++++--------------------------------------- 1 file changed, 21 insertions(+), 40 deletions(-) (limited to 'mod') diff --git a/mod/poke.php b/mod/poke.php index 875c52337..6cf0c97f1 100755 --- a/mod/poke.php +++ b/mod/poke.php @@ -1,10 +1,21 @@ -get_channel(); - - $verb = notags(trim($_GET['verb'])); + $verb = notags(trim($_REQUEST['verb'])); if(! $verb) return; @@ -26,12 +36,11 @@ function poke_init(&$a) { $activity = ACTIVITY_POKE . '#' . urlencode($verbs[$verb][0]); - $contact_id = intval($_GET['cid']); + $contact_id = intval($_REQUEST['cid']); if(! $contact_id) return; - $parent = ((x($_GET,'parent')) ? intval($_GET['parent']) : 0); - + $parent = ((x($_REQUEST,'parent')) ? intval($_REQUEST['parent']) : 0); logger('poke: verb ' . $verb . ' contact ' . $contact_id, LOGGER_DEBUG); @@ -77,9 +86,6 @@ function poke_init(&$a) { } - - - $arr = array(); $arr['item_flags'] = ITEM_WALL | ITEM_ORIGIN; if($parent_item) @@ -126,10 +132,10 @@ function poke_content(&$a) { $name = ''; $id = ''; - if(intval($_GET['c'])) { + if(intval($_REQUEST['c'])) { $r = q("select abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_channel = %d limit 1", - intval($_GET['c']), + intval($_REQUEST['c']), intval(local_user()) ); if($r) { @@ -138,32 +144,7 @@ function poke_content(&$a) { } } - - $base = $a->get_baseurl(); - - $a->page['htmlhead'] .= <<< EOT - - -EOT; - - $parent = ((x($_GET,'parent')) ? intval($_GET['parent']) : '0'); - - + $parent = ((x($_REQUEST,'parent')) ? intval($_REQUEST['parent']) : '0'); $verbs = get_poke_verbs(); -- cgit v1.2.3