wiki
[ class tree: wiki ] [ index: wiki ] [ all elements ]

Source for file print_multi_pages.php

Documentation is available at print_multi_pages.php

  1. <?php
  2. /**
  3.  * Copyright (c) 2004 bitweaver.org
  4.  * Copyright (c) 2003 tikwiki.org
  5.  * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  6.  * All Rights Reserved. See below for details and a complete list of authors.
  7.  * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
  8.  *
  9.  * @package wiki
  10.  * @subpackage functions
  11.  */
  12.  
  13. /**
  14.  * required setup
  15.  */
  16. require_once'../kernel/setup_inc.php' );
  17. require_onceWIKI_PKG_PATH.'BitPage.php' );
  18.  
  19. $gBitSystem->verifyFeature'wiki_multiprint' );
  20.  
  21. if (!isset($_REQUEST["printpages"])) {
  22.     $gBitSystem->fatalErrortra"No pages indicated" )NULLNULLHttpStatusCodes::HTTP_NOT_FOUND );
  23. else {
  24.     $printpages unserialize(urldecode($_REQUEST["printpages"]));
  25. }
  26.  
  27. if (isset($_REQUEST["print"])) {
  28.     // Create XMLRPC object
  29.     $pages array();
  30.     foreach$printpages as $contentId {
  31.         $page new BitPageNULL$contentId );
  32.         if$page->load() ) {
  33.             $page->verifyViewPermission();
  34.             $page_info $page->mInfo;
  35.             $page_info["parsed"$page->parseData$page_info );
  36.             $pages[$page_info;
  37.         }
  38.     }
  39. }
  40. $gBitSmarty->assign_by_ref('pages'$pages);
  41.  
  42. // Display the template
  43. $gBitSmarty->display("bitpackage:wiki/print_multi_pages.tpl");
  44. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:16 +0000 by phpDocumentor 1.5.0-lsces