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

Source for file like_pages.php

Documentation is available at like_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_onceWIKI_PKG_PATH.'BitPage.php');
  18. include_onceWIKI_PKG_PATH.'lookup_page_inc.php' );
  19. $gBitSystem->verifyPackage'wiki' );
  20. $gBitSystem->verifyFeature'wiki_like_pages' );
  21. $gBitSystem->verifyPermission'p_wiki_list_pages' );
  22.  
  23. // Get the page from the request var or default it to HomePage
  24. if!$gContent->isValid() ) {
  25.     $gBitSystem->fatalErrortra"No page indicated" ));
  26. }
  27.  
  28. $likepages $gContent->getLikePages$gContent->mInfo['title');
  29. $gBitSmarty->assign_by_ref'likepages'$likepages );
  30.  
  31. // Display the template
  32. $gBitSystem->display'bitpackage:wiki/like_pages.tpl'NULLarray'display_mode' => 'display' ));
  33. ?>

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