blob: db8fe3e6f533d9103f809f3f71c26f2172806229 (
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
|
<?php
// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.2 2005/08/13 22:03:39 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.
// Initialization
require_once( '../bit_setup_inc.php' );
// Is package installed and enabled
$gBitSystem->verifyPackage( 'articles' );
// Now check permissions to access this page
$gBitSystem->verifyPermission( 'bit_p_read_article' );
if (!empty($_REQUEST['article_id'])) {
header("location: ".ARTICLES_PKG_URL."read.php?article_id=".((int)$_REQUEST['article_id']));
}
require_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' );
$articles = $gContent->getList($_REQUEST);
$smarty->assign_by_ref('articles', $articles['data']);
// Display the template
$gBitSystem->display( 'bitpackage:articles/center_list_articles.tpl', tra('Articles') );
?>
|