diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-24 15:35:09 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-24 15:35:09 +0100 |
| commit | ce4fa87baac56fe2478cfea56b539cba63887467 (patch) | |
| tree | 6d5f6a74d4d80fcc11b12ce2fa86715e1bff9b88 /form.php | |
| parent | 69b08377a8a2d3791b21d96720657d93beda2af0 (diff) | |
| download | contact-ce4fa87baac56fe2478cfea56b539cba63887467.tar.gz contact-ce4fa87baac56fe2478cfea56b539cba63887467.tar.bz2 contact-ce4fa87baac56fe2478cfea56b539cba63887467.zip | |
Just a crude merging of the PHP7 code base with the PHP8.4 version
Diffstat (limited to 'form.php')
| -rwxr-xr-x | form.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/form.php b/form.php new file mode 100755 index 0000000..f14aac2 --- /dev/null +++ b/form.php @@ -0,0 +1,45 @@ +<?php + +use Bitweaver\KernelTools; +/** + * $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/includes/setup_inc.php'; + +$gBitSystem->verifyPackage( 'contact' ); + +$cat_type = BITPAGE_CONTENT_TYPE_GUID; +if(isset($_REQUEST["fSaveForm"])) { + \Bitweaver\vd($_REQUEST); +} else { + +} + +// Pro +if (isset($_REQUEST["fCancel"])) { + if( !empty( $gContent->mContentId ) ) { + KernelTools::bit_redirect( $gContent->getDisplayUrl() ); + } else { + KernelTools::bit_redirect( CONTACT_PKG_URL ); + } +} elseif (isset($_REQUEST["fSaveContact"])) { + if( $gContent->store( $_REQUEST ) ) { + KernelTools::bit_redirect( $gContent->getDisplayUrl() ); + } else { + $formInfo = $_REQUEST; + $formInfo['data'] = &$_REQUEST['edit']; + } +} + +$gBitSystem->display( 'bitpackage:contact/form_DSInspection.tpl', 'Form: OD01 ' , array( 'display_mode' => 'form' )); |
