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

Source for file mod_top_pages.php

Documentation is available at mod_top_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 setup
  15.  */
  16. require_onceWIKI_PKG_PATH.'BitPage.php' );
  17. global $gQueryUser$module_rows$module_params;
  18.  
  19. extract$moduleParams );
  20.  
  21. if$gBitUser->hasPermission'p_wiki_view_page' ) ) {
  22.     $modWiki new BitPage();
  23.     $listHash array(
  24.         'max_records' => $module_rows,
  25.         'sort_mode' => 'hits_desc',
  26.         'user_id' => !empty$module_params['user_pages'$gQueryUser->mUserId NULL,
  27.     );
  28.     $modRank $modWiki->getList$listHash );
  29.     $_template->tpl_vars['modTopPages'new Smarty_variable$modRank );
  30. }
  31. ?>

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