MSV FM

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

<?php
session_name('AR_DIGITAL');
session_start();

$dealerInfo = array(

'abcaudisalesevent.com' => array(
									'name' => 'ABC Audi', 
									'address' => '1234 Main Street, Anytown',
									'phone' => '(000) 000-0000',				
									'website' => 'www.abcaudi.com',
									'emails' => array('dave@absoluteresults.com'),
									'eventID' => '816',
									'eventDate' => '27 au 30 septembre', // Date must be in French format
									'voucher' => 'Audi', // Name the brand
									'brand' => 'Audi', //SETS AudiTitle.png as title and AudiBG.jpg as background
									'bilingual' => 'www.abcaudisaleseventeng.com', // SETS to ENGLISH version url
									'campaign' => 'RSVP Vente Privée AUDI'),
									
'ventepriveechezaudilauzon.com'=>array( 
									'name' => 'Audi Lauzon', 
									'address' => '2400, boul. Chomedey, Laval', 
									'phone' => '450-688-1120', 
									'website' => '', 
									'emails' => array('christian@lauzon.qc.ca'), 
									'eventID' => '10621', 
									'eventDate'=>'9 et 10 octobre', 
									'voucher' => 'Audi', //SETS AudiTitle.png as title and AudiBG.jpg as background 
									'brand' => 'Audi', 									
									//'bilingual' => '', // SETS to ENGLISH version url when applicable
									'campaign' => 'RSVP Vente Privée Audi'), 
									
'ventepriveechezaudiparkavenue.com'=>array( 
									'name' => 'Park Avenue Audi', 
									'address' => '9800, boul. Taschereau, Brossard', 
									'phone' => '450-445-4811',	
									'website' => 'parkavenueaudibrossard.com', 
									'emails' => array('david.webber@parkavenueaudi.com', 'francois.thibault@parkavenueaudi.com'), 
									'eventID' => '10624', 
									'eventDate'=>'9 et 10 octobre',  
									'voucher' => 'Audi', 
									'brand' => 'Audi', 
									'bilingual' => 'www.parkavenueaudisalesevent.com',
									'campaign' => 'RSVP Vente Privée Audi'),
									
'ventepriveechezaudiprestige.com'=>array( 
									'name' => 'Prestige Audi', 
									'address' => '5905 Trans Canada Highway, Saint-Laurent', 
									'phone' => '514-364-7777',	
									'website' => 'audiprestige.com', 
									'emails' => array('ppalmos@gabriel.ca'), 
									'eventID' => '10625', 
									'eventDate'=>'9 et 10 octobre', 
									'voucher' => 'Audi', 
									'brand' => 'Audi', 
									'bilingual' => 'www.prestigeaudisalesevent.com',
									'hideExpiry' => 'yes',
									'campaign' => 'RSVP Vente Privée Audi'),
									
'ventepriveechezaudiprestigeouest.com'=>array( 
									'name' => 'Prestige Audi (west)', 
									'address' => '4600A Boul. St-Jean, Dollard Des Ormeaux', 
									'phone' => '514-426-7777',	
									'website' => 'www.audiprestigeddo.net', 
									'emails' => array('nnitti@audiprestigeddo.com'), 
									'eventID' => '10623', 
									'eventDate'=>'9 et 10 octobre', 
									'voucher' => 'Audi', //SETS AudiTitle.png as title and AudiBG.jpg as background 
									'brand' => 'Audi', 
									'bilingual' => 'prestigeaudiwestsalesevent.com',
									'campaign' => 'RSVP Vente Privée Audi'),
									
'ventepriveechezaudistefoy.com'=>array( 
									'name' => 'Audi Ste-Foy', 
									'address' => '2834 rue Einstein, Quebec', 
									'phone' => '418-659-2834',	
									'website' => 'audiste-foy.com', 
									'emails' => array('msauvageau@audiste-foy.com'), 
									'eventID' => '10636', 
									'eventDate'=>'9 et 10 octobre', 
									'voucher' => 'Audi', 
									'brand' => 'Audi',
									'bilingual' => 'www.ventepriveechezaudistefoyeng.com',									
									'campaign' => 'RSVP Vente Privée Audi'),
									
'ventepriveechezaudiquebourg.com'=>array( 
									'name' => 'Qué-Bourg Auto Ltée(Audi)', 
									'address' => '7777,boul.Henri-Bourassa, Charlesbourg', 
									'phone' => '418-626-7777',	
									'website' => 'quebourgvw.ca', 
									'emails' => array('aboutet@quebourgauto.com'), 
									'eventID' => '10637', 
									'voucher' => 'Audi', 
									'eventDate'=>'9 et 10 octobre',  
									'brand' => 'Audi', 
									'campaign' => 'RSVP Vente Privée Audi'),
									
'ventepriveechezmarkmotors.com'=>array( 
									'name' => 'Mark Motors of Ottawa - Audi', 
									'address' => '295 West Hunt Club, Ottawa', 
									'phone' => '613.723.1221 ',	
									'website' => 'www.markmotorsofottawa.com/audi', 
									'emails' => array('prenaud@markmotorsofottawa.com'), 
									'eventID' => '10628', 
									'eventDate'=>'9 et 10 octobre', 
									'voucher' => 'Audi', 
									'hideExpiry' => 'yes',
									'brand' => 'Audi', 
									'campaign' => 'RSVP Vente Privée Audi',
									'bilingual' => 'markmotorssalesevent.com'),
									
'kiajoliettevip.com'=>array( 
									'name'=>'Kia Joliette', 
									'address'=>'851 Samuel Racine, Joliette<br>450-752-1952', 
									'website'=>'www.kiajoliette.com',
									'emails' => array('ylecours@groupedusablon.com'),
									'eventID'=>'10799', 
									'eventDate'=>'14,15 et 16 octobre',  
									'voucher' => 'no', 
									'hideExpiry' => 'yes',
									'brand' => 'KIA', 
									'blackbook' => 'no',
									'campaign' => 'RSVP Vente Privée KIA'),
									

  );	// Closing bracket
  
									   	
	if($_SERVER['HTTP_HOST'] != 'ar.absoluteresults.com')
	{
		$domainArr = explode('.',$_SERVER['HTTP_HOST']);
		while(count($domainArr) > 2) $t = array_shift($domainArr);
		$_SESSION['registration']['selectedDealer'] = implode('.',$domainArr);	  
		
		if(!isset($dealerInfo[$_SESSION['registration']['selectedDealer']]))
		{
			echo 'Invalid Web Link';
			exit;
		}
	}
	
	if($_SERVER['HTTP_HOST'] == 'ar.absoluteresults.com') $_SESSION['registration']['selectedDealer'] = 'abcaudisalesevent.com';
					 	 
	include_once('displayUtils.php');
	
?>