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

Source for file backlinks.php

Documentation is available at backlinks.php

  1. <?php
  2. /**
  3.  * assigned_modules
  4.  *
  5.  * @author   spider <spider@steelsun.com>
  6.  * @package  wiki
  7.  * @subpackage  functions
  8.  * @copyright Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  9.  * @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
  10.  */
  11.  
  12. /**
  13.  * required setup
  14.  */
  15. require_once'../kernel/setup_inc.php' );
  16. include_onceWIKI_PKG_PATH.'lookup_page_inc.php');
  17.  
  18. $gBitSystem->verifyPackage'wiki' );
  19. $gBitSystem->verifyFeature'wiki_backlinks' );
  20.  
  21. // Get the page from the request var or default it to HomePage
  22. if (!isset($_REQUEST["page"])) {
  23.     $gBitSystem->fatalError(tra("No page indicated"));
  24. else {
  25.     $page $_REQUEST["page"];
  26.     $gBitSmarty->assign_by_ref('page'$_REQUEST["page"]);
  27. }
  28.  
  29. // Now check permissions to access this page
  30. $gContent->verifyViewPermission();
  31.  
  32. // If the page doesn't exist then display an error
  33. if!$gContent->pageExists$page )) {
  34.     $gBitSystem->fatalError(tra("The page could not be found"));
  35. }
  36. // Get the backlinks for the page "page"
  37. $backlinks $gContent->getBacklinks();
  38. $gBitSmarty->assign_by_ref('backlinks'$backlinks);
  39.  
  40. // Display the template
  41. $gBitSystem->display'bitpackage:wiki/backlinks.tpl'NULLarray'display_mode' => 'display' ));
  42. ?>

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