-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.php
More file actions
executable file
·45 lines (38 loc) · 1.17 KB
/
form.php
File metadata and controls
executable file
·45 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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' ));