<?php
session_name('AR_DIGITAL');
session_start();
$dealerInfo = array(
'abctradeup.com' => array(
'name' => 'ABC Chrysler',
'address' => '1234 Main Street, Anytown',
'phone' => '(000) 000-0000',
'website' => 'www.abcchrysler.com',
'emails' => array('dave@absoluteresults.com'),
'area' => 'prairie',
'eventID' => '816',
'eventDate' => 'July 5 & 6',
'preapproval' => 'https://www.dealertrack.ca/DTCanada/WSPlus/MainScreen/DealerApplicationForm.aspx?dealerID=C01434&WebSiteID=203&TPGISConfirmID=5000019&language=en-ca&RedirectionURL=http://www.pembinachrysler.com&Asset=AU&httpRef=http://www.pembinachrysler.com/index.htm',
'chatCode' => '20170',
'gAnalytics' => "",
'campaign' => 'Digital Marketing RSVP'),
'777tradeup.com'=>array(
'name'=>'Triple Seven Chrysler',
'address'=>'700 Broad Street, Regina',
'phone'=>'306-522-2222',
'website'=>'www.triplesevenchrysler.ca',
'emails' => array('smm@triplesevenchrysler.ca'),
'area' => 'prairie',
'eventID'=>'9177',
'eventDate'=>'July 12-31',
'preapproval' => 'http://triplesevenchrysler.ca/credit/request.php',
'chatCode' => '20174',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-3', '777tradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP'),
'autoclearingtradeup.com'=>array(
'name'=>'Auto Clearing Chrysler',
'address'=>'331 Circle Drive West , Saskatoon',
'phone'=>'306-244-2186',
'website'=>'www.autoclearing.com',
'emails' => array('psavoie@autoclearing.com'),
'area' => 'prairie',
'eventID'=>'9172',
'eventDate'=>'July 12-31',
'preapproval' => 'http://www.autoclearing.com/fresh-start-credit.htm',
'chatCode' => '20169',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-4', 'autoclearingtradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP'),
'dodgecitytradeup.com'=>array(
'name'=>'Dodge City Auto',
'address'=>'2200 Eighth Street East, Saskatoon',
'phone'=>'306-374-2120',
'website'=>'www.dodgecityauto.com',
'emails' => array('kevins@dodgecityauto.com'),
'area' => 'prairie',
'eventID'=>'9173',
'eventDate'=>'July 12-31',
'preapproval' => 'http://www.dodgecityautodealer.com/financing/application.htm',
'chatCode' => '20170',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-5', 'dodgecitytradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP'),
'pembinatradeup.com'=>array(
'name'=>'Pembina Chrysler',
'address'=>'300 Pembina Highway, Winnipeg',
'phone'=>'204-284-6650',
'website'=>'pembinachrysler.com',
'emails' => array('rwasserberg@pembcorp.com'),
'area' => 'prairie',
'eventID'=>'9174',
'eventDate'=>'July 12-31',
'preapproval' => 'https://www.dealertrack.ca/DTCanada/WSPlus/MainScreen/DealerApplicationForm.aspx?dealerID=C01434&WebSiteID=203&TPGISConfirmID=5000019&language=en-ca&RedirectionURL=http://www.pembinachrysler.com&Asset=AU&httpRef=http://www.pembinachrysler.com/index.htm',
'chatCode' => '20140',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-6', 'pembinatradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP'),
'riversidetradeup.com'=>array(
'name'=>'Riverside Dodge',
'address'=>'160-38th Street East, Prince Albert',
'phone'=>'306-764-4217',
'website'=>'www.riversidedodge.ca',
'emails' => array('riversideth@sasktel.net'),
'area' => 'prairie',
'eventID'=>'9175',
'eventDate'=>'July 12-31',
'preapproval' => 'http://www.riversidedodge.ca/financing/index.htm',
'chatCode' => '20172',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-7', 'riversidetradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP'),
'scottcampbelltradeup.com'=>array(
'name'=>'Scott Campbell Dodge',
'address'=>'3042 99 St Highway 4 North, North Battleford',
'phone'=>'306-445-6640',
'website'=>'www.scottcampbelldodge.ca',
'emails' => array('Tisha@scottcampbelldodge.com','scott@scottcampbelldodge.com','salesmgr@scottcampbelldodge.com'),
'area' => 'prairie',
'eventID'=>'9176',
'eventDate'=>'July 12-31',
'preapproval' => 'http://www.scottcampbelldodge.ca/financing/index.htm',
'chatCode' => '20173',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-8', 'scottcampbelltradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP'),
'kawarthatradeup.com'=>array(
'name'=>'Kawartha Chrysler',
'address'=>'1515 Lansdowne Street W, Peterborough',
'phone'=>'705-741-5766',
'website'=>'www.kawarthachrysler.com',
'emails' => array('kevin@kawarthachrysler.com'),
'area' => 'on',
'eventID'=>'9178',
'eventDate'=>'July 12-30',
'preapproval' => 'http://www.kawarthachryslerjeepdodge.com/financing/application.htm',
'chatCode' => '20171',
'gAnalytics' => "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42318547-2', 'kawarthatradeup.com');
ga('send', 'pageview');
</script>",
'campaign' => 'Digital Marketing RSVP')
); // 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'] = strtolower(implode('.',$domainArr));
if(!isset($dealerInfo[$_SESSION['registration']['selectedDealer']]))
{
echo 'Invalid Web Link';
exit;
}
}
if($_SERVER['HTTP_HOST'] == 'ar.absoluteresults.com') $_SESSION['registration']['selectedDealer'] = 'abctradeup.com';
//unset($_SESSION['offers']);
if(!isset($_SESSION['offers']))
{
$_SESSION['offers'] = array('save35' => array('description' => 'Save 35%',
'color' => '#163359'),
'freegas' => array('description' => 'Win Free Gas',
'color' => '#591818'),
'payment' => array('description' => 'Match Your Payment',
'color' => '#455a29'),
'appraisal' => array('description' => 'What\'s my Vehicle Worth?',
'color' => '#184e5a'),
'payoff' => array('description' => 'Pay Off Your Vehicle',
'color' => '#24205a'),
'preapprove'=> array('description' => 'Get Pre-Approved',
'color' => '#3f4b5a'),
'rodeo' => array('description' => 'Win Rodeo Tickets',
'color' => '#7f772f'));
}
$currentPage = str_replace('Email','',array_shift(explode('.',basename($_SERVER['PHP_SELF']))));
if(!array_key_exists($currentPage,$_SESSION['offers'])) $currentPage = 'save35a';
foreach($_SESSION['offers'] as $offer => $info)
{
if($offer != $currentPage && !isset($_SESSION['offers'][$offer]['complete']))
{
$nextOffer = $offer;
break;
}
}
//if($nextOffer == "") $nextOffer = 'save35';
$area = $dealerInfo[$_SESSION['registration']['selectedDealer']]['area'];
if($area == "") $area = 'bc';
$daaVehicles['bc'] = array('ram' => array('description' => '2013 Ram 1500 SXT<br>Quad Cab 4x4',
'payment' => 143),
'caravan' => array('description' => '2013 Grand Caravan<br>Ultimate Package',
'payment' => 149),
'journey' => array('description' => '2013 Journey<br>Ultimate Package',
'payment' => 149),
'200' => array('description' => '2013 Chrysler 200<br> LX',
'payment' => 96),
'dart' => array('description' => '2013 Dart SE',
'payment' => 94),
'wrangler' => array('description' => '2013 Wrangler<br>Sport 4x4',
'payment' => 112));
$daaVehicles['prairie'] = array('ram' => array('description' => '2013 Ram 1500 SXT<br>Quad Cab 4x4',
'payment' => 138),
'caravan' => array('description' => '2013 Grand Caravan<br>Ultimate Package',
'payment' => 143),
'journey' => array('description' => '2013 Journey<br>Ultimate Package',
'payment' => 140),
'200' => array('description' => '2013 Chrysler 200<br> LX',
'payment' => 90),
'dart' => array('description' => '2013 Dart SE',
'payment' => 88),
'wrangler' => array('description' => '2013 Wrangler<br>Sport 4x4',
'payment' => 107));
$daaVehicles['ab'] = array('ram' => array('description' => '2013 Ram 1500 SXT<br>Quad Cab 4x4',
'payment' => 146),
'caravan' => array('description' => '2013 Grand Caravan<br>SE CVP',
'payment' => 117),
'journey' => array('description' => '2013 Journey<br>CVP',
'payment' => 116),
'200' => array('description' => '2013 Chrysler 200<br> LX',
'payment' => 99),
'dart' => array('description' => '2013 Dart SE',
'payment' => 94),
'wrangler' => array('description' => '2013 Wrangler<br>Sport 4x4',
'payment' => 117));
$daaVehicles['on'] = array('ram' => array('description' => '2013 Ram 1500 SXT<br>Quad Cab 4x4',
'payment' => 141),
'caravan' => array('description' => '2013 Grand Caravan<br>SE CVP',
'payment' => 112),
'journey' => array('description' => '2013 Journey<br>CVP',
'payment' => 112),
'200' => array('description' => '2013 Chrysler 200<br> LX',
'payment' => 96),
'wrangler' => array('description' => '2013 Wrangler<br>2DR 4x4',
'payment' => 115));
$daaVehicles['atlantic'] = array('ram' => array('description' => '2013 Ram 1500 SXT<br>Quad Cab 4x4',
'payment' => 132),
'caravan' => array('description' => '2013 Grand Caravan<br>SE CVP',
'payment' => 107),
'journey' => array('description' => '2013 Journey<br>CVP',
'payment' => 107),
'200' => array('description' => '2013 Chrysler 200<br> LX',
'payment' => 92),
'wrangler' => array('description' => '2013 Wrangler<br>2DR 4x4',
'payment' => 107));
include_once('displayUtils.php');
?>