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

Source for file export_wiki_pages.php

Documentation is available at export_wiki_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. include_onceUTIL_PKG_PATH.'zip_lib.php' );
  18. include_onceWIKI_PKG_PATH.'export_lib.php' );
  19. if (!$gBitUser->hasPermission'p_wiki_admin' ))
  20.     die;
  21. if (!isset($_REQUEST["page_id"])) {
  22.     $exportName 'export_'.date'Y-m-d_H:i' ).'.tar';
  23.     $exportlib->MakeWikiZipTEMP_PKG_PATH.$exportName );
  24.     header ("location: ".TEMP_PKG_URL.$exportName );
  25. else {
  26.     if (isset($_REQUEST["all"]))
  27.         $all 0;
  28.     else
  29.         $all 1;
  30.     $data $exportlib->export_wiki_page($_REQUEST["page_id"]$all);
  31.     $pageId $_REQUEST["page_id"];
  32.     header ("Content-type: application/unknown");
  33.     header ("Content-Disposition: inline; filename=$pageId");
  34.     echo $data;
  35. }
  36. ?>

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