summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 03:57:42 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 03:57:42 +0000
commit48f33945f41e0b30628d8d7941fe8d62e88ac97b (patch)
tree5d624eda3cf1bd0cdc9e788fbbba5c70a3ddb0e4 /index.php
downloadblogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.tar.gz
blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.tar.bz2
blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.zip
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'index.php')
-rw-r--r--index.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..f74f703
--- /dev/null
+++ b/index.php
@@ -0,0 +1,39 @@
+<?php
+
+// $Header: /cvsroot/bitweaver/_bit_blogs/index.php,v 1.1 2005/06/19 03:57:42 bitweaver Exp $
+
+// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
+// All Rights Reserved. See copyright.txt for details and a complete list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
+
+// Initialization
+require_once( '../bit_setup_inc.php' );
+
+if (defined("CATEGORIES_PKG_PATH")) {
+ include_once( CATEGORIES_PKG_PATH.'categ_lib.php');
+}
+
+$gBitSystem->verifyPackage( 'blogs' );
+
+if ($gBitSystem->isPackageActive( 'categories' )) {
+ if (isset($_REQUEST['addcateg']) and $_REQUEST['addcateg'] and isset($_REQUEST['post_id']) and $_REQUEST['post_id']) {
+ $categlib->categorize_blog_post($_REQUEST['post_id'],$_REQUEST['addcateg'],true);
+ } elseif (isset($_REQUEST['delcategs']) and isset($_REQUEST['post_id']) and $_REQUEST['post_id']) {
+ $categlib->uncategorize('blogpost',$_REQUEST['post_id']);
+ }
+
+ $categs = $categlib->list_all_categories(0, -1, 'name_asc', '', '', 0);
+ $smarty->assign('categs',$categs['data']);
+ $smarty->assign('page','index.php');
+ $choosecateg = str_replace('"',"'",$smarty->fetch('bitpackage:blogs/popup_categs.tpl'));
+ $smarty->assign('choosecateg',$choosecateg);
+}
+
+$smarty->assign( 'showEmpty', TRUE );
+$gDefaultCenter = 'bitpackage:blogs/center_list_blog_posts.tpl';
+$smarty->assign_by_ref( 'gDefaultCenter', $gDefaultCenter );
+
+// Display the template
+$gBitSystem->display( 'bitpackage:kernel/dynamic.tpl', 'List Blog Posts' );
+
+?>