2016-11-28 21:52:15 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class AIOWPSecurity_Cronjob_Handler {
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
add_action ('aiowps_hourly_cron_event', array(&$this, 'aiowps_hourly_cron_event_handler'));
|
|
|
|
add_action ('aiowps_daily_cron_event', array(&$this, 'aiowps_daily_cron_event_handler'));
|
|
|
|
}
|
|
|
|
|
|
|
|
function aiowps_hourly_cron_event_handler()
|
|
|
|
{
|
|
|
|
//Do stuff that needs checking every hours
|
|
|
|
do_action('aiowps_perform_scheduled_backup_tasks');
|
|
|
|
do_action('aiowps_perform_fcd_scan_tasks');
|
2018-01-26 15:50:15 +01:00
|
|
|
do_action('aiowps_perform_db_cleanup_tasks');
|
2016-11-28 21:52:15 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
function aiowps_daily_cron_event_handler()
|
|
|
|
{
|
|
|
|
//Do stuff that needs checking daily
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|