diff options
| author | "Lester Caine ext:(%22) <lester@lsces.co.uk> | 2010-11-03 09:46:53 +0000 |
|---|---|---|
| committer | "Lester Caine ext:(%22) <lester@lsces.co.uk> | 2010-11-03 09:46:53 +0000 |
| commit | 3261da3afcc151ebc1ddd77b1055d5bde3c70b7f (patch) | |
| tree | a582efa13411b27c7a3a041a38d8afe6d42d26ff /edit_xref_type.php | |
| download | contact-3261da3afcc151ebc1ddd77b1055d5bde3c70b7f.tar.gz contact-3261da3afcc151ebc1ddd77b1055d5bde3c70b7f.tar.bz2 contact-3261da3afcc151ebc1ddd77b1055d5bde3c70b7f.zip | |
Import package again after stripping private data which should not have been commited
Diffstat (limited to 'edit_xref_type.php')
| -rw-r--r-- | edit_xref_type.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/edit_xref_type.php b/edit_xref_type.php new file mode 100644 index 0000000..38da5f5 --- /dev/null +++ b/edit_xref_type.php @@ -0,0 +1,30 @@ +<?php +/** + * @version $Header$ + * @package contact + * @subpackage functions + */ + +/** + * Initialization + */ +require_once( '../kernel/setup_inc.php' ); + +$gBitSystem->verifyPackage( 'contact' ); +$gBitSystem->verifyPermission( 'p_contact_update' ); + +include_once( CONTACT_PKG_PATH.'Contact.php' ); +$gContent = new Contact(); + +$gBitSmarty->assign_by_ref( 'xref_type_info', $gContent->mInfo); + +if( isset( $_REQUEST["fSubmitSaveXrefType"] ) ) { + $gContent->storeXrefType( $_REQUEST ); + $gContent->loadXrefType(); + header( "Location: " . CONTACT_PKG_URL . "admin/admin_xref_type.php" ); +} elseif( isset( $_REQUEST['fRemoveXref'] ) ) { + $gContent->expungeXrefType(); +} + +$gBitSystem->display( 'bitpackage:contact/edit_xref_type.tpl' , NULL, array( 'display_mode' => 'edit' )); +?>
\ No newline at end of file |
