<html><head>
<title>Google Search Results</title>
<style type="text/css">
<!--
div.content input {
    border: 1px solid #999999;
}
div.content th, div.content td {
    background: #FFFFFF url(none);
    border: none;
    overflow: hidden;
}

-->
</style>
</head>
<body id="no-ads">
<p>No longer used. Go to <a href="/search">nedmartin.org/search</a></p>

<?php
    header 
('HTTP/1.1 301 Moved Permanently');
    
header ('Location: /search');
    exit();


    
// overwrite headers with non-caching headers
    
header('ETag: "'.md5(time().$file).'"');
    
header('Last-Modified: '.gmdate('D, d M Y H:i:s'time()).' GMT');
    
header('Cache-Control: must-revalidate');
    
header('Expires: '.gmdate('D, d M Y H:i:s'time()).' GMT');

    include_once(
'../_search.inc');

    
$search search($_SERVER['REQUEST_URI'], "site");

    if(
strlen($search) > 0)
    {
        print(
'<h1>Google Search Results</h1>');
        print(
$search);
    }
    
// no results returned
    
else
    {
        print(
'
<h1>Search this site</h1>
<form method="get" action="search" title="Search this site (provided by Google)">
    <p>
        <input style="width: 88%; background: url(/_google.gif) no-repeat right" type="text" name="q" maxlength="256" value="Enter a search query" onblur="clr(this)" onfocus="clr(this)" /> 
        <input style="width: 10%" type="submit" name="sa" value="Search Site" /> 
        <input type="hidden" name="hq" value="inurl:nedmartin.org/site" />
        <input type="hidden" name="client" value="pub-3493180938736919" />
        <input type="hidden" name="forid" value="1" />

        <input type="hidden" name="ie" value="UTF-8" />
        <input type="hidden" name="oe" value="UTF-8" />
        <input type="hidden" name="cof" value="GALT:#1E78A0;GL:1;DIV:#666666;VLC:0033CC;AH:center;BGC:FFFFFF;LBGC:EEEEEE;ALC:1E78A0;LC:1E78A0;T:000000;GFNT:1E78A0;GIMP:1E78A0;FORID:1;" />
        <input type="hidden" name="hl" value="en" />
    </p>
    <p style="text-align:right"><img src="/_powered_by_google_135x35.gif" alt="Powered by Google" width="135" height="35" /> </p>
</form>'
);

        print(
'<h1>Previous Search Phrases</h1>'."\n");
        print(
'<script type="text/javascript">'."\n");
        print(
'<!--'."\n");
        print(
'    with(document)'."\n");
        print(
"    {\n");
        print(
'        writeln(\'<ul>\');'."\n");

        
// show past search results
        
$query file('_search.dat');

        for(
$ii = (count($query) - 1); $ii >= 0$ii--)
        {
            
parse_str($query[$ii], $query_values);
            print(
'        writeln(\'<li><a href="search?'.trim($query[$ii]).'" title="Search for this term">'.trim($query_values['q']).'</a></li>\');'."\n");
        }
        print(
'        writeln(\'</ul>\');'."\n");
        print(
"    }\n");
        print(
"// -->\n");
        print(
'</script>');
    }

?>
</body>
</html>
Last updated Wednesday, 10 November 2010
W3C CSS 2.0   
W3C XHTML 1.1