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

Source for file mod_random_pages.php

Documentation is available at mod_random_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 modules
  11.  */
  12.  
  13. /**
  14.  * Required files
  15.  */
  16. require_onceWIKI_PKG_PATH.'BitPage.php' );
  17. $wp new BitPage();
  18.  
  19. if$gBitUser->hasPermission'p_wiki_view_page' ) ) {
  20.     $listHash array(
  21.         'sort_mode' => 'random',
  22.         'max_records' => $moduleParams['module_rows'],
  23.     );
  24.     $pages $wp->getList$listHash );
  25.     $_template->tpl_vars['modRandomPages'new Smarty_variable$pages );
  26. }
  27. ?>

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