here.'; break; case 'googleapps': $template_header = 'header/googleapps.html'; $template_right = 'right/googleapps.html'; $template_left = 'left/googleapps.html'; $name = 'GoogleApps'; $alias = 'GoogleApps'; $phone = 'Questions? Call us at 1-866-572-7356'; break; case 'googleappsquote': $template_header = 'header/googleappsquote.html'; $template_right = 'right/googleappsquote.html'; $template_left = 'left/googleappsquote.html'; $name = 'GoogleAppsQuote'; $alias = 'GoogleApps'; $lead_source = 'Partner Program'; $source_detail = 'Google Apps Quote'; $sfdc_campaign_id= '70160000000EDne'; $phone = 'Questions? Call us at 1-866-572-7356'; break; case 'sapstreamwork': $template_header = 'header/sap.html'; $template_right = 'right/sap.html'; $template_left = 'left/sap.html'; $name = 'sapstreamwork'; $alias = 'SAPStreamWork'; $lead_source = 'Partner Program'; $source_detail = 'SAP StreamWork'; $sfdc_campaign_id= '70160000000EDne'; $phone = 'Questions? Call us at 1-877-729-4269'; break; case 'visasavingsedge': $template_header = 'header/visasavingsedge.html'; $template_right = 'right/visasavingsedge.html'; $template_left = 'left/visasavingsedge.html'; $name = 'visasavingsedge'; $alias = 'VisaSavingsEdge'; $lead_source = 'Partner Program'; $source_detail = 'Visa SavingsEdge'; $sfdc_campaign_id= '70160000000EDne'; $phone = 'Questions? Call us at 1-877-729-4269'; break; case 'sugarcrm': $template_header = 'header/sugarcrm.html'; $template_right = 'right/sugarcrm.html'; $template_left = 'left/sugarcrm.html'; $name = 'sugarcrm'; $alias = 'SugarCRM'; $lead_source = 'Partner Program'; $source_detail = 'SugarCRM'; $sfdc_campaign_id= '70160000000EGyB'; $phone = 'Questions? Call us at 1-877-729-4269'; break; case 'netsuite': $template_header = 'header/netsuite.html'; $template_right = 'right/netsuite.html'; $template_left = 'left/netsuite.html'; $name = 'netsuite'; $alias = 'NetSuite'; $lead_source = 'Partner Program'; $source_detail = 'NetSuite'; $sfdc_campaign_id= '70160000000EHBe'; $phone = 'Questions? Call us at 1-866-428-7215'; break; case 'quickoffice': $template_header = 'header/quickoffice.html'; $template_right = 'right/quickoffice.html'; $template_left = 'left/quickoffice.html'; $name = 'quickoffice'; $alias = 'Quickoffice'; $lead_source = 'Partner Program'; $source_detail = 'Quickoffice'; $sfdc_campaign_id= '70160000000EHBe'; $phone = 'Questions? Call us at 1-877-729-4269'; break; case 'mobileiron': $template_header = 'header/mobileiron.html'; $template_right = 'right/mobileiron.html'; $template_left = 'left/mobileiron.html'; $name = 'MobileIron'; $alias = 'MobileIron'; $phone = 'Questions? Call us at 1-866-428-7215'; break; case 'rimpcmall': $template_header = 'header/rimpcmall.html'; $template_right = 'right/rimpcmall.html'; $template_left = 'left/rimpcmall.html'; $name = 'PC Mall'; $alias = 'PCMall'; $phone = 'Questions? Call us at 1-866-428-7215'; break; case 'thankyourimpcmall': $template_header = 'header/rimpcmall.html'; $template_right = 'right/thankyourimpcmall.html'; $template_left = 'left/rimpcmall.html'; $name = 'PC Mall'; $alias = 'PCMall'; $phone = 'Questions? Call us at 1-866-428-7215'; break; case 'pcmalloffer': $template_header = 'header/pcmalloffer.html'; $template_right = 'right/pcmalloffer.html'; $template_left = 'left/pcmalloffer.html'; $name = 'PC Mall'; $alias = 'PCMallOffer'; $phone = 'Questions? Call us at 1-866-428-7215'; break; case 'thankyoupcmalloffer': $template_header = 'header/pcmalloffer.html'; $template_right = 'right/thankyoupcmalloffer.html'; $template_left = 'left/pcmalloffer.html'; $name = 'PC Mall'; $alias = 'PCMallOffer'; $phone = 'Questions? Call us at 1-866-428-7215'; break; case 'pcmall': header('Location: http://sites.box.net/cref/pcmall'); exit; break; case 'amex': $template_header = 'header/amex.html'; $template_right = 'right/amex.html'; $template_left = 'left/amex.html'; $name = 'AMEX'; $alias = 'AMEX'; $phone = 'Questions? Call us at 1-866-428-7215'; break; default: header ('Location: http://www.box.net/'); exit; break; } $wrapper_html = file_get_contents($template_wrapper); $header_html = file_get_contents(is_null($template_header) ? "header/default.html" : $template_header); $left_html = file_get_contents(is_null($template_left) ? "left/default.html" : $template_left); $right_html = file_get_contents(is_null($template_right) ? "right/default.html" : $template_right); $search = array('{alias}', '{header_html}', '{left_html}', '{right_html}', '{lead_source}', '{source_detail}', '{sfdc_campaign_id}', '{phone}'); $replace = array($alias, $header_html, $left_html, $right_html, $lead_source, $source_detail, $sfdc_campaign_id, $phone); $html = str_replace($search, $replace, $wrapper_html); echo str_replace('{name}', $name, $html); ?>