mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-29 01:42:19 +00:00
29 lines
559 B
PHP
Executable file
29 lines
559 B
PHP
Executable file
<?php
|
|
|
|
|
|
/**
|
|
* Name: external cron
|
|
* Description: Use external server or service to run poller regularly
|
|
* Version: 1.0
|
|
* Author: Mike Macgirvin <https://macgirvin.com/profile/mike>
|
|
*
|
|
* Notes: External service needs to make a web request to http(s)://yoursite/extcron
|
|
* Status: Unsupported
|
|
*/
|
|
|
|
require_once "mod/worker.php";
|
|
|
|
function extcron_install() {}
|
|
|
|
function extcron_uninstall() {}
|
|
|
|
function extcron_module() {}
|
|
|
|
function extcron_init(&$a) {
|
|
worker_init($a);
|
|
killme();
|
|
|
|
// Deactivated
|
|
//proc_run('php','include/poller.php');
|
|
//killme();
|
|
}
|