From 5148db9d6d83434ca3a2c40603d12f398ecce7ef Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 23 Aug 2017 12:32:00 +0000 Subject: [PATCH] All external poller addons are now deactivated --- extcron/extcron.php | 9 ++++++++- poormancron/poormancron.php | 19 ++++++++++++------- procrunner/procrunner.php | 2 ++ unicode_smilies/unicode_smilies.php | 1 + 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/extcron/extcron.php b/extcron/extcron.php index 3eb34cdcb..4405fb41c 100755 --- a/extcron/extcron.php +++ b/extcron/extcron.php @@ -8,8 +8,11 @@ * Author: Mike Macgirvin * * 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() {} @@ -17,6 +20,10 @@ function extcron_uninstall() {} function extcron_module() {} function extcron_init(&$a) { - proc_run('php','include/poller.php'); + worker_init($a); killme(); + + // Deactivated + //proc_run('php','include/poller.php'); + //killme(); } diff --git a/poormancron/poormancron.php b/poormancron/poormancron.php index 7c48e0fa8..493f0f17a 100755 --- a/poormancron/poormancron.php +++ b/poormancron/poormancron.php @@ -4,6 +4,7 @@ * Description: Execute updates on pageviews, without the need of commandline php - only for use in total desperation as page loads will take forever * Version: 1.2 * Author: Fabio Comuni + * Status: Unsupported */ function poormancron_install() { @@ -36,17 +37,21 @@ function poormancron_uninstall() { function poormancron_hook(&$a,&$b) { - $now = time(); - $lastupdate = get_config('poormancron', 'lastupdate'); + return; // deactivated - // 300 secs, 5 mins - if (!$lastupdate || ($now-$lastupdate)>300) { - set_config('poormancron','lastupdate', $now); - proc_run('php',"include/poller.php"); - } + //$now = time(); + //$lastupdate = get_config('poormancron', 'lastupdate'); + + // 300 secs, 5 mins + //if (!$lastupdate || ($now-$lastupdate)>300) { + // set_config('poormancron','lastupdate', $now); + // proc_run('php',"include/poller.php"); + //} } function poormancron_procrun(&$a, &$arr) { + return; // deactivated + if (get_config('poormancron','usecli')==1) return; $argv = $arr['args']; $arr['run_cmd'] = false; diff --git a/procrunner/procrunner.php b/procrunner/procrunner.php index 4c6f64b68..12f8f41e1 100755 --- a/procrunner/procrunner.php +++ b/procrunner/procrunner.php @@ -5,6 +5,7 @@ * Version: 1.0 * Author: Fabio Comuni * Author: Mike Macgirvin + * Status: Unsupported */ function procrunner_install() { @@ -40,6 +41,7 @@ function procrunner_uninstall() { function procrunner_procrun(&$a, &$arr) { + return; // deactivated $argv = $arr['args']; $arr['run_cmd'] = false; diff --git a/unicode_smilies/unicode_smilies.php b/unicode_smilies/unicode_smilies.php index c926f88af..0c941a0cb 100644 --- a/unicode_smilies/unicode_smilies.php +++ b/unicode_smilies/unicode_smilies.php @@ -25,6 +25,7 @@ function unicode_smilies_smilies(&$a,&$b) { Smilies::add($b, ':-D', '😁'); Smilies::add($b, ':D', '😁'); Smilies::add($b, ';-)', '😉'); + Smilies::add($b, ';)', '😉'); Smilies::add($b, ':-P', '😛'); Smilies::add($b, ':-p', '😛'); Smilies::add($b, ':-O', '😮');