friendica-addons/extcron/extcron.php

23 lines
453 B
PHP
Raw Normal View History

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
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*
* Notes: External service needs to make a web request to http(s)://yoursite/extcron
*/
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) {
proc_run('php','include/poller.php');
2012-01-12 05:03:14 +00:00
killme();
2012-01-12 04:56:22 +00:00
}