//
// @param subprefix Optional prefix to display a book inside an item (e.g. if does not match identifier)
public static function draw($server, $mainDir, $identifier, $subPrefix, $title,
- $coverLeaf=null, $titleStart='Internet Archive', $uiMode='full', $protected = false)
+ $coverLeaf=null, $titleStart='Internet Archive', $uiMode='full', $protected = false, $isAdmin=false)
{
// Set title to default if not set
if (!$title) {
// manually update with Launchpad version number at each checkin so that browsers
// do not use old cached version
// see https://bugs.launchpad.net/gnubook/+bug/330748
- $version = "3.0.1";
+ $version = "3.0.5";
if (BookReader::getDevHost($server)) {
// On dev host - add time to force reload
<? } else { ?>
brConfig["mode"] = 2;
<? } ?>
+<? if ($isAdmin == true) {
+ echo ' brConfig["isAdmin"] = true;';
+ } ?>
</script>
<script type="text/javascript">
// The URL in the script tag below is dynamically generated JavaScript that includes the book metadata and page image access functions.