Пример #1
0
        Changes_Logic::start();
    }
}
// Comb through the git log and add the changes to the history.
if (!$client) {
    if ($hour == 0 && $minute == 30) {
        $directory = dirname(dirname(__FILE__)) . "/changes";
        Tasks_Logic::queue(Tasks_Logic::PHP, array("{$directory}/git.php"));
        unset($directory);
    }
}
// Run the checks on the Bibles.
// This takes 15 minutes on a production machine with two Bibles.
if (!$client) {
    if ($hour == 0 && $minute == 30) {
        Checks_Logic::startAll();
    }
}
// Database maintenance and trimming.
// It takes a few minutes on a production machine.
if ($hour == 0 && $minute == 50) {
    Tasks_Logic::queue(Tasks_Logic::PHP, array(__DIR__ . "/database.php"));
}
// Sprint burndown.
// It runs every hour.
// The script itself determines what to do at which hour of the day or day of the week or day of the month.
if (!$client) {
    if ($minute == 5) {
        Sprint_Logic::burndown("", false);
    }
}
Пример #2
0
@($bible = $_GET['bible']);
if (isset($bible)) {
    if ($bible == "") {
        $dialog_list = new Dialog_List2(Locale_Translate::_("Select which Bible to manage"));
        $bibles = Access_Bible::bibles();
        foreach ($bibles as $bible) {
            $dialog_list->add_row($bible, "&bible={$bible}");
        }
        $dialog_list->run();
    } else {
        $database_config_user->setBible($bible);
    }
}
$bible = Access_Bible::clamp($database_config_user->getBible());
if (isset($_GET['run'])) {
    Checks_Logic::start($bible);
    $view->view->success = Locale_Translate::_("Will run the checks. See the Journal for progress.");
}
if (isset($_GET['doublespacesusfm'])) {
    $database_config_bible->setCheckDoubleSpacesUsfm($bible, !$database_config_bible->getCheckDoubleSpacesUsfm($bible));
}
$view->view->double_spaces_usfm = $database_config_bible->getCheckDoubleSpacesUsfm($bible);
if (isset($_GET['fullstopheadings'])) {
    $database_config_bible->setCheckFullStopInHeadings($bible, !$database_config_bible->getCheckFullStopInHeadings($bible));
}
$view->view->full_stop_headings = $database_config_bible->getCheckFullStopInHeadings($bible);
if (isset($_GET['spacebeforepunctuation'])) {
    $database_config_bible->setCheckSpaceBeforePunctuation($bible, !$database_config_bible->getCheckSpaceBeforePunctuation($bible));
}
$view->view->space_before_punctuation = $database_config_bible->getCheckSpaceBeforePunctuation($bible);
if (isset($_GET['sentencestructure'])) {