Source for file print_multi_pages.php
Documentation is available at print_multi_pages.php
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
require_once( '../kernel/setup_inc.php' );
require_once( WIKI_PKG_PATH. 'BitPage.php' );
$gBitSystem->verifyFeature( 'wiki_multiprint' );
if (!isset ($_REQUEST["printpages"])) {
$gBitSystem->fatalError( tra( "No pages indicated" ), NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND );
if (isset ($_REQUEST["print"])) {
foreach( $printpages as $contentId ) {
$page = new BitPage( NULL, $contentId );
$page->verifyViewPermission();
$page_info = $page->mInfo;
$page_info["parsed"] = $page->parseData( $page_info );
$gBitSmarty->assign_by_ref('pages', $pages);
$gBitSmarty->display("bitpackage:wiki/print_multi_pages.tpl");
|