*/ /** * 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 ); }