summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-26 10:15:15 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-26 10:15:15 +0000
commit04136bdba7c067bf09174d3ed6427dbe265d8e01 (patch)
treebf2ac5191c103ac7e4f2a3675d6960bd929c5f91 /index.php
parent607fcfd7cec87a689b7b3210bb29d79cb5ab17cd (diff)
downloadarticles-04136bdba7c067bf09174d3ed6427dbe265d8e01.tar.gz
articles-04136bdba7c067bf09174d3ed6427dbe265d8e01.tar.bz2
articles-04136bdba7c067bf09174d3ed6427dbe265d8e01.zip
get article submissions working
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index c5b70d3..cae9b68 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.3 2005/08/25 11:24:22 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.4 2005/08/26 10:15:15 squareing 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.
@@ -19,7 +19,10 @@ if( !empty( $_REQUEST['article_id'] ) ) {
require_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' );
+// only display approved articles
+$_REQUEST['status_id'] = ARTICLE_STATUS_APPROVED;
$articles = $gContent->getList( $_REQUEST );
+
foreach( $articles['data'] as $key => $article ) {
if( strlen( $article['parsed_description'] ) != strlen( $article['parsed_data'] ) ) {
$articles['data'][$key]['read_more'] = TRUE;