Revize 1855
Přidáno uživatelem Michal Kliment před téměř 12 roky(ů)
freenetis/branches/1.1/application/controllers/scheduler.php | ||
---|---|---|
{
|
||
// script needs to be run from its server machine
|
||
|
||
/*if (server::remote_addr() != server::server_addr())
|
||
if (server::remote_addr() != server::server_addr())
|
||
{
|
||
echo 'access denied';
|
||
die();
|
||
}*/
|
||
}
|
||
|
||
// daily actions
|
||
|
||
/*if ((date('H:i') == '00:00'))
|
||
if ((date('H:i') == '00:00'))
|
||
{
|
||
|
||
try
|
||
... | ... | |
|
||
// SMS should be down there because they can take a while
|
||
|
||
/*try
|
||
try
|
||
{
|
||
if (Sms::enabled())
|
||
{
|
||
... | ... | |
}
|
||
|
||
// update local subnets
|
||
self::update_local_subnets();*/
|
||
self::update_local_subnets();
|
||
|
||
// send notification from monitoring
|
||
self::monitoring_notification();
|
||
|
||
// update ulogd
|
||
/*try
|
||
try
|
||
{
|
||
if (Settings::get('ulogd_enabled'))
|
||
{
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
self::log_error('update_ulogd', $e);
|
||
}*/
|
||
}
|
||
|
||
// set state of module (last activation time)
|
||
Settings::set('cron_state', date('Y-m-d H:i:s'));
|
Také k dispozici: Unified diff
Upravy:
- odkomentovani zakomentovaneho kodu :-)