2012-01-12 04:56:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Name: external cron
|
|
|
|
* Description: Use external server or service to run poller regularly
|
|
|
|
* Version: 1.0
|
2013-01-06 05:50:11 +00:00
|
|
|
* Author: Mike Macgirvin <https://macgirvin.com/profile/mike>
|
2012-01-12 04:56:22 +00:00
|
|
|
*
|
|
|
|
* Notes: External service needs to make a web request to http(s)://yoursite/extcron
|
2017-08-23 12:32:00 +00:00
|
|
|
* Status: Unsupported
|
2012-01-12 04:56:22 +00:00
|
|
|
*/
|
|
|
|
|
2017-08-23 12:32:00 +00:00
|
|
|
require_once "mod/worker.php";
|
|
|
|
|
2012-01-12 04:56:22 +00:00
|
|
|
function extcron_install() {}
|
|
|
|
|
2012-01-12 05:03:14 +00:00
|
|
|
function extcron_uninstall() {}
|
2012-01-12 04:56:22 +00:00
|
|
|
|
|
|
|
function extcron_module() {}
|
|
|
|
|
|
|
|
function extcron_init(&$a) {
|
2017-08-23 12:32:00 +00:00
|
|
|
worker_init($a);
|
2012-01-12 05:03:14 +00:00
|
|
|
killme();
|
2017-08-23 12:32:00 +00:00
|
|
|
|
|
|
|
// Deactivated
|
|
|
|
//proc_run('php','include/poller.php');
|
|
|
|
//killme();
|
2012-01-12 04:56:22 +00:00
|
|
|
}
|