verifyPackage( 'wiki' ); // If the page doesn't exist then display an error $requirePage = TRUE; include( WIKI_PKG_PATH.'lookup_page_inc.php' ); // Now check permissions to access this page if (!$gContent->hasUserPermission( 'bit_p_view' )) { $gBitSmarty->assign('msg', tra("Permission denied you cannot view this page")); $gBitSystem->display( 'error.tpl' ); die; } require_once ( WIKI_PKG_PATH.'page_setup_inc.php' ); // Check if we have to perform an action for this page // for example lock/unlock if (isset($_REQUEST["action"])) { if ($_REQUEST["action"] == 'lock') { $gContent->lock(); } elseif ($_REQUEST["action"] == 'unlock') { $gContent->unlock_page(); } } // Now increment page hits since we are visiting this page if ($gBitSystem->isFeatureActive( 'count_admin_pvs' ) || !$gBitUser->isAdmin()) { $gContent->addHit(); } // Get page data $info = $gContent->mInfo; if ($gBitSystem->isFeatureActive( 'wiki_copyrights' ) && $gBitSystem->isFeatureActive( 'wiki_copyrights' ) && $gBitSystem->isFeatureActive( 'wiki_license_page' )) { // insert license if wiki copyrights enabled // $license_info = $wikilib->get_page_info($wiki_license_page); // $wikilib->add_hit($wiki_license_page); $info["data"] = $info["data"] . "\n