streams/Zotlabs/Module/Clients.php

24 lines
472 B
PHP
Raw Normal View History

2019-10-10 05:51:48 +00:00
<?php
namespace Zotlabs\Module;
use Zotlabs\Lib\Apps;
use Zotlabs\Lib\Libsync;
use Zotlabs\Web\Controller;
class Clients extends Controller {
function get() {
$desc = t('This app allows you to authorize mobile apps using OAuth and OpenID to access your channel.');
if(! Apps::system_app_installed(local_channel(),'Clients')) {
return '<div class="section-content-info-wrapper">' . $desc . '</div>';
}
goaway(z_root() . '/settings/oauth2');
}
}