diff options
| author | Christian Fowler <spider@viovio.com> | 2005-12-09 18:51:23 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2005-12-09 18:51:23 +0000 |
| commit | 8db44caf0b09a9e9e88d4ca75423a3a0c7a7c282 (patch) | |
| tree | e690142e5d14f0d4c594128d8e913ec021c38f13 /index.php | |
| parent | 8b0ca62c70b5de9c9d3040990c5e33116c38a287 (diff) | |
| download | newsletters-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.php | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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++) { /* |
