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

Source for file edit.php

Documentation is available at edit.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package tags
  5.  * @subpackage functions
  6.  * 
  7.  * @copyright Copyright (c) 2004-2006, bitweaver.org
  8.  *  All Rights Reserved. See below for details and a complete list of authors.
  9.  *  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. require_onceTAGS_PKG_PATH."LibertyTag.php" );
  17.  
  18. $gBitSystem->verifyPackage'tags' );
  19.  
  20. if !$gBitUser->hasPermission('p_tags_admin') ){
  21.     $gBitSystem->fatalError'You do not have permission to edit Tags' );
  22. }
  23.  
  24. $tag new LibertyTag();
  25.  
  26. if $tag->loadTag $_REQUEST ) ){
  27.     $gBitSmarty->assign'tagData'$tag->mInfo );    
  28. }
  29.  
  30. if!empty$_REQUEST["save") ) {
  31.     if$tag->storeOneTag$_REQUEST ) ) {
  32.         header "location: " TAGS_PKG_URL"index.php?tags=".$tag->mInfo['tag');
  33.     }
  34. }
  35.  
  36. $gBitSystem->display'bitpackage:tags/edit_tag.tpl'tra"Edit Tag" array'display_mode' => 'edit' ));
  37. ?>

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