Example #1
0
* =========================
* (Red, if you're still out there, I hope 
* you irlol'd hard when you see this. GCv3 is
* dedicated to you.)
*
* Ghettocron is the name of crontab emulation
* from (I *think!*) the original OPG sourcecode 
* (I could be mistaken).
*
* Entries in the cron_tab table will be run if
* it is their due time. Obviously, ghettocron is
* less accurate then proper cron, but I am designing
* for the largest possible market, and everyone may
* not have/know how to use cron.
*/
foreach (Cronjob::listPendingJobs($db) as $job) {
    $job->run();
}
// end cronjob loop
// Display page.
if (is_a($jump_page, 'JumpPage') == false) {
    header("HTTP/1.1 404 Not Found");
    $renderer->display('http/404.tpl');
    die;
} else {
    $SELF = array('page' => $jump_page, 'php_self' => $_SERVER['PHP_SELF'], 'slug' => $jump_page->getPageSlug());
    $renderer->assign('self', $SELF);
    $renderer->assign('fat', 'fade-808080');
    $renderer->assign('page_title', $jump_page->getPageTitle());
    $renderer->assign('page_html_title', $jump_page->getPageHtmlTitle());
    $message_count = '';