I see. Well, you did manage to get this done and that is quite an achievement. I haven't tried it yet, but as the basis has been built I'm sure it just needs polishing.
Just a random thing I noticed in your config.php:
Code:
if($GLOBALS['TL_CONFIG']['e_Up_pcs'] == 'hourly')
{
$GLOBALS['TL_CRON']['hourly'][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
}elseif($GLOBALS['TL_CONFIG']['e_Up_pcs'] == 'daily')
{
$GLOBALS['TL_CRON']['daily'][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
}elseif($GLOBALS['TL_CONFIG']['e_Up_pcs'] == 'weekly')
{
$GLOBALS['TL_CRON']['weekly'][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
}
You could replace that with either of the following alternatives that look nicer and are better practice:
Code:
//perhaps check for a correct value first? Depends on who inputs...
$GLOBALS['TL_CRON'][$GLOBALS['TL_CONFIG']['e_Up_pcs']][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
or
Code:
switch ($GLOBALS['TL_CONFIG']['e_Up_pcs']) {
case 'hourly':
$GLOBALS['TL_CRON']['hourly'][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
break;
case 'daily':
$GLOBALS['TL_CRON']['daily'][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
break;
case 'weekly':
$GLOBALS['TL_CRON']['weekly'][] = array('PollE_UpMailbox', 'pollTheE_UpMailbox');
break;
}
Bookmarks