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

Source for file edit_topic.php

Documentation is available at edit_topic.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package articles
  5.  * @subpackage functions
  6.  */
  7.  
  8. /**
  9.  * Initialization
  10.  */
  11. require_once '../kernel/setup_inc.php';
  12. require_onceARTICLES_PKG_PATH."BitArticle.php" );
  13.  
  14. include_onceARTICLES_PKG_PATH."lookup_article_topic_inc.php" );
  15.  
  16. if !$gBitSystem->verifyPackage'articles' ) ) {
  17.    $gBitSmarty->assign'msg'tra"This package is disabled" ": Articles" );
  18.    $gBitSystem->display"error.tpl" NULLarray'display_mode' => 'edit' ));
  19.    die;
  20. }
  21.  
  22. if!$gContent->isValid() ) {
  23.     $gBitSmarty->assign'msg'tra("Article topic not found") );
  24.     $gBitSystem->display('error.tpl'NULLarray'display_mode' => 'edit' ));
  25.     die;
  26. }
  27.  
  28. $gBitSmarty->assign_by_ref'topic_info'$gContent->mInfo);
  29.  
  30. ifisset$_REQUEST["fSubmitSaveTopic") ) {
  31.     $gContent->storeTopic$_REQUEST );
  32.     $gContent->loadTopic();
  33.     bit_redirectARTICLES_PKG_URL "admin/admin_topics.php" );
  34. elseifisset$_REQUEST['fRemoveTopicImage') ) {
  35.     $gContent->removeTopicImage();
  36. }
  37.  
  38. $gBitSystem->display'bitpackage:articles/edit_topic.tpl' NULLarray'display_mode' => 'edit' ));

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