diff options
Diffstat (limited to 'admin/index.php')
| -rw-r--r-- | admin/index.php | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/admin/index.php b/admin/index.php deleted file mode 100644 index aaa9685..0000000 --- a/admin/index.php +++ /dev/null @@ -1,68 +0,0 @@ -<?php - -// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/Attic/index.php,v 1.9 2005/12/28 23:21:24 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. -// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. - -// Initialization -require_once( '../../bit_setup_inc.php' ); -$gBitSystem->verifyPackage( 'newsletters' ); -$gBitSystem->verifyPermission( 'tiki_p_admin_newsletters' ); - -require_once( NEWSLETTERS_PKG_PATH.'lookup_newsletter_inc.php' ); - -if( isset( $_REQUEST["remove"] ) && $gContent->isValid() ) { - if( !empty( $_REQUEST['cancel'] ) ) { - // user cancelled - just continue on, doing nothing - } elseif( empty( $_REQUEST['confirm'] ) ) { - $formHash['remove'] = TRUE; - $formHash['nl_id'] = $gContent->mNewsletterId; - $gBitSystem->confirmDialog( $formHash, array( 'warning' => 'Are you sure you want to delete the newsletter '.$gContent->getTitle().'?' ) ); - } else { - if( $gContent->expunge() ) { - header( "Location: ".NEWSLETTERS_PKG_URL.'admin/' ); - die; - } - } -} elseif (isset($_REQUEST["save"])) { - $sid = $gContent->store( $_REQUEST ); - header( "Location: ".$_SERVER['PHP_SELF'] ); - die; -} - -$gContent->invokeServices( 'content_edit_function' ); - -// Configure quicktags list -if ($gBitSystem->isPackageActive( 'quicktags' ) ) { - include_once( QUICKTAGS_PKG_PATH.'quicktags_inc.php' ); -} - -$newsletters = $gContent->getList( $listHash ); -$gBitSmarty->assign_by_ref( 'newsletters', $newsletters ); -$gBitSmarty->assign_by_ref( 'listInfo', $listHash ); - -// Fill array with possible number of questions per page -/* -$freqs = array(); - -for ($i = 0; $i < 90; $i++) { - $aux["i"] = $i; - - $aux["t"] = $i * 24 * 60 * 60; - $freqs[] = $aux; -} - -$gBitSmarty->assign('freqs', $freqs); -*/ -/* -$cat_type='newsletter'; -$cat_objid = $_REQUEST["nl_id"]; -include_once( CATEGORIES_PKG_PATH.'categorize_list_inc.php' ); -*/ - -// Display the template -$gBitSystem->display( 'bitpackage:newsletters/edit_newsletter.tpl'); - -?> |
