<?php
	/***********************************************************************************
	*   Filename    : register_error.php
	*
	*   Copyright Keysoft Pty Ltd 2009
	***********************************************************************************/

	/******************** Global Settings ********************/
	require_once '../phpobjects/common/global.php';

	/********************* Page Settings *********************/
	$gaPage['title'] = 'Petsafe.com.au';
	$gaPage['root_directory'] = '..';

    /************ Only allow non-logged in users to register 

	if ($_SESSION['LoggedIn'] == 1){
		// Redirect
		fRedirect('index.php?err_code=LoggedIn');
		fCleanup();
	}************/
	
	/********************* Page Defaults *********************/
	fDefaultParameter('err_code', $_GET, '');

	$err_code = $_GET['err_code'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<?php require '../phpobjects/templates/common/page_head.php'; ?>
</head>

<?php

require '../phpobjects/templates/common/page_header.php';
/*********************** Page Start **********************/
?>

<td valign="top">

<br/><h2 class="greenheading">New Registration: Error</h2><br/>

<div class="boldtext">There was an error during your registration process.
<?php if($err_code != '') echo '<br/><br/>Your credit card transaction failed. Reason: ' . $err_code . '.'; ?>
</div>
<br/><br/>

</td>

<?php
/************************ Page End ***********************/

require '../phpobjects/templates/common/page_footer.php';
?>

</html>
<?php fCleanup(); ?>