Project

General

Profile

Statistics
| Branch: | Revision:

colonymech / docs / www / colonyscout / sitemap.php @ f59acf11

History | View | Annotate | Download (2.02 KB)

1
<?php
2
$cacheFile="cache/sitemap.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
14
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> 
15
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>        
16
                <meta name="description" content="Sitemap"/> 
17
                <meta name="keywords" content="Sitemap Colony Scout colonyscout applications robot software"/> 
18
 
19
<?php include("header.php"); ?>
20
                <title>Sitemap | ColonyScout.com</title> 
21
 
22
</head>
23
<body bgcolor="#eeeeee"> 
24

    
25
<div id="general"> 
26
<?php include("nav.php"); ?> 
27
        <div id="body">
28
                <div id="body-boxes">
29
                        <div class="box-row" style="margin-top: 10px;">
30
                                <div class="white-top"></div>
31
                                <div class="white-body text-box">
32
                                        <h1>ColonyScout.com Sitemap</h1>
33
                                        <br/><br/>
34
                                        
35
                                        <ul>
36
                                                <li><h2><a title="<?php echo $nav_title[0];?>" rel="nofollow" href="<?php echo $nav[0];?></a></h2></li>
37
                                                <li><h2><a title="<?php echo $nav_title[1];?>" rel="nofollow" href="<?php echo $nav[1];?></a></h2></li>
38
                                                <li><h2><a title="<?php echo $nav_title[2];?>" rel="nofollow" href="<?php echo $nav[2];?></a></h2></li>
39
                                                <li><h2><a title="<?php echo $nav_title[3];?>" rel="nofollow" href="<?php echo $nav[3];?></a></h2></li>
40
                                                <li><h2><a title="<?php echo $nav_title[4];?>" rel="nofollow" href="<?php echo $nav[4];?></a></h2></li>
41
                                                <li><h2><a title="<?php echo $nav_title[5];?>" rel="nofollow" href="<?php echo $nav[5];?></a></h2></li>
42
                                        </ul>
43
                                </div>
44
                                
45
                                <div class="white-bottom"></div>
46
                        </div>                        
47
                        
48
                </div>
49
        </div> <!--BODY!--> 
50

    
51
<?php include("footer.php"); ?>
52

    
53
</div><!--GENERAL!--> 
54
 
55
</body></html>
56
<?php
57
$buffer = ob_get_contents();
58
ob_end_flush();
59
//$fp = fopen($cacheFile, "w"); fwrite($fp, $buffer); fclose($fp);
60
?>