streams/Zotlabs/Module/Online.php

16 lines
260 B
PHP
Raw Normal View History

2016-04-19 03:38:38 +00:00
<?php
2019-05-28 23:42:32 +00:00
namespace Zotlabs\Module;
2016-04-19 03:38:38 +00:00
2019-05-28 23:42:32 +00:00
use Zotlabs\Web\Controller;
2016-04-19 03:38:38 +00:00
2019-05-28 23:42:32 +00:00
class Online extends Controller {
2016-04-19 03:38:38 +00:00
function init() {
2019-05-28 23:42:32 +00:00
$ret = [ 'result' => false ];
if (argc() != 2) {
2016-04-19 03:38:38 +00:00
json_return_and_die($ret);
2019-05-28 23:42:32 +00:00
}
json_return_and_die(get_online_status(argv(1)));
2016-04-19 03:38:38 +00:00
}
}