Beispiel #1
0
function page_access_level($level)
{
    $session_logic = Session_Logic::getInstance();
    if ($level > $session_logic->currentLevel()) {
        $header = new Assets_Header("Privileges");
        $header->setLogin();
        $header->run();
        $view = new Assets_View(__FILE__);
        $view->render("privileges.php");
        Assets_Page::footer();
        die;
    }
}
Beispiel #2
0
        echo "{$key}\n";
    }
    die;
}
@($id = $_GET['id']);
if (isset($id)) {
    // Get the and passage for this identifier.
    $passage = Filter_Books::integer2passage($id);
    $book = $passage[0];
    $chapter = $passage[1];
    $verse = $passage[2];
    // Get the plain text.
    $text = $database_search->getBibleVerseText($bible, $book, $chapter, $verse);
    // Format it.
    $link = Filter_Books::linkForOpeningEditorAt($book, $chapter, $verse);
    $output = "<div>{$link} {$text}</div>";
    // Output to browser.
    echo $output;
    // Done.
    die;
}
$header = new Assets_Header(Locale_Translate::_("Search"));
$header->run();
$view = new Assets_View(__FILE__);
$view->view->bible = $bible;
$script = <<<EOD
var searchBible = "{$bible}";
EOD;
$view->view->script = $script;
$view->render("originals.php");
Assets_Page::footer();
Beispiel #3
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Navigation"));
$view = new Assets_View(__FILE__);
$view->render("navigation.php");
Assets_Page::footer();
Beispiel #4
0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::TRANSLATOR_LEVEL);
$header = new Assets_Header(Locale_Translate::_("Order"));
$header->jQueryUIOn("sortable");
$header->run();
$view = new Assets_View(__FILE__);
$database_config_bible = Database_Config_Bible::getInstance();
$database_books = Database_Books::getInstance();
$database_bibles = Database_Bibles::getInstance();
$bible = Access_Bible::clamp($_GET['bible']);
$view->view->bible = Filter_Html::sanitize($bible);
@($reset = $_GET["reset"]);
if (isset($reset)) {
    $database_config_bible->setBookOrder($bible, "");
}
@($order = $_POST['order']);
if (isset($order)) {
    $order = explode(",", $order);
    $ids = array();
    foreach ($order as $english) {
        $id = $database_books->getIdFromEnglish($english);
Beispiel #5
0
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Changes"));
$view = new Assets_View(__FILE__);
$database_modifications = Database_Modifications::getInstance();
$config_general = Database_Config_General::getInstance();
$database_logs = Database_Logs::getInstance();
@($clear = $_GET['clear']);
if (isset($clear)) {
    // Just in case there are many change notifications to clear, be sure the script does not time out or abort.
    ignore_user_abort(true);
    set_time_limit(0);
    $database_modifications->clearNotificationsUser($clear);
}
$users = Access_User::assignees();
$pendingUsers = array();
$pendingCount = array();
foreach ($users as $user) {
    $ids = $database_modifications->getNotificationIdentifiers($user);
Beispiel #6
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Import"));
$file = $_GET['file'];
$folder = Filter_Archive::uncompress($file, true);
$view = new Assets_View(__FILE__);
$view->view->folder = $folder;
$view->render("import3.php");
Assets_Page::footer();
Beispiel #7
0
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::ADMIN_LEVEL);
Assets_Page::header(Locale_Translate::_("Mail"));
$view = new Assets_View(__FILE__);
// Email form submission.
if (isset($_POST['email'])) {
    $form_is_valid = true;
    $sitename = $_POST['sitename'];
    $sitemail = $_POST['sitemail'];
    if (strlen($sitemail) > 0) {
        $validator = new Zend_Validate_EmailAddress();
        if (!$validator->isValid($sitemail)) {
            $form_is_valid = false;
            $view->view->site_name_error = Locale_Translate::_("The email address does not appear to be valid");
        }
    }
    if ($form_is_valid) {
        $config_general = Database_Config_General::getInstance();
        $config_general->setSiteMailName($sitename);
Beispiel #8
0
 public static function footer()
 {
     $view = new Assets_View(__FILE__);
     $view->render('footer.php');
     $view->render('xhtml_finish.php');
 }
Beispiel #9
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
$database_notes = Database_Notes::getInstance();
$header = new Assets_Header(Locale_Translate::_("Notes status"));
$header->run();
$view = new Assets_View(__FILE__);
$statuses = $database_notes->getPossibleStatuses();
$view->view->statuses = $statuses;
$view->render("status-n.php");
Assets_Page::footer();
Beispiel #10
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Tips and Tricks"));
$view = new Assets_View(__FILE__);
$view->render("tipstricks.php");
Assets_Page::footer();
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::ADMIN_LEVEL);
$view = new Assets_View(__FILE__);
$object = $_GET['object'];
$view->view->object = $object;
$database_config_bible = Database_Config_Bible::getInstance();
$url = $database_config_bible->getRemoteRepositoryUrl($object);
$view->view->url = $url;
$ready = false;
$database_shell = Database_Shell::getInstance();
$output = "";
$contents = array();
switch ($database_shell->logic("collaboration_take_repo", 0, $output)) {
    case 1:
        $workingdirectory = dirname(__FILE__);
        $object = escapeshellarg($object);
        shell_exec("cd {$workingdirectory}; php collaboration_take_repo-cli.php {$object} > {$output} 2>&1 &");
        break;
Beispiel #12
0
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::CONSULTANT_LEVEL);
$database_history = Database_History::getInstance();
$session_logic = Session_Logic::getInstance();
$ipc_focus = Ipc_Focus::getInstance();
$username = $session_logic->currentUser();
$focused_book = $ipc_focus->getBook();
$focused_chapter = $ipc_focus->getChapter();
$focused_verse = $ipc_focus->getVerse();
$header = new Assets_Header(Locale_Translate::_("Change History"));
$header->setNavigator();
$header->setStylesheet();
$header->run();
$view = new Assets_View(__FILE__);
// Bits for the display state.
$state = array();
// Where to start displaying items.
// It displays a limited number of items for performance reasons.
@($start = $_GET['start']);
if (!isset($start)) {
    $start = 0;
}
if (!is_numeric($start)) {
    $start = 0;
}
$state['start'] = $start;
// Filter on Bible / book / chapter / verse.
@($passage = $_GET['passage']);
if (!isset($passage)) {
Beispiel #13
0
}
// Note unassign handler.
@($unassign = $_POST['unassign']);
if (isset($unassign)) {
    $notes_logic->unassignUser(Filter_Numeric::integer_in_string($unassign), $session_logic->currentUser());
    die;
}
// Note mark for deletion handler.
@($delete = $_POST['delete']);
if (isset($delete)) {
    $identifier = Filter_Numeric::integer_in_string($delete);
    $notes_logic->markForDeletion($identifier);
    die;
}
// From here on the script will produce output.
$view = new Assets_View(__FILE__);
$session_logic = Session_Logic::getInstance();
$username = $session_logic->currentUser();
$level = $session_logic->currentLevel();
$view->view->level = $level;
// The identifier of the change notification.
@($id = $_GET["get"]);
$view->view->id = $id;
// Get old text, modification, new text.
$old_text = $database_modifications->getNotificationOldText($id);
$view->view->old_text = $old_text;
$modification = $database_modifications->getNotificationModification($id);
$view->view->modification = $modification;
$new_text = $database_modifications->getNotificationNewText($id);
$view->view->new_text = $new_text;
// Bibles and passage.
Beispiel #14
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Checks"));
$view = new Assets_View(__FILE__);
$view->render("checks.php");
Assets_Page::footer();
Beispiel #15
0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::CONSULTANT_LEVEL);
$database_notes = Database_Notes::getInstance();
$notes_logic = Notes_Logic::getInstance();
$id = $_GET['id'];
if (isset($_POST['submit'])) {
    $summary = $_POST['entry'];
    $notes_logic->setSummary($id, $summary);
    Filter_Url::redirect("note.php?id={$id}");
    die;
}
$header = new Assets_Header(Locale_Translate::_("Note summary"));
$header->setBodyOnload('document.form.entry.focus();');
$header->run();
$view = new Assets_View(__FILE__);
$view->view->id = $id;
$summary = $database_notes->getSummary($id);
$summary = Filter_Html::sanitize($summary);
$view->view->summary = $summary;
$view->render("summary.php");
Assets_Page::footer();
Beispiel #16
0
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Verse mappings"));
$view = new Assets_View(__FILE__);
$database_mappings = Database_Mappings::getInstance();
$session_logic = Session_Logic::getInstance();
$username = $session_logic->currentUser();
$userlevel = $session_logic->currentLevel();
$name = $_GET['name'];
$view->view->name = Filter_Html::sanitize($name);
//$write = $database_styles->hasWriteAccess ($username, $name);
$write = true;
if ($userlevel >= Filter_Roles::ADMIN_LEVEL) {
    $write = true;
}
if (isset($_POST['submit'])) {
    $data = $_POST['data'];
    if ($write) {
        $database_mappings->import($name, $data);
Beispiel #17
0
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::ADMIN_LEVEL);
$database_resources = Database_Resources::getInstance();
$database_offlineresources = Database_OfflineResources::getInstance();
@($add = $_POST['entry']);
if (isset($add)) {
    $database_resources->save($add, '<?php $output = "dummy"; ?>');
}
@($delete = $_GET['delete']);
if (isset($delete)) {
    // User cannot delete Resources in an open demo.
    include "config/open.php";
    if (!$open_installation) {
        $database_resources->delete($delete);
        $database_offlineresources->delete($delete);
    }
}
$database_resources = Database_Resources::getInstance();
$header = new Assets_Header(Locale_Translate::_("Resources"));
$header->jQueryUIOn("dialog");
$header->run();
$view = new Assets_View(__FILE__);
$resources = $database_resources->getNames();
$view->view->resources = $resources;
$view->render("admin.php");
Assets_Page::footer();
Beispiel #18
0
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Sentence Structure"));
$view = new Assets_View(__FILE__);
$database_config_user = Database_Config_User::getInstance();
$database_config_bible = Database_Config_Bible::getInstance();
$bible = Access_Bible::clamp($database_config_user->getBible());
if (isset($_POST['capitals'])) {
    $database_config_bible->setSentenceStructureCapitals($bible, $_POST['capitals']);
    $view->view->success = Locale_Translate::_("The capitals were stored");
}
if (isset($_POST['smallletters'])) {
    $database_config_bible->setSentenceStructureSmallLetters($bible, $_POST['smallletters']);
    $view->view->success = Locale_Translate::_("The small letters were stored");
}
if (isset($_POST['endpunctuationmarks'])) {
    $database_config_bible->setSentenceStructureEndPunctuation($bible, $_POST['endpunctuationmarks']);
    $view->view->success = Locale_Translate::_("The punctuation marks at the ends of sentences were stored");
}
Beispiel #19
0
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
$view = new Assets_View(__FILE__);
$database_resources = Database_Resources::getInstance();
$database_offlineresources = Database_OfflineResources::getInstance();
$database_versifications = Database_Versifications::getInstance();
@($name = $_GET['name']);
$view->view->name = $name;
if (isset($_GET['download'])) {
    $versification = "English";
    $books = $database_versifications->getBooks($versification);
    foreach ($books as $book) {
        // Schedule the task with low priority so it does not get in the way of regular tasks.
        Tasks_Logic::queue(Tasks_Logic::PHP, array(__DIR__ . "/downloadcli.php", $name, $book));
    }
    Filter_Url::redirect("../journal/index.php");
    die;
}
Beispiel #20
0
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Signup"));
$view = new Assets_View(__FILE__);
/**
* Set of security questions.
*/
$questions[] = Locale_Translate::_("To which city was Paul travelling when a light from heaven shone round about him?");
$answers[] = Locale_Translate::_("Damascus");
$passages[] = Locale_Translate::_('And while he travelled, he came near Damascus; and suddenly a light from heaven shone round about him.');
$questions[] = Locale_Translate::_("What is the name of the brother of Aaron the high priest?");
$answers[] = Locale_Translate::_("Moses");
$passages[] = Locale_Translate::_('And the anger of Jehova was kindled against Moses, and he said: Is not Aaron the Levite your brother?');
$questions[] = Locale_Translate::_("What is the name of the city where Jesus was born?");
$answers[] = Locale_Translate::_("Bethlehem");
$passages[] = Locale_Translate::_('When Jesus was born in Bethlehem of Judaea in the days of Herod the king, behold, wise men from the east came to Jerusalem.');
$questions[] = Locale_Translate::_("What is the name of the island where John was sent to?");
$answers[] = Locale_Translate::_("Patmos");
$passages[] = Locale_Translate::_('I, John, your brother and companion in the persecution, and in the kingdom and endurance of Jesus Christ, was in the island which is called Patmos, because of the word of God, and because of the testimony of Jesus Christ.');
Beispiel #21
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::CONSULTANT_LEVEL);
$database_notes = Database_Notes::getInstance();
$notes_logic = Notes_Logic::getInstance();
$database_users = Database_Users::getInstance();
$header = new Assets_Header(Locale_Translate::_("Severity"));
$header->run();
$view = new Assets_View(__FILE__);
$severities = $database_notes->getPossibleSeverities();
$view->view->severities = $severities;
$view->render("severity-n.php");
Assets_Page::footer();
Beispiel #22
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("About"));
$view = new Assets_View(__FILE__);
$view->render("about.php");
Assets_Page::footer();
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Typesetting in InDesign"));
$view = new Assets_View(__FILE__);
$view->render("typesettingindesign.php");
Assets_Page::footer();
Beispiel #24
0
        echo "{$key}\n";
    }
    die;
}
@($id = $_GET['id']);
if (isset($id)) {
    // Get the and passage for this identifier.
    $passage = Filter_Books::integer2passage($id);
    $book = $passage[0];
    $chapter = $passage[1];
    $verse = $passage[2];
    // Get the plain text.
    $text = $database_search->getBibleVerseText($bible, $book, $chapter, $verse);
    // Format it.
    $link = Filter_Books::linkForOpeningEditorAt($book, $chapter, $verse);
    $output = "<div>{$link} {$text}</div>";
    // Output to browser.
    echo $output;
    // Done.
    die;
}
$header = new Assets_Header(Locale_Translate::_("Search"));
$header->run();
$view = new Assets_View(__FILE__);
$view->view->bible = $bible;
$script = <<<EOD
var searchBible = "{$bible}";
EOD;
$view->view->script = $script;
$view->render("strongs.php");
Assets_Page::footer();
Beispiel #25
0
    foreach ($bibles as $bible) {
        if ($font == $database_config_bible->getTextFont($bible)) {
            $font_in_use = true;
        }
    }
    if (!$font_in_use) {
        unlink($font);
    } else {
        Assets_Page::error(Locale_Translate::_("The font could not be deleted because it is in use."));
    }
}
// Upload a font.
if (isset($_POST['upload'])) {
    // Upload may take time in case the file is large or the network is slow.
    ignore_user_abort(true);
    set_time_limit(0);
    $filename = $_FILES['data']['name'];
    $tmpfile = $_FILES['data']['tmp_name'];
    if (move_uploaded_file($tmpfile, $filename)) {
        Assets_Page::success(Locale_Translate::_("The font has been uploaded."));
    } else {
        Assets_Page::error(Filter_Upload::error2text($_FILES['data']['error']));
    }
}
$header = new Assets_Header(Locale_Translate::_("Fonts"));
$header->run();
$view = new Assets_View(__FILE__);
$view->view->upload_max_filesize = ini_get("upload_max_filesize");
$view->view->fonts = Fonts_Logic::getFonts();
$view->render("index.php");
Assets_Page::footer();
Beispiel #26
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Scrum-based translation"));
$view = new Assets_View(__FILE__);
$view->render("discussions.php");
Assets_Page::footer();
Beispiel #27
0
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Methodology"));
$view = new Assets_View(__FILE__);
$view->render('methodology.php');
Assets_Page::footer();
Beispiel #28
0
    $database_config_user->setConsultationNotesTextSelector($text_selector);
    @($search_text = $_POST['text']);
    if (isset($search_text)) {
        $database_config_user->setConsultationNotesSearchText($search_text);
        Assets_Page::success(Locale_Translate::_("Search text saved"));
    }
}
@($passage_inclusion_selector = $_GET['passageinclusionyselector']);
if (isset($passage_inclusion_selector)) {
    $database_config_user->setConsultationNotesPassageInclusionSelector($passage_inclusion_selector);
}
@($text_inclusion_selector = $_GET['textinclusionyselector']);
if (isset($text_inclusion_selector)) {
    $database_config_user->setConsultationNotesTextInclusionSelector($text_inclusion_selector);
}
$view = new Assets_View(__FILE__);
$passage_selector = $database_config_user->getConsultationNotesPassageSelector();
$view->view->passageselector = $passage_selector;
$edit_selector = $database_config_user->getConsultationNotesEditSelector();
$view->view->editselector = $edit_selector;
$non_edit_selector = $database_config_user->getConsultationNotesNonEditSelector();
$view->view->noneditselector = $non_edit_selector;
$possible_statuses = $database_notes->getPossibleStatuses();
foreach ($possible_statuses as $possible_status) {
    $status_ids[] = $possible_status[0];
    $status_localizations[] = $possible_status[1];
}
$view->view->statusids = $status_ids;
$view->view->statuslocs = $status_localizations;
$status_selector = $database_config_user->getConsultationNotesStatusSelector();
$view->view->statusselector = $status_selector;
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::ADMIN_LEVEL);
Assets_Page::header(Locale_Translate::_("Collaboration"));
$view = new Assets_View(__FILE__);
$object = $_GET['object'];
$view->view->object = $object;
$database_config_bible = Database_Config_Bible::getInstance();
$url = $database_config_bible->getRemoteRepositoryUrl($object);
$directory = Filter_Git::git_directory($object);
$view->render("collaboration_repo_data.php");
Assets_Page::footer();
Beispiel #30
0
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Password"));
$view = new Assets_View(__FILE__);
// Form submission handler.
if (isset($_POST['submit'])) {
    $form_is_valid = true;
    $user = $_POST['user'];
    if (strlen($user) < 4) {
        $view->view->error_message = Locale_Translate::_("Username or email address is too short");
        $form_is_valid = false;
    }
    $database_users = Database_Users::getInstance();
    if ($form_is_valid) {
        $form_is_valid = false;
        $email = $database_users->getUserToEmail($user);
        if ($email != "") {
            $form_is_valid = true;
        }