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; } }
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();
<?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();
$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); $ids[] = $id; } $order = implode(" ", $ids); $database_config_bible->setBookOrder($bible, $order); die; } $script = <<<EOD var orderBible = '{$bible}'; EOD; $view->view->script = $script; $names = array(); $books = Filter_Books::getOrdered($bible); foreach ($books as $book) { $names[] = $database_books->getEnglishFromId($book); } $view->view->names = $names; $view->render("order.php"); Assets_Page::footer();
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); $count = count($ids); if ($count > 0) { $pendingUsers[] = $user; $pendingCount[] = $count; } } $view->view->users = $pendingUsers; $view->view->count = $pendingCount; $view->render("manage.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::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();
$config_general->setMailSendSecurity($sendsecurity); $config_general->setMailSendPort($sendport); @($send_success .= " " . Locale_Translate::_("The details were saved.")); try { $mail = new Mail_Send($config_general->getSiteMailAddress(), $config_general->getSiteMailName(), "Test", "This is to try out whether Bibledit-Web can send email."); $send_success .= " " . Locale_Translate::_("For the purpose of trying whether Bibledit-Web can send email, a test email was sent out to the account above:") . " " . $config_general->getSiteMailAddress(); } catch (Exception $e) { $send_error .= " " . $e->getMessage(); } @($view->view->send_success = $send_success); @($view->view->send_error = $send_error); } /** * Normal page display. */ $config_general = Database_Config_General::getInstance(); $view->view->sitename = $config_general->getSiteMailName(); $view->view->sitemail = $config_general->getSiteMailAddress(); $view->view->storagehost = $config_general->getMailStorageHost(); $view->view->storageusername = $config_general->getMailStorageUsername(); $view->view->storagepassword = $config_general->getMailStoragePassword(); $view->view->storagesecurity = $config_general->getMailStorageSecurity(); $view->view->storageport = $config_general->getMailStoragePort(); $view->view->sendhost = $config_general->getMailSendHost(); $view->view->sendauthentication = $config_general->getMailSendAuthentication(); $view->view->sendusername = $config_general->getMailSendUsername(); $view->view->sendpassword = $config_general->getMailSendPassword(); $view->view->sendsecurity = $config_general->getMailSendSecurity(); $view->view->sendport = $config_general->getMailSendPort(); $view->render("mail.php"); Assets_Page::footer();
public static function footer() { $view = new Assets_View(__FILE__); $view->render('footer.php'); $view->render('xhtml_finish.php'); }
<?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();
<?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();
$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; case 0: $contents = file($output, FILE_IGNORE_NEW_LINES); break; case -1: $contents = file($output, FILE_IGNORE_NEW_LINES); $ready = true; break; } $view->view->contents = $contents; Assets_Page::header(Locale_Translate::_("Collaboration")); // Display the page(s). $view->render("collaboration_take_repo1.php"); if ($ready) { $view->render("collaboration_take_repo2.php"); } Assets_Page::footer();
$view->view->bibles = $bibles; $view->view->oldTexts = $oldTexts; $view->view->modifications = $modifications; $view->view->newTexts = $newTexts; // Data for going back and forward in the pager. $back = $start; if ($back > 0) { $back -= 50; } if ($back < 0) { $back = 0; } $forward = $start + 50; $view->view->back = http_build_query(array_merge($state, array('start' => $back))); $view->view->forward = http_build_query(array_merge($state, array('start' => $forward))); // Data for the passage filter. $view->view->bible = http_build_query(array_merge($state, array('passage' => 0))); $view->view->book = http_build_query(array_merge($state, array('passage' => 1))); $view->view->chapter = http_build_query(array_merge($state, array('passage' => 2))); $view->view->verse = http_build_query(array_merge($state, array('passage' => 3))); // Data for the author filter. $author_names = $database_history->authors($myBibles); array_unshift($author_names, Locale_Translate::_("everybody")); $view->view->author_names = $author_names; $author_queries = array(); foreach ($author_names as $offset => $dummy) { $author_queries[] = http_build_query(array_merge($state, array('author' => $offset))); } $view->view->author_queries = $author_queries; $view->render("history.php"); Assets_Page::footer();
$timestamps = array(); foreach ($notes as $note) { $timestap = $database_notes->getModified($note); $timestamps[] = $timestap; } array_multisort($timestamps, SORT_DESC, $notes); // Details for the notes. $summaries = array(); $subscriptions = array(); $assignments = array(); foreach ($notes as $note) { $summary = $database_notes->getSummary($note); $summary = Filter_Html::sanitize($summary); $summaries[] = $summary; $subscriptions[] = $database_notes->isSubscribed($note, $username); $assignments[] = $database_notes->isAssigned($note, $username); } $view->view->notes = $notes; $view->view->summaries = $summaries; $view->view->subscriptions = $subscriptions; $view->view->assignments = $assignments; // Time stamp. $timestamp = $database_modifications->getNotificationTimeStamp($id); $timestamp = date('j F Y', $timestamp); $view->view->timestamp = $timestamp; // Whether there's a live notes editor available. $live_notes_editor = $ipc_notes->alive(); $view->view->live_notes_editor = $live_notes_editor; // Display page. $view->render("change.php");
<?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();
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();
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); } } $data = $database_mappings->export($name); $view->view->data = $data; $view->render("map.php"); Assets_Page::footer();
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();
$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"); } if (isset($_POST['middlepunctuationmarks'])) { $database_config_bible->setSentenceStructureMiddlePunctuation($bible, $_POST['middlepunctuationmarks']); $view->view->success = Locale_Translate::_("The punctuation marks within the sentences were stored"); } if (isset($_POST['disregards'])) { $database_config_bible->setSentenceStructureDisregards($bible, $_POST['disregards']); $view->view->success = Locale_Translate::_("The characters that should be disregarded within the sentences were stored"); } if (isset($_POST['names'])) { $database_config_bible->setSentenceStructureNames($bible, $_POST['names']); $view->view->success = Locale_Translate::_("The names that may occur after mid-sentence punctuation were stored"); } $view->view->bible = $bible; $view->view->capitals = Filter_Html::sanitize($database_config_bible->getSentenceStructureCapitals($bible)); $view->view->smallletters = Filter_Html::sanitize($database_config_bible->getSentenceStructureSmallLetters($bible)); $view->view->endpunctuationmarks = Filter_Html::sanitize($database_config_bible->getSentenceStructureEndPunctuation($bible)); $view->view->middlepunctuationmarks = Filter_Html::sanitize($database_config_bible->getSentenceStructureMiddlePunctuation($bible)); $view->view->disregards = Filter_Html::sanitize($database_config_bible->getSentenceStructureDisregards($bible)); $view->view->names = Filter_Html::sanitize($database_config_bible->getSentenceStructureNames($bible)); $view->render("settingssentences.php"); Assets_Page::footer();
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; } if (isset($_GET['clear'])) { $database_offlineresources->delete($name); } $count = $database_offlineresources->count($name); $view->view->count = $count; $header = new Assets_Header(Locale_Translate::_("Download resource")); $header->run(); $view->render("download.php"); Assets_Page::footer();
} $database_users = Database_Users::getInstance(); if ($form_is_valid) { if ($database_users->usernameExists($user)) { $view->view->error_message = Locale_Translate::_("The username that you have chosen has already been taken. Please choose another one."); $form_is_valid = false; } } if ($form_is_valid) { if ($database_users->emailExists($mail)) { $view->view->error_message = Locale_Translate::_("The email address that you have chosen has already been taken. Please choose another one."); $form_is_valid = false; } } if ($form_is_valid) { $confirm_worker = Confirm_Worker::getInstance(); $initial_subject = Locale_Translate::_("Signup verification"); $initial_body = Locale_Translate::_("Somebody requested to open an account with this email address."); $query = $database_users->addNewUserQuery($user, $pass, Filter_Roles::MEMBER_LEVEL, $mail); $subsequent_subject = Locale_Translate::_("Account opened"); $subsequent_body = Locale_Translate::_("Welcome! Your account is now active."); $confirm_worker->setup($mail, $initial_subject, $initial_body, $query, $subsequent_subject, $subsequent_body); $signed_up = true; } } if ($signed_up) { $view->render("signedup.php"); } else { $view->render("signup.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::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();
<?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();
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();
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();
<?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();
<?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();
if (!in_array($assignment_selector, $assignees)) { $view->view->nonexistingassignee = true; } } $assignment_selector = $database_config_user->getConsultationNotesAssignmentSelector(); $view->view->assignmentselector = $assignment_selector; $subscription_selector = $database_config_user->getConsultationNotesSubscriptionSelector(); $view->view->subscriptionselector = $subscription_selector; $view->view->severities = $database_notes->getPossibleSeverities(); $severity_selector = $database_config_user->getConsultationNotesSeveritySelector(); $view->view->severityselector = $severity_selector; $text_selector = $database_config_user->getConsultationNotesTextSelector(); $view->view->textselector = $text_selector; $search_text = $database_config_user->getConsultationNotesSearchText(); $view->view->searchtext = Filter_Html::sanitize($search_text); $passage_inclusion_selector = $database_config_user->getConsultationNotesPassageInclusionSelector(); $view->view->passageinclusionselector = $passage_inclusion_selector; $text_inclusion_selector = $database_config_user->getConsultationNotesTextInclusionSelector(); $view->view->textinclusionselector = $text_inclusion_selector; // The admin disables notes selection on Bibles, so the admin sees all notes, even notes referring to non-existing Bibles. if ($session_logic->currentLevel() == Filter_Roles::ADMIN_LEVEL) { $bibles = NULL; } $book = $ipc_focus->getBook(); $chapter = $ipc_focus->getChapter(); $verse = $ipc_focus->getVerse(); $identifiers = $database_notes->selectNotes($bibles, $book, $chapter, $verse, $passage_selector, $edit_selector, $non_edit_selector, $status_selector, $bible_selector, $assignment_selector, $subscription_selector, $severity_selector, $text_selector, $search_text, NULL); $count = count($identifiers); $view->view->count = $count; $view->render("select.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::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();
} if (!$form_is_valid) { if ($database_users->emailExists($user)) { $form_is_valid = true; $email = $user; } } } if ($form_is_valid) { // Generate and store a new password. $generated_password = substr(md5(rand()), 0, 15); $username = $database_users->getEmailToUser($email); $database_users->updateUserPassword($username, $generated_password); $database_mail = Database_Mail::getInstance(); // Send the new password to the user. $subject = Locale_Translate::_("Account changed"); $body = Locale_Translate::_("Somebody requested a new password for your account."); $body .= "\n\n"; $body .= Locale_Translate::_("Here is the new password:"******"\n\n"; $body .= $generated_password; $body .= "\n\n"; $body .= Locale_Translate::_("It is recommended to log into your account with this new password, and then change it."); $database_mail->send($username, $subject, $body); $view->view->success_message = Locale_Translate::_("A message was sent to the email address belonging to this account to help you getting the password"); } else { $view->view->error_message = Locale_Translate::_("Username or email address cannot be found"); } } $view->render("password.php"); Assets_Page::footer();