File inc/log.inc.php changed (mode: 100644) (index 387f329..1ce3f97) |
... |
... |
function rg_log_cron() |
192 |
192 |
if ($last_ts + 4 * 3600 > time()) |
if ($last_ts + 4 * 3600 > time()) |
193 |
193 |
return 0; |
return 0; |
194 |
194 |
|
|
195 |
|
mail($rg_admin_email, $wcount . " + " . $ncount |
|
196 |
|
. " errors are waiting...", |
|
197 |
|
"Please forward the content of /var/log/rocketgit*/err-*" |
|
198 |
|
. " to RocketGit developers at rg-bugs@embedromix.ro.\n\n" |
|
199 |
|
. "Thank you!\n\n", |
|
200 |
|
"", "-f $rg_admin_email"); |
|
|
195 |
|
mail($rg_admin_email, |
|
196 |
|
$wcount . ' + ' . $ncount . ' errors are waiting...', |
|
197 |
|
'Please forward the content of /var/log/rocketgit*/err-*' |
|
198 |
|
. ' to RocketGit developers at rg-bugs@embedromix.ro.\n\n' |
|
199 |
|
. 'Thank you!\n\n', |
|
200 |
|
'Content-Type: text/plain;charset=UTF-8', |
|
201 |
|
"-f $rg_admin_email"); |
201 |
202 |
|
|
202 |
203 |
file_put_contents($rg_state_dir . "/log_cron_last", time()); |
file_put_contents($rg_state_dir . "/log_cron_last", time()); |
203 |
204 |
} |
} |