Ejemplo n.º 1
0
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";
// phpLiteAdmin is secured through the standard Bibledit-Web login mechanism.
page_access_level(Filter_Roles::ADMIN_LEVEL);
// Do not show phpLiteAdmin in an open installation,
// so nobody can effect the databases and their tables
include "config/open.php";
if ($open_installation) {
    Assets_Page::header("phpLiteAdmin");
    Assets_Page::message(Locale_Translate::_("This open demo does not display the database editor for security reasons."));
    Assets_Page::footer();
    die;
}
?>


<?php 
//
//	Project: phpLiteAdmin (http://phpliteadmin.googlecode.com)
//	Version: 1.9.5
//	Summary: PHP-based admin tool to manage SQLite2 and SQLite3 databases on the web
//	Last updated: 2014-01-14
//	Developers:
//	   Dane Iracleous (daneiracleous@gmail.com)
//	   Ian Aldrighetti (ian.aldrighetti@gmail.com)
Ejemplo n.º 2
0
$verse_texts = array();
$contents = array();
foreach ($identifiers as $identifier) {
    $summary = $database_notes->getSummary($identifier);
    $passages = $database_notes->getPassages($identifier);
    $verses = Filter_Books::passagesDisplayInline($passages);
    $summaries[] = $summary . " | " . $verses;
    $verse_text = "";
    if ($passage_inclusion_selector) {
        $passages = $database_notes->getPassages($identifier);
        foreach ($passages as $passage) {
            $usfm = $database_bibles->getChapter($bible, $passage[0], $passage[1]);
            $text = Filter_Usfm::getVerseText($usfm, $passage[2]);
            $verse_text .= $text;
            $verse_text .= "\n";
        }
    }
    $verse_texts[] = nl2br($verse_text);
    $content = "";
    if ($text_inclusion_selector) {
        $content = $database_notes->getContents($identifier);
    }
    $contents[] = $content;
}
$view->view->summaries = $summaries;
$view->view->versetexts = $verse_texts;
$view->view->contents = $contents;
$view->render("notes.php");
if ($count == 0) {
    Assets_Page::message(Locale_Translate::_("This view does not display any notes."));
}