Exemple #1
0
                            } else {
                                //j16
                                $db->setQuery("SELECT `enabled` FROM `#__extensions` WHERE `type` = 'plugin' AND `element`='cache' ");
                            }
                            $published = $db->loadResult();
                            if ($published) {
                                jNews::printM('warning', 'ONLY IF YOU USE YOUR OWN SERVER CRON TASK!');
                                jNews::printM('warning', 'You NEED to reduce the cache time on your website in order for the cron task to work properly!');
                                jNews::printM('warning', 'You need to put the cache time less than :' . $GLOBALS[JNEWS . 'cron_max_freq'] * 0.8 . ' minutes');
                                jNews::printM('warning', 'Or increase your jNews scheduler to :' . $cacheTime * 1.2 . ' minutes');
                            }
                        }
                    } else {
                        jnews::printM('error', _JNEWS_NOCRON_USED);
                    }
                    break;
                default:
                    $showPanel = true;
                    break;
            }
        } else {
            $showPanel = true;
        }
        break;
}
echo $message;
if ($showPanel) {
    frontEnd::introduction($subscriberId, $listId, $lisType);
}
frontHTML::_footer();
echo "\n\r" . '<!--  End : ' . jnews::version() . '   -->' . "\n\r";