Example #1
0
function activitycheck_init()
{
    global $mybb, $db;
    $activitycheck = new Ticker($db, 1, $mybb->settings['rpgsuite_activitycheck_freq']);
    if ($mybb->settings['rpgsuite_activitycheck'] && $activitycheck->needs_run()) {
        run_activitycheck();
        $activitycheck->increment();
    }
}
Example #2
0
function grouppoints_init()
{
    global $mybb, $db;
    $grouppoints = new Ticker($db, 2, $mybb->settings['rpgsuite_grouppoints_freq']);
    if ($mybb->settings['rpgsuite_grouppoints'] && $grouppoints->needs_run()) {
        run_grouppoints();
        $grouppoints->update();
    }
}