-
Notifications
You must be signed in to change notification settings - Fork 5
/
header.php
executable file
·180 lines (166 loc) · 8.75 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
// etag support
// lame, but works... haha
$lastModified=filemtime(__FILE__);
$etagFile = md5_file(__FILE__);
$ifModifiedSince=(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : false);
$etagHeader=(isset($_SERVER['HTTP_IF_NONE_MATCH']) ? trim($_SERVER['HTTP_IF_NONE_MATCH']) : false);
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $lastModified)." GMT");
header("Etag: $etagFile");
header('Cache-Control: public');
if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])==$lastModified || $etagHeader == $etagFile) {
header("HTTP/1.1 304 Not Modified");
exit;
}
?>
<?php include('functions.php'); ?>
<?php
$filePrepender = (substr_count($_SERVER['SCRIPT_NAME'], '/') > 1) ? "../" : "";
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
// set up the page titles
$title = "Enterprise CDN - Performance and reliability at a third of the cost | MaxCDN";
$meta_desc = "An enterprise content delivery network with high reliability and performance without the cost. Features not provided by other CDNs. See why we're different.";
switch($_SERVER['SCRIPT_NAME']) {
case '/pricing/index.php':
$title = "Global Flat Rate Pricing by MaxCDN. Prices from 5¢ globally.";
$meta_desc = "Simple enterprise pricing. Don't pay different prices for different regions. Pay one global flat rate for the entire world. And still get enterprise reliability and performance.";
break;
case '/success/index.php':
$title = "MaxCDN Enterprise - Thank You!";
break;
}
// don't index these pages
if ($_SERVER['SCRIPT_NAME'] === '/success/index.php' || $_SERVER['SCRIPT_NAME'] === 'high-volume-cdn.php') {
echo '<meta name="robots" content="noindex,nofollow" />';
}
?>
<title><?php echo $title; ?></title>
<meta name="description" content="<?php echo $meta_desc; ?>"/>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="<?php echo $filePrepender; ?>css/styles.css?q=<?=getMD5Hash('css/styles.css')?>" media="all">
<link rel="stylesheet" type="text/css" href="<?php echo $filePrepender; ?>css/jquery.fancybox.css" media="all">
<link rel="stylesheet" type="text/css" href="<?php echo $filePrepender; ?>css/form.css" media="all">
<!-- <link rel="stylesheet" href="//maxcdn.com/assets/olark/olark.css"> -->
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="prefetch" href="https://enterprise.maxcdn.com/pricing/" />
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script type="text/javascript" src="js/PIE.js"></script>
<link rel="stylesheet" type="text/css" href="css/ie.css" media="all">
<![endif]-->
<script type="text/javascript">var _kmq = _kmq || [];
var _kmk = _kmk || '8521c9125b22f8dc648d1abbb95e84667d89841e';
function _kms(u){
setTimeout(function(){
var d = document, f = d.getElementsByTagName('script')[0],
s = d.createElement('script');
s.type = 'text/javascript'; s.async = true; s.src = u;
f.parentNode.insertBefore(s, f);
}, 1);
}
_kms('//i.kissmetrics.com/i.js');
_kms('//doug1izaerwt3.cloudfront.net/' + _kmk + '.1.js');
</script>
<!-- <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script> -->
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//cdn.optimizely.com/js/140761619.js"></script>
<script async src="//13708.tctm.co/t.js"></script>
</head>
<body>
<!-- netdna merge notification -->
<div class="top-notification hidden">
<i class="icon-exclamation-sign"></i> <strong>Welcome:</strong> Looks unfamiliar? NetDNA is now MaxCDN Enterprise. <a target="_blank" href="http://blog.maxcdn.com/netdna-maxcdn-enterprise/">Read more here <i class="icon-arrow-right"></i></a>
</div>
<!-- Orange right slider -->
<div class="orange-slider">
<div class="icons">
<a id="questionbox-side-chatbutton" href="#chat"><i class="fa fa-comments"></i></a>
<a id="questionbox-side-phonebutton" href="#phone"><i class="fa fa-phone"></i></a>
<a id="questionbox-side-emailbutton" href="#email"><i class="fa fa-envelope-o"></i></a>
</div>
<div class="text alignleft">QUESTIONS?</div>
</div>
<div class="slider-content hidden">
<div class="slider-chat hidden">
<h2 class="no-bottom-space textcenter">LIVE CHAT</h2>
<h3 class="no-top-space no-bottom-space textcenter orange-text">AVAILABLE 24/7</h3>
<p class="textcenter">We're here to answer your questions. From the simple to the hard. Just ask us!</p>
<div class="textcenter">
<a id="questionbox-side-chatnowbutton" href="#" onclick="return startWidget('chat');" class="button orange textcenter">CHAT NOW</a>
</div>
</div>
<div class="slider-phone hidden">
<h2 class="no-bottom-space textcenter">TALK TO US</h2>
<h3 class="no-top-space no-bottom-space textcenter orange-text">AVAILABLE 24/7</h3>
<p class="textcenter">
Want to speak to someone? We're here 24/7 to answer any questions. Just call!<br/><br/>
<span class="large"><strong><span class="phone-number">1 (877) 629-2361</span></strong></span>
</p>
</div>
<div class="slider-email hidden">
<form id="form-contact-orange-slider-<?php echo getPageSlug(); ?>" method="post" enctype="multipart/form-data" action="https://forms.hubspot.com/uploads/form/v2/394224/2e282a6e-b85b-4feb-b58d-01b8925bcc1b" class="standard-form">
<input name="leadsource" type="hidden" value="MaxCDN.com">
<input name="lead_source_detail__c" type="hidden" value="Enterprise Sidebar Contact Form">
<input type="hidden" name="lpId" value="-1" />
<input type="hidden" name="subId" value="127" />
<input type="hidden" name="kw" value="" />
<input type="hidden" name="cr" value="" />
<input type="hidden" name="searchstr" value="" />
<input name="content__c" type='text' value="" class="hidden" />
<input type="hidden" name="_mkt_disp" value="return" />
<input type="hidden" name="_mkt_trk" value="" />
<input type="hidden" name="lpurl" value="http://resources.netdna.com/EnterpriseMaxCDNSideBarForm_EnterpriseMaxCDN_MaxCDNContactUs.html?cr={creative}&kw={keyword}" />
<input type="hidden" name="formid" value="113" />
<input type="hidden" name="returnURL" value="https://enterprise.maxcdn.com/success/" />
<input type="hidden" name="retURL" value="https://enterprise.maxcdn.com/success/" />
<input name="contact_form__c" type='hidden' value="<?php echo getURL(); ?>" />
<div class="column sixty">
<div class="padding">
<h2 class="no-bottom-space">TALK TO US</h2>
<ul>
<li>
<label for="FirstName">First Name <span class="orange-text">*</span></label>
<input class="required" name="firstname" pattern="^\w+$" type="text" tabindex="100" title="Your first name is required." x-moz-errormessage="Please Enter Your First Name" required>
<div class="clearfix"></div>
</li>
<li>
<label for="LastName">Last Name <span class="orange-text">*</span></label>
<input class="required" name="lastname" pattern="^\w+$" type="text" tabindex="101" title="Your last name is required." x-moz-errormessage="Please Enter Your Last Name" required>
<div class="clearfix"></div>
</li>
<li>
<label for="Email">Email Address <span class="orange-text">*</span></label>
<input name="email" class="required" type="email" tabindex="102" title="A valid email address is required." x-moz-errormessage="Please Enter Your Valid Email Address" required>
<div class="clearfix"></div>
</li>
<li>
<label for="Phone">Phone Number</label>
<input type="phone" tabindex="103" name="phone" />
<div class="clearfix"></div>
</li>
<li>
<label for="Website">Website <span class="orange-text">*</span></label>
<input name="website" class="required" type="text" title="Please enter a Valid URL" x-moz-errormessage="Please Enter Your Valid Website URL" tabindex="104" pattern="^(https?:\/\/)?(www\.)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.-]*)*\/?$" required>
<div class="clearfix"></div>
</li>
</ul>
</div>
</div>
<div class="column fourty last">
<div class="padding">
<label for="text" class="textarea">How can we help you? <span class="orange-text">*</span></label>
<textarea class="required" tabindex="106" name="contact_form_message__c"></textarea>
<div class="textright">
<input id="talkformsend" tabindex="107" type="submit" class="button orange" value="SEND" />
</div>
</div>
</div>
</form>
<div class="clearfix"></div>
</div>
</div>