Exemplo n.º 1
0
if (isset($_GET['usfmnow'])) {
    Export_Logic::scheduleUsfm($bible);
    $view->view->success = Locale_Translate::_("The Bible is being exported to USFM format.");
}
if (isset($_GET['usfmsecuretoggle'])) {
    $database_config_bible->setSecureUsfmExport($bible, !$database_config_bible->getSecureUsfmExport($bible));
    $view->view->success = Locale_Translate::_("The setting for securing the USFM export was updated.");
}
$view->view->usfmsecure = $database_config_bible->getSecureUsfmExport($bible);
if (isset($_GET['texttoggle'])) {
    $database_config_bible->setExportTextDuringNight($bible, !$database_config_bible->getExportTextDuringNight($bible));
    $view->view->success = Locale_Translate::_("The setting for nightly export to basic USFM format and text was updated.");
}
$view->view->text = $database_config_bible->getExportTextDuringNight($bible);
if (isset($_GET['textnow'])) {
    Export_Logic::scheduleTextAndBasicUsfm($bible);
    $view->view->success = Locale_Translate::_("The Bible is being exported to basic USFM format and text.");
}
if (isset($_GET['odttoggle'])) {
    $database_config_bible->setExportOdtDuringNight($bible, !$database_config_bible->getExportOdtDuringNight($bible));
    $view->view->success = Locale_Translate::_("The setting for nightly export to OpenDocument was updated.");
}
$view->view->odt = $database_config_bible->getExportOdtDuringNight($bible);
if (isset($_GET['odtnow'])) {
    Export_Logic::scheduleOpenDocument($bible);
    $view->view->success = Locale_Translate::_("The Bible is being exported to OpenDocument format.");
}
if (isset($_GET['dropcapstoggle'])) {
    $database_config_bible->setExportChapterDropCapsFrames($bible, Filter_Bool::not($database_config_bible->getExportChapterDropCapsFrames($bible)));
}
if (isset($_GET['pagewidth'])) {