This commit is contained in:
friendica
2012-07-19 21:09:40 -07:00
parent 6293c5e1cf
commit bf38674904
9 changed files with 103 additions and 5 deletions

View File

@@ -102,6 +102,26 @@ function poke_init(&$a) {
function poke_content(&$a) {
if(! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
$name = '';
$id = '';
if(intval($_GET['c'])) {
$r = q("select id,name from contact where id = %d and uid = %d limit 1",
intval($_GET['c']),
intval(local_user())
);
if(count($r)) {
$name = $r[0]['name'];
$id = $r[0]['id'];
}
}
$base = $a->get_baseurl();
$a->page['htmlhead'] .= '<script src="' . $a->get_baseurl(true) . '/library/jquery_ac/friendica.complete.js" ></script>';
@@ -141,7 +161,9 @@ EOT;
'$clabel' => t('Recipient'),
'$choice' => t('Choose what you wish to do to recipient'),
'$verbs' => $shortlist,
'$submit' => t('Submit')
'$submit' => t('Submit'),
'$name' => $name,
'$id' => $id
));
return $o;