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.  * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.7 2006/04/11 13:10:33 squareing Exp $
  4.  *
  5.  * Copyright (c) 2004 bitweaver.org
  6.  * Copyright (c) 2003 tikwiki.org
  7.  * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  8.  * All Rights Reserved. See copyright.txt for details and a complete list of authors.
  9.  * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
  10.  *
  11.  * $Id: print_multi_pages.php,v 1.7 2006/04/11 13:10:33 squareing Exp $
  12.  * @package wiki
  13.  * @subpackage functions
  14.  */
  15.  
  16. /**
  17.  * required setup
  18.  */
  19. require_once'../bit_setup_inc.php' );
  20. require_onceWIKI_PKG_PATH.'BitPage.php' );
  21.  
  22. $gBitSystem->verifyFeature'wiki_multiprint' );
  23.  
  24. if (!isset($_REQUEST["printpages"])) {
  25.     $gBitSmarty->assign('msg'tra("No pages indicated"));
  26.     $gBitSystem->display'error.tpl' );
  27.     die;
  28. else {
  29.     $printpages unserialize(urldecode($_REQUEST["printpages"]));
  30. }
  31.  
  32. if (isset($_REQUEST["print"])) {
  33.     // Create XMLRPC object
  34.     $pages array();
  35.     foreach$printpages as $contentId {
  36.         $page new BitPageNULL$contentId );
  37.         if$page->load(&& $page->hasUserPermission'p_wiki_view_page'TRUE )) {
  38.             $page_info $page->mInfo;
  39.             $page_info["parsed"$page->parseData$page_info );
  40.             $pages[$page_info;
  41.         }
  42.     }
  43. }
  44. $gBitSmarty->assign_by_ref('pages'$pages);
  45.  
  46. // Display the template
  47. $gBitSmarty->display("bitpackage:wiki/print_multi_pages.tpl");
  48. ?>

Documentation generated on Thu, 15 Feb 2007 20:47:33 +0000 by phpDocumentor 1.3.0