MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/salesevent2013/
File Upload :
Current < : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/salesevent2013/code.php

<?php
	include_once('includes.php'); 
	
	
	if(isset($_GET['submitList']))
	{
		unset($_SESSION['registration']['customer']);
		$_SESSION['registration']['customer']['code'] = strtolower($_GET['code']);
		
		
		if(isset($dealerInfo[$_SESSION['registration']['selectedDealer'] . ':' . $_SESSION['registration']['customer']['code']]))
		{
			if($_SESSION['registration']['selectedDealer'] == 'alloutclearoutevent.com' && $_SESSION['registration']['customer']['code'] == 'bustard' || $_SESSION['registration']['selectedDealer'] == 'beyourownsanta.ca' && $_SESSION['registration']['customer']['code'] == 'bustard' || $_SESSION['registration']['selectedDealer'] == 'firstbigdealevent.com' && $_SESSION['registration']['customer']['code'] == 'bustard'){
				?> location.href='bustard.php';	<?php
			} else if($_SESSION['registration']['selectedDealer'] == 'premiereventechrysler.com' && $_SESSION['registration']['customer']['code'] == 'windsor'){
				?> location.href='windsor.php';	<?php
			} else {
			?>		
			location.href='index.php';			 
			<?php
			}
		}
		else
		{
			?>
			alert('<?=$lang['validationCode']?>');	 
			<?php
		}
		
		exit;
	}
	
	unset($_SESSION['registration']['customer']);
	
	include_once('header.php'); 
?>

		<script src="scripts/ajax.js" language="javascript"></script>
		<script>			
			function submitList()
			{				
				htmlStr = 'code.php?submitList=';
				var arr = new Array('code');
				var arrRequired = new Array('code');
				for (var i = 0; i < arrRequired.length; i++) 
				{			
					if(document.getElementById(arrRequired[i]).value == "") 
					{
						alert('Please tell us your invitation code to RSVP.\nThank you.');
						return false;
					}
				}
				for (var i = 0; i < arr.length; i++) 
				{			
					var temp = '';
					if(document.getElementById(arr[i]) != undefined)  temp=encodeURIComponent(document.getElementById(arr[i]).value);
					htmlStr = htmlStr + '&' + arr[i] + '=' + temp;
				}
				//document.getElementById('submitButton').value = 'Please wait...';
				//document.getElementById('submitButton').disabled = true;
				
				ajax_do(htmlStr);
				return false;
			}		
			
			
		</script>	
	<div class="container" style="background-image:url('images/layout/transparentBG.png');padding:10px">
			<form method="POST" style="margin:0px" onSubmit="return submitList();">	
				<div class="sixteen columns" style="background-color:#bbb;">
					<div style="padding:20px">
						<center>		
							<label for="postalCode" style="font-size:1.5em;margin-bottom:10px"><?=$lang['code']?></label>
							<input type="text" id="code" name="code" style="font-size:2em">
							<input type="submit" id="submitButton" value="<?=$lang['codeBtn']?>" style="font-weight:bold;font-size:1.5em;background-color:#efd23b;width:220px;margin-top:10px">
						</center>
					</div>
				</div>
			</form>	
		</div>
<?php include_once('footer.php'); ?>