blob: b8439c3a8a74c2c1c9f8148263426c71dbe29011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
/**
* @version $Header: /cvsroot/bitweaver/_bit_articles/edit_topic.php,v 1.4 2005/10/30 19:48:40 lsces Exp $
* @package article
* @subpackage functions
*/
/**
* Initialization
*/
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' ) ) {
$gBitSmarty->assign( 'msg', tra( "This package is disabled" ) . ": Articles" );
$gBitSystem->display( "error.tpl" );
die;
}
if( !$gContent->isValid() ) {
$gBitSmarty->assign( 'msg', tra("Article topic not found") );
$gBitSystem->display('error.tpl');
die;
}
$gBitSmarty->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' );
?>
|