diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-30 01:10:46 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-30 01:10:46 +0000 |
| commit | 75f897b0257d44dc1cb37f09844ebc1824c37752 (patch) | |
| tree | 1b8398e36508b75a438b5b357fe23d95fb261964 /edit_topic.php | |
| download | articles-75f897b0257d44dc1cb37f09844ebc1824c37752.tar.gz articles-75f897b0257d44dc1cb37f09844ebc1824c37752.tar.bz2 articles-75f897b0257d44dc1cb37f09844ebc1824c37752.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'edit_topic.php')
| -rw-r--r-- | edit_topic.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/edit_topic.php b/edit_topic.php new file mode 100644 index 0000000..a270120 --- /dev/null +++ b/edit_topic.php @@ -0,0 +1,33 @@ +<?php +require_once( '../bit_setup_inc.php' ); +require_once( ARTICLES_PKG_PATH."BitArticle.php" ); + +include_once( ARTICLES_PKG_PATH."lookup_article_topic_inc.php" ); + +if (!$gBitSystem->verifyPackage('articles')) { + $smarty->assign( 'msg', tra( "This package is disabled" ) . ": Articles" ); + $gBitSystem->display( "error.tpl" ); + die; +} + +if (!$gContent->isValid()) { + $smarty->assign( 'msg', tra("Article topic not found") ); + $gBitSystem->display('error.tpl'); + die; +} + +$smarty->assign_by_ref( 'topic_info', $gContent->mInfo); + +if( isset( $_REQUEST["fSubmitSaveTopic"] ) ) { + + $gContent->storeTopic( $_REQUEST ); + $gContent->loadTopic(); + header( "Location: " . ARTICLES_PKG_URL . "admin/admin_topics.php" ); +} elseif ( isset($_REQUEST['fRemoveTopicImage']) ) { + $gContent->removeTopicImage(); +} + +$gBitSystem->display( 'bitpackage:articles/edit_topic.tpl' ); + + +?> |
