*/
require_once 'mod/item.php';
use Friendica\App;
use Friendica\Content\PageInfo;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Util\Strings;
function ifttt_install()
{
Hook::register('connector_settings', 'addon/ifttt/ifttt.php', 'ifttt_settings');
Hook::register('connector_settings_post', 'addon/ifttt/ifttt.php', 'ifttt_settings_post');
}
function ifttt_module()
{
}
function ifttt_content()
{
}
function ifttt_settings(App $a, &$s)
{
if (!local_user()) {
return;
}
$key = DI::pConfig()->get(local_user(), 'ifttt', 'key');
if (!$key) {
$key = Strings::getRandomHex(20);
DI::pConfig()->set(local_user(), 'ifttt', 'key', $key);
}
$s .= '';
$s .= '' . DI::l10n()->t('IFTTT Mirror') . '
';
$s .= '';
$s .= '