<?php /** * @version $Header$ * @package blogs * @subpackage functions */ /** * required setup */ require_once '../kernel/setup_inc.php'; include_once IRLIST_PKG_PATH . 'IRList.php'; $gBitSystem->verifyPackage('irlist'); $gBitSystem->verifyPermission('p_read_irlist'); $gContent = new IRList(); // Get a list of matching IR entries $listirs = $gContent->getList($_REQUEST); include_once IRLIST_PKG_PATH . 'display_list_header.php'; $gBitSmarty->assign_by_ref('listInfo', $_REQUEST['listInfo']); $gBitSystem->setBrowserTitle("View Incident Reports List"); // Display the template $gBitSystem->display('bitpackage:irlist/list.tpl', NULL, array('display_mode' => 'list'));
* Copyright (c) 2006 bitweaver.org * All Rights Reserved. See below for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details * * @package irlist * @subpackage functions */ /** * required setup */ require_once '../kernel/setup_inc.php'; include_once LIBERTY_PKG_PATH . 'edit_help_inc.php'; include_once IRLIST_PKG_PATH . 'IRList.php'; $gBitSystem->verifyPackage('irlist'); $gBitSystem->isPackageActive('irlist', TRUE); $gContent = new IRList(); if (!empty($_REQUEST['content_id'])) { $gContent->load($_REQUEST['content_id']); } // Get plugins with descriptions global $gLibertySystem; //if( $gContent->isLocked() ) { // $gBitSystem->fatalError( 'Cannot edit page because it is locked' ); //} if (!empty($gContent->mInfo)) { $formInfo = $gContent->mInfo; $formInfo['edit'] = !empty($gContent->mInfo['data']) ? $gContent->mInfo['data'] : ''; } if (isset($_REQUEST["edit"])) { $formInfo['edit'] = $_REQUEST["edit"]; }
<?php // $Header$ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See below for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details. require_once '../kernel/setup_inc.php'; include_once IRLIST_PKG_PATH . 'IRList.php'; $gBitSystem->isPackageActive('irlist', TRUE); $gContent = new IRList(); if (!empty($_REQUEST['content_id'])) { $gContent->load($_REQUEST['content_id']); } // Comments engine! if ($gBitSystem->isFeatureActive('irlist_comments')) { $comments_vars = array('page'); $comments_prefix_var = 'ir note:'; $comments_object_var = 'page'; $commentsParentId = $gContent->mContentId; $comments_return_url = IRLIST_PKG_URL . 'index.php?content_id=' . $gContent->mContentId; include_once LIBERTY_PKG_PATH . 'comments_inc.php'; } $displayHash = array('perm_name' => 'bit_p_view'); $gContent->invokeServices('content_display_function', $displayHash); $pdata = $gContent->parseData(); $gBitSmarty->assign_by_ref('parsed', $pdata); $gBitSmarty->assign_by_ref('contentInfo', $gContent->mInfo); if ($gContent->isValid()) { $gBitSystem->setBrowserTitle("Incident Reports Item"); $gBitSystem->display('bitpackage:irlist/show_ir_item.tpl', NULL, array('display_mode' => 'display')); } else {