diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-12-16 07:38:21 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-12-16 07:38:21 +0000 |
| commit | 3e445bdda8526c48e28eb58e85ca06902c506a81 (patch) | |
| tree | c3705fc3efb4c9c48a49c61b0e16d14e525b4f6d /edit_key_break.php | |
| parent | f4cc5e18f6ef73801df0a8cb00b8584686f9d57c (diff) | |
| download | contact-3e445bdda8526c48e28eb58e85ca06902c506a81.tar.gz contact-3e445bdda8526c48e28eb58e85ca06902c506a81.tar.bz2 contact-3e445bdda8526c48e28eb58e85ca06902c506a81.zip | |
Move Break seal handling to it's one set of pages
See notes on seal handling in the help files
Still need to complete
Diffstat (limited to 'edit_key_break.php')
| -rw-r--r-- | edit_key_break.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/edit_key_break.php b/edit_key_break.php new file mode 100644 index 0000000..9adfbd4 --- /dev/null +++ b/edit_key_break.php @@ -0,0 +1,42 @@ +<?php +/** + * $Header: /cvsroot/bitweaver/_bit_contact/edit.php,v 1.6 2010/02/08 21:27:22 wjames5 Exp $ + * + * Copyright (c) 2006 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 + * + * @package contact + * @subpackage functions + */ + +/** + * required setup + */ +require_once( '../kernel/setup_inc.php' ); + +$gBitSystem->verifyPackage( 'contact' ); +$gBitSystem->verifyPermission( 'p_contact_update' ); + +include_once( CONTACT_PKG_PATH.'lookup_contact_inc.php' ); +if( empty( $gContent ) || !is_object( $gContent ) ) { + $gContent = new Contact(); +} + +if( !empty( $_REQUEST['xref_id'] ) ) { + $gContent->loadXref( $_REQUEST['xref_id'] ); +} + +$gContent->stepXref( $_REQUEST ); + +// formInfo might be set due to a error on submit +if( empty( $xrefInfo ) ) { + $xrefInfo = &$gContent->mInfo['xref_store']['data']; +} +$gBitSmarty->assign_by_ref( 'xrefInfo', $xrefInfo ); +$gBitSmarty->assign_by_ref( 'title', $gContent->mInfo['title'] ); +$gBitSmarty->assign_by_ref( 'xref_title', $gContent->mInfo['xref_title'] ); + +$gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors ); +$gBitSystem->display( 'bitpackage:contact/edit_key_break.tpl', 'Edit: ' , array( 'display_mode' => 'edit' )); +?> |
