forked from friendica/friendica-addons
jappixmini: warn if cron job does not get executed
This commit is contained in:
parent
af0366a9e2
commit
a53167da1a
|
@ -106,6 +106,10 @@ function jappixmini_plugin_admin(&$a, &$o) {
|
||||||
$o .= '<p>Jappix is installed.</p>';
|
$o .= '<p>Jappix is installed.</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// warn if cron job has not yet been executed
|
||||||
|
$cron_run = get_config("jappixmini", "last_cron_execution");
|
||||||
|
if (!$cron_run) $o .= "<p><strong>Warning: The cron job has not yet been executed. If this message is still there after some time (usually 10 minutes), this means that autosubscribe and autoaccept will not work.</strong></p>";
|
||||||
|
|
||||||
// info text field
|
// info text field
|
||||||
$o .= '<label for="jappixmini-infotext">Info text to help users with configuration (important if you want to provide your own BOSH host!):</label><br />';
|
$o .= '<label for="jappixmini-infotext">Info text to help users with configuration (important if you want to provide your own BOSH host!):</label><br />';
|
||||||
$info_text = get_config("jappixmini", "infotext");
|
$info_text = get_config("jappixmini", "infotext");
|
||||||
|
@ -472,6 +476,8 @@ function jappixmini_login(&$a, &$o) {
|
||||||
function jappixmini_cron(&$a, $d) {
|
function jappixmini_cron(&$a, $d) {
|
||||||
// For autosubscribe/autoapprove, we need to maintain a list of jabber addresses of our contacts.
|
// For autosubscribe/autoapprove, we need to maintain a list of jabber addresses of our contacts.
|
||||||
|
|
||||||
|
set_config("jappixmini", "last_cron_execution", $d);
|
||||||
|
|
||||||
if (!file_exists("addon/jappixmini/jappix")) return;
|
if (!file_exists("addon/jappixmini/jappix")) return;
|
||||||
|
|
||||||
// go through list of users with jabber enabled
|
// go through list of users with jabber enabled
|
||||||
|
|
Loading…
Reference in a new issue