]> git.mxchange.org Git - friendica-addons.git/commitdiff
add extcron
authorfriendica <info@friendica.com>
Thu, 12 Jan 2012 04:56:22 +0000 (20:56 -0800)
committerfriendica <info@friendica.com>
Thu, 12 Jan 2012 04:56:22 +0000 (20:56 -0800)
extcron.tgz [new file with mode: 0644]
extcron/extcron.php [new file with mode: 0644]

diff --git a/extcron.tgz b/extcron.tgz
new file mode 100644 (file)
index 0000000..0455ebd
Binary files /dev/null and b/extcron.tgz differ
diff --git a/extcron/extcron.php b/extcron/extcron.php
new file mode 100644 (file)
index 0000000..4a0f1eb
--- /dev/null
@@ -0,0 +1,21 @@
+<?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() {}
+
+function nsfw_uninstall() {}
+
+function extcron_module() {}
+
+function extcron_init(&$a) {
+       proc_run('php','include/poller.php');
+}