summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2005-12-09 18:51:23 +0000
committerChristian Fowler <spider@viovio.com>2005-12-09 18:51:23 +0000
commit8db44caf0b09a9e9e88d4ca75423a3a0c7a7c282 (patch)
treee690142e5d14f0d4c594128d8e913ec021c38f13 /index.php
parent8b0ca62c70b5de9c9d3040990c5e33116c38a287 (diff)
downloadnewsletters-8db44caf0b09a9e9e88d4ca75423a3a0c7a7c282.tar.gz
newsletters-8db44caf0b09a9e9e88d4ca75423a3a0c7a7c282.tar.bz2
newsletters-8db44caf0b09a9e9e88d4ca75423a3a0c7a7c282.zip
revamped schema, add libetry support. admin can now save a newsletter but that is about it, but it is using proper liberty inheritance
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/index.php b/index.php
index 26b8cd7..b706f4d 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_newsletters/index.php,v 1.3 2005/12/09 15:55:45 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_newsletters/index.php,v 1.4 2005/12/09 18:51:22 spiderr 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.
@@ -47,7 +47,7 @@ $gBitSmarty->assign('email', $user_email);
if( isset( $_REQUEST["subscribe"] ) ) {
$gBitSystem->verifyPermission( 'bit_p_subscribe_newsletters' );
$feedback['success'] = tra( "Thanks for your subscription. You will receive an email soon to confirm your subscription. No newsletters will be sent to you until the subscription is confirmed." );
-
+
if( !$gBitUser->hasPermission( 'tiki_p_subscribe_email' ) ) {
$_REQUEST["email"] = $gBitUser->mInfo['email'];
}
@@ -56,15 +56,9 @@ if( isset( $_REQUEST["subscribe"] ) ) {
$nllib->newsletter_subscribe( $_REQUEST["nl_id"], $_REQUEST["email"] );
}
-if( isset( $_REQUEST["info"] ) ) {
- $nl_info = $nllib->get_newsletter($_REQUEST["nl_id"]);
-
- $gBitSmarty->assign( 'nl_info', $nl_info );
- $gBitSmarty->assign( 'subscribe', 'y' );
-}
/* List newsletters */
$listHash = array();
-$channels = $nllib->getList( $listHash );
+$channels = $gContent->getList( $listHash );
for ($i = 0; $i < count($channels["data"]); $i++) {
/*