blob: ca121e6bd6536c8518ab2720ceae1d4a6a94c1a6 (
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
|
<?php
/**
* Copyright (c) 2005 bitweaver.org
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
*
* created 2005/12/10
*
* @package newsletters
* @author spider <spider@steelsun.com>
*/
/**
* Initialization
*/
require_once( NEWSLETTERS_PKG_CLASS_PATH.'BitNewsletter.php' );
if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) {
$nlId = !empty( $_REQUEST['nl_id'] ) ? $_REQUEST['nl_id'] : NULL;
$conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : !empty( $_REQUEST['nl_content_id'] ) && is_numeric( $_REQUEST['nl_content_id'] ) ? $_REQUEST['nl_content_id'] : NULL;
$gContent = new BitNewsletter( $nlId, $conId );
$gContent->load();
$gBitSmarty->assign( 'gContent', $gContent );
}
|