mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 22:53:16 +00:00
Merge pull request #422 from annando/addon-poller-deactivated
All external poller addons are now deactivated
This commit is contained in:
commit
63aa4bb7a7
4 changed files with 23 additions and 8 deletions
|
@ -8,8 +8,11 @@
|
||||||
* Author: Mike Macgirvin <https://macgirvin.com/profile/mike>
|
* Author: Mike Macgirvin <https://macgirvin.com/profile/mike>
|
||||||
*
|
*
|
||||||
* Notes: External service needs to make a web request to http(s)://yoursite/extcron
|
* 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_install() {}
|
||||||
|
|
||||||
function extcron_uninstall() {}
|
function extcron_uninstall() {}
|
||||||
|
@ -17,6 +20,10 @@ function extcron_uninstall() {}
|
||||||
function extcron_module() {}
|
function extcron_module() {}
|
||||||
|
|
||||||
function extcron_init(&$a) {
|
function extcron_init(&$a) {
|
||||||
proc_run('php','include/poller.php');
|
worker_init($a);
|
||||||
killme();
|
killme();
|
||||||
|
|
||||||
|
// Deactivated
|
||||||
|
//proc_run('php','include/poller.php');
|
||||||
|
//killme();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
* 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
|
* Version: 1.2
|
||||||
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrix>
|
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrix>
|
||||||
|
* Status: Unsupported
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function poormancron_install() {
|
function poormancron_install() {
|
||||||
|
@ -36,17 +37,21 @@ function poormancron_uninstall() {
|
||||||
|
|
||||||
|
|
||||||
function poormancron_hook(&$a,&$b) {
|
function poormancron_hook(&$a,&$b) {
|
||||||
$now = time();
|
return; // deactivated
|
||||||
$lastupdate = get_config('poormancron', 'lastupdate');
|
|
||||||
|
|
||||||
// 300 secs, 5 mins
|
//$now = time();
|
||||||
if (!$lastupdate || ($now-$lastupdate)>300) {
|
//$lastupdate = get_config('poormancron', 'lastupdate');
|
||||||
set_config('poormancron','lastupdate', $now);
|
|
||||||
proc_run('php',"include/poller.php");
|
// 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) {
|
function poormancron_procrun(&$a, &$arr) {
|
||||||
|
return; // deactivated
|
||||||
|
|
||||||
if (get_config('poormancron','usecli')==1) return;
|
if (get_config('poormancron','usecli')==1) return;
|
||||||
$argv = $arr['args'];
|
$argv = $arr['args'];
|
||||||
$arr['run_cmd'] = false;
|
$arr['run_cmd'] = false;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrix>
|
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrix>
|
||||||
* Author: Mike Macgirvin
|
* Author: Mike Macgirvin
|
||||||
|
* Status: Unsupported
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function procrunner_install() {
|
function procrunner_install() {
|
||||||
|
@ -40,6 +41,7 @@ function procrunner_uninstall() {
|
||||||
|
|
||||||
|
|
||||||
function procrunner_procrun(&$a, &$arr) {
|
function procrunner_procrun(&$a, &$arr) {
|
||||||
|
return; // deactivated
|
||||||
|
|
||||||
$argv = $arr['args'];
|
$argv = $arr['args'];
|
||||||
$arr['run_cmd'] = false;
|
$arr['run_cmd'] = false;
|
||||||
|
|
|
@ -25,6 +25,7 @@ function unicode_smilies_smilies(&$a,&$b) {
|
||||||
Smilies::add($b, ':-D', '😁');
|
Smilies::add($b, ':-D', '😁');
|
||||||
Smilies::add($b, ':D', '😁');
|
Smilies::add($b, ':D', '😁');
|
||||||
Smilies::add($b, ';-)', '😉');
|
Smilies::add($b, ';-)', '😉');
|
||||||
|
Smilies::add($b, ';)', '😉');
|
||||||
Smilies::add($b, ':-P', '😛');
|
Smilies::add($b, ':-P', '😛');
|
||||||
Smilies::add($b, ':-p', '😛');
|
Smilies::add($b, ':-p', '😛');
|
||||||
Smilies::add($b, ':-O', '😮');
|
Smilies::add($b, ':-O', '😮');
|
||||||
|
|
Loading…
Reference in a new issue