appify poke
This commit is contained in:
parent
299eb469f8
commit
791ff25d52
@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Zotlabs\Module; /** @file */
|
namespace Zotlabs\Module; /** @file */
|
||||||
|
|
||||||
|
use App;
|
||||||
|
use Zotlabs\Lib\Apps;
|
||||||
|
use Zotlabs\Web\Controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Poke, prod, finger, or otherwise do unspeakable things to somebody - who must be a connection in your address book
|
* Poke, prod, finger, or otherwise do unspeakable things to somebody - who must be a connection in your address book
|
||||||
@ -18,15 +22,19 @@ namespace Zotlabs\Module; /** @file */
|
|||||||
require_once('include/items.php');
|
require_once('include/items.php');
|
||||||
|
|
||||||
|
|
||||||
class Poke extends \Zotlabs\Web\Controller {
|
class Poke extends Controller {
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|
||||||
if(! local_channel())
|
if(! local_channel())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(! Apps::system_app_installed(local_channel(), 'Poke')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$uid = local_channel();
|
$uid = local_channel();
|
||||||
$channel = \App::get_channel();
|
$channel = App::get_channel();
|
||||||
|
|
||||||
$verb = notags(trim($_REQUEST['verb']));
|
$verb = notags(trim($_REQUEST['verb']));
|
||||||
|
|
||||||
@ -150,6 +158,15 @@ class Poke extends \Zotlabs\Web\Controller {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(! Apps::system_app_installed(local_channel(), 'Poke')) {
|
||||||
|
//Do not display any associated widgets at this point
|
||||||
|
App::$pdl = '';
|
||||||
|
|
||||||
|
$o = '<b>Poke App (Not Installed):</b><br>';
|
||||||
|
$o .= t('Poke somebody in your addressbook');
|
||||||
|
return $o;
|
||||||
|
}
|
||||||
|
|
||||||
nav_set_selected('Poke');
|
nav_set_selected('Poke');
|
||||||
|
|
||||||
$name = '';
|
$name = '';
|
||||||
|
Reference in New Issue
Block a user