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

Source for file list_blogs.php

Documentation is available at list_blogs.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package blogs
  5.  * @subpackage functions
  6.  */
  7.  
  8. // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  9. // All Rights Reserved. See below for details and a complete list of authors.
  10. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
  11.  
  12. /**
  13.  * required setup
  14.  */
  15. require_once'../kernel/setup_inc.php' );
  16. require_onceBLOGS_PKG_PATH.'lookup_blog_inc.php');
  17.  
  18. include_onceBLOGS_PKG_PATH.'BitBlog.php' );
  19.  
  20. $gBitSystem->verifyPackage'blogs' );
  21.  
  22. $gBitSystem->verifyPermission'p_blogs_view' );
  23.  
  24. $gBitSystem->setBrowserTitle(tra("View All Blogs"));
  25.  
  26. if$gContent->isValid(&& isset($_REQUEST["remove"])) {
  27.     $gBitSystem->setBrowserTitle(tra("Delete Blog"));
  28.  
  29.     // Check if has edit perm of this blog
  30.     $gContent->verifyUpdatePermission();
  31.     if!empty$_REQUEST['cancel') ) {
  32.         // user cancelled - just continue on, doing nothing
  33.     elseifempty$_REQUEST['confirm') ) {
  34.         $formHash['remove'$_REQUEST["remove"];
  35.         $formHash['blog_id'$gContent->mBlogId;
  36.         $gBitSystem->confirmDialog$formHash
  37.             array(
  38.                 'warning' => tra('Are you sure you want to delete this blog?'' ' $gContent->getTitle()
  39.                 'error' => tra('This cannot be undone!'),
  40.             )
  41.         );
  42.     else {
  43.         $gContent->expunge();
  44.     }
  45. }
  46.  
  47. // Get a list of last changes to the Wiki database
  48. $blogsList $gContent->getList$_REQUEST );
  49. $gBitSmarty->assign'listInfo'$_REQUEST['listInfo');
  50. $gBitSmarty->assign_by_ref'blogsList'$blogsList );
  51.  
  52. ifdefined(ROLE_MODEL) ) {
  53.     $gBitSmarty->assign'role_model'TRUE );
  54. }
  55. // Display the template
  56. $gBitSystem->display'bitpackage:blogs/list_blogs.tpl'NULLarray'display_mode' => 'list' ));
  57.  
  58. ?>

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