Source for file apply.php
Documentation is available at apply.php
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* 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
require_once( '../kernel/setup_inc.php' );
$gBitSystem->verifyPackage( 'wiki' );
require_once( WIKI_PKG_PATH. 'BitPage.php' );
if( !empty( $_REQUEST['structure_id'] ) ) {
include( LIBERTY_PKG_PATH. 'display_structure_inc.php' );
$_REQUEST['page'] = 'Welcome';
$pc = $_REQUEST['post_code'];
$_REQUEST['page'] = 'ApplyPCX';
} else if ( strlen( $pc ) > 7 ) {
$_REQUEST['page'] = 'ApplyPCX';
} else if ( strlen( $pc ) == 7 ) {
$result = $gBitSystem->mDb->getRow( $query, $bindVars );
if( $result and isset ($_REQUEST['submit_x']) ) {
$msg .= "Website Loan Application Form". "\n";
$msg .= "=============================". "\n";
$msg .= "LOAN OR PRODUCT DETAILS SELECTED". "\n";
$msg .= "================================". "\n";
$msg .= "Amount : ". $_REQUEST['amountselect']. "\n";
$msg .= "Term : ". $_REQUEST['termselect']. "\n";
if( isset ($_REQUEST['product1']) ) { $msg .= "Sofas : ". $_REQUEST['product1']. "\n"; }
if( isset ($_REQUEST['product2']) ) { $msg .= "Beds : ". $_REQUEST['product2']. "\n"; }
if( isset ($_REQUEST['product3']) ) { $msg .= "Blinds : ". $_REQUEST['product3']. "\n"; }
if( isset ($_REQUEST['product4']) ) { $msg .= "White : ". $_REQUEST['product4']. "\n"; }
$msg .= "APPLICANT". "\n";
$msg .= "=========". "\n";
$msg .= "Name : {$_REQUEST['title']} {$_REQUEST['first']} {$_REQUEST['last']}". "\n";
$msg .= "DOB : ". $_REQUEST['dob']. "\n";
$msg .= "Name : {$_REQUEST['ptitle']} {$_REQUEST['pfirst']} {$_REQUEST['plast']}". "\n";
$msg .= "DOB : ". $_REQUEST['pdob']. "\n";
$msg .= $_REQUEST['number']. "\n";
$msg .= $_REQUEST['address1']. "\n";
$msg .= $_REQUEST['address2']. "\n";
$msg .= $_REQUEST['town']. "\n";
$msg .= $_REQUEST['county']. "\n";
$msg .= $pch. " ". $pct. "\n";
$msg .= "Years at this address: ". $_REQUEST['howlong']. "\n";
if ($_REQUEST['howlong'] != 'over 5') {
$msg .= "PREVIOUS ADDRESS". "\n";
$msg .= "================". "\n";
$msg .= $_REQUEST['pnumber']. "\n";
$msg .= $_REQUEST['paddress1']. "\n";
$msg .= $_REQUEST['paddress2']. "\n";
$msg .= $_REQUEST['ptown']. "\n";
$msg .= $_REQUEST['pcounty']. "\n";
$msg .= $_REQUEST['ppost_code']. "\n";
$msg .= "Years at this address: ". $_REQUEST['phowlong']. "\n";
$msg .= "CONTACT INFORMATION". "\n";
$msg .= "===================". "\n";
$msg .= "Telephone: ". $_REQUEST['telephone']. "\n";
$msg .= "Email: ". $_REQUEST['email']. "\n";
if( isset ($_REQUEST['consent']) ) { $msg .= "Consent to credit search.\n"; }
$msg .= "FEED BACK". "\n";
$msg .= "=========". "\n";
$msg .= "I found out about Estone Personal Credit here: ". $_REQUEST['feedback']. "\n";
$msg .= "or here: ". $_REQUEST['feedback2']. "\n";
$mailfrom = "{ $_REQUEST['first']} { $_REQUEST['last']} <epc@rdm2.co.uk> ";
$mailsubject = "[EPC] Website Enquiry - {$_REQUEST['first']} {$_REQUEST['last']}";
mail('charlotte@estonepersonalcredit.co.uk', $mailsubject, $msg, "From: ". $mailfrom. "\r\nContent-type: text/plain;charset=utf-8\r\n");
mail('epc@rainbowdigitalmedia.org.uk', $mailsubject, $msg, "From: ". $mailfrom. "\r\nContent-type: text/plain;charset=utf-8\r\n");
$_REQUEST['page'] = 'ApplyOK';
$_REQUEST['page'] = 'ApplyPC';
$wikiHome = $gBitSystem->getConfig( "wiki_home_page", 'HomePage' );
if( !($gHome->pageExists( $wikiHome ) ) ) {
'title' => ( isset ( $wikiHome ) ? $wikiHome : 'HomePage' ),
'edit' => 'Welcome to '. ( $gBitSystem->getConfig( 'site_title', 'our site' ) ) );
$gHome->store( $homeHash );
include( WIKI_PKG_PATH. 'lookup_page_inc.php' );
include( WIKI_PKG_PATH. 'display_bitpage_inc.php' );
|