root / docs / www / colonyscout / index.php @ f59acf11
History | View | Annotate | Download (2.67 KB)
1 |
<?php
|
---|---|
2 |
$cacheFile="cache/index.html"; |
3 |
if (file_exists($cacheFile)) //we can read this cache file back reduce database load |
4 |
{ |
5 |
header("Content-Type: text/html"); |
6 |
readfile($cacheFile); |
7 |
exit;
|
8 |
} else {
|
9 |
ob_start(); //start buffering so we can cache for future accesses
|
10 |
} |
11 |
|
12 |
?>
|
13 |
|
14 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
15 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> |
16 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
17 |
<meta name="google-site-verification" content="hwSOLj8uDUaKyOjQ4eAfxBHhnmCH0C-tS5hlC-wk0lw" /> |
18 |
<meta name="description" content="A low cost, versatile research platform for autonomous systems in collaborative robotics"> |
19 |
<meta name="keywords" content="Scout, robotics, Carnegie Mellon University, autonomous, engineer"> |
20 |
|
21 |
<?php include("header.php"); ?> |
22 |
<script src="Cambria_400.font.js" type="text/javascript"></script> |
23 |
<script type="text/javascript"> |
24 |
Cufon.replace('#hero-banner-text', { fontFamily:'Cambria', textShadow:'#CCCCCC 1px 1px' });
|
25 |
</script>
|
26 |
<title>Home | ColonyScout.com</title> |
27 |
|
28 |
</head>
|
29 |
<body bgcolor="#eeeeee"> |
30 |
|
31 |
<div id="general"> |
32 |
<?php include("nav.php"); ?> |
33 |
<div id="body"> |
34 |
<div id="body-boxes"> |
35 |
<div class="box-row"> |
36 |
<div id="hero-banner"> |
37 |
<div id="hero-banner-text">A low cost, versatile research platform for autonomous systems in collaborative robotics |
38 |
<br/><br/> |
39 |
<a href="gallery.php" class="small">See it in action >></a> |
40 |
</div>
|
41 |
</div>
|
42 |
<div id="hero-banner-side"></div> |
43 |
</div>
|
44 |
|
45 |
<div class="box-row topmargin"> |
46 |
<div class="white-top"></div> |
47 |
<div class="white-body text-box"> |
48 |
<div id="twitter-status"> |
49 |
<span class="newest"/><small>09.06.2010</small><br/>We're on @BotJunkie! @roboclub Colony Scout Offers Cute And Useful Swarm Robots <a href="http://bit.ly/aSnw7J">http://bit.ly/aSnw7J</a> #robotics #scout</span> |
50 |
<p><small>08.14.2010</small><br/>Scoutfly Board Completed - The Scoutfly board has finally been completed. We have done a lot of simplifying... <a href="http://tumblr.com/xjefqhtis">http://tumblr.com/xjefqhtis</a></p> |
51 |
</div>
|
52 |
|
53 |
<div id="twitter-box"> |
54 |
<a href="http://www.twitter.com/colonyscout/" title="Colony Scout Twitter Feed"> |
55 |
<img src="images/team_twitter.jpg" alt="Colony Scout Twitter Feed"/></a></div> |
56 |
<div class="bot-gray"></div> |
57 |
</div>
|
58 |
<div class="white-bottom"></div> |
59 |
</div>
|
60 |
|
61 |
</div>
|
62 |
</div> <!--BODY!--> |
63 |
|
64 |
|
65 |
<?php include("footer.php"); ?> |
66 |
|
67 |
</div><!--GENERAL!--> |
68 |
|
69 |
</body></html> |
70 |
<?php
|
71 |
$buffer = ob_get_contents();
|
72 |
ob_end_flush(); |
73 |
$fp = fopen($cacheFile, "w"); fwrite($fp, $buffer); fclose($fp); |
74 |
?>
|