summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-01-22 20:21:57 +0000
committerChristian Fowler <spider@viovio.com>2006-01-22 20:21:57 +0000
commit4125f646dfb95a5c09d772c6253dc88c707c8ec9 (patch)
tree684b4ed080e314c811f7861faecaa915b6b44642 /index.php
parentb484e055a2d91d63b88d978b035c3047dd458b79 (diff)
downloadnewsletters-4125f646dfb95a5c09d772c6253dc88c707c8ec9.tar.gz
newsletters-4125f646dfb95a5c09d772c6253dc88c707c8ec9.tar.bz2
newsletters-4125f646dfb95a5c09d772c6253dc88c707c8ec9.zip
lots of clean to newsletters - only show editions for nl_id, get delete links to go to the right place
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.php b/index.php
index de5b43f..fed5687 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_newsletters/index.php,v 1.15 2005/12/29 17:22:47 spiderr Exp $
+// $Header: /cvsroot/bitweaver/_bit_newsletters/index.php,v 1.16 2006/01/22 20:21:56 spiderr Exp $
// Copyright (c) 2006 - bitweaver.org - Christian Fowler, Max Kremmel, et. al
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -21,9 +21,11 @@ $feedback = array();
/* List newsletters */
$listHash = array();
+if( !empty( $_REQUEST['nl_id'] ) ) {
+ $listHash['nl_id'] = $_REQUEST['nl_id'];
+}
$newsletters = $gContent->getList( $listHash );
$gBitSmarty->assign_by_ref('newsletters', $newsletters );
-
if( isset( $_REQUEST["sub"] ) || $gBitUser->isRegistered() ) {
if( isset( $_REQUEST["sub"] ) && strlen( $_REQUEST["sub"] ) == 32 && ($subInfo = BitMailer::lookupSubscription( array( 'url_code' => $_REQUEST["sub"] ) )) ) {
$lookup['email'] = $subInfo['email'];
@@ -123,4 +125,4 @@ $gBitSmarty->assign( 'feedback', $feedback );
// Display the template
$gBitSystem->display( $mid );
-?> \ No newline at end of file
+?>