#!/usr/bin/env php /dev/null 2>&1 * Using curl: * /usr/bin/curl --silent --compressed http://example.com/cron.php?token=TOKEN > /dev/null 2>&1 * Using lynx: * /usr/bin/lynx -source http://example.com/cron.php?token=TOKEN > /dev/null 2>&1 * Using PHP: * /usr/bin/php -q /var/www/example.com/cron.php token=TOKEN * /usr/bin/php -q /var/www/example.com/cron.php TOKEN * Using as Shell script: * /var/www/example.com/cron.php token=TOKEN * /var/www/example.com/cron.php TOKEN */ $_E107['cli'] = true; $_E107['debug'] = false; $_E107['no_online'] = true; $_E107['no_forceuserupdate'] = true; $_E107['no_menus'] = true; $_E107['allow_guest'] = true; // allow crons to run while in members-only mode. $_E107['no_maintenance'] = true; require_once(realpath(__DIR__ . "/class2.php")); require_once(e_HANDLER . "cron_class.php"); $cron = new cronScheduler(); $cron->run();