mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-02-23 16:21:07 +00:00
25 lines
701 B
PHP
25 lines
701 B
PHP
<?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');
|
|
do_action('aiowps_perform_db_cleanup_tasks');
|
|
}
|
|
|
|
function aiowps_daily_cron_event_handler()
|
|
{
|
|
//Do stuff that needs checking daily
|
|
}
|
|
|
|
}
|
|
|