示例#1
0
} else {
    ?>
				<legend><?php 
    echo $locale['not_found'];
    ?>
</legend>
			<?php 
}
?>


	  </div>
  </div>

<?php 
addFooter($locale);
?>
	<script>
		(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
		(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
		})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

		ga('create', 'UA-7853765-8', 'auto');
		ga('send', 'pageview');

	  $(document).ready(function() {
		    $("div.bhoechie-tab-menu>div.list-group>a").click(function(e) {
		        e.preventDefault();
		        $(this).siblings('a.active').removeClass("active");
		        $(this).addClass("active");
示例#2
0
    }
    openChapter($benchFile, $key, "Cleanup");
    runCmd($ZPOOL . " " . $ZPOOL_DESTROY_CMD, $benchFile);
    runCmd("echo \"done \" && date", $benchFile);
    closeChapter($benchFile);
    addSubFooter($benchFile);
    fclose($benchFile);
    addIndexLink($indexFile, $i . ". Benchmark:", $poolCmds, $key . "/result.html");
}
fwrite($indexFile, "</dl>\n");
closeChapter($indexFile);
openChapter($indexFile, "Index", "Benchmark Matrix");
createTestMatrix($indexFile);
createBoonieoutput($indexFile);
closeChapter($indexFile);
addFooter($indexFile);
fclose($indexFile);
function checkTools()
{
    global $TOOLS;
}
function getDisks()
{
    global $DISK_LIST_CMD;
    $output = shell_exec($DISK_LIST_CMD);
    return split("\n", trim($output));
}
function runBoonie($benchFile, $key)
{
    global $TOP, $HOSTNAME, $BOONIE;
    openChapter($benchFile, $key, "Boonie");
示例#3
0
$xmlHandle = fopen($fname, "w");
//download data
//download_data("http://talkingpointsmemo.com/images/","bernanke-askance-large.jpg","");
download_data($webDirectory, $precinctsFile, $localDirectory);
download_data($webDirectory, $locationsFile, $localDirectory);
download_data($webDirectory, $segmentsFile, $localDirectory);
//Add contents to feed.
$contents = addHeader($dateArray);
fwrite($xmlHandle, $contents);
$contents = addPrecincts(file_get_contents($localDirectory . $precinctsFile));
fwrite($xmlHandle, $contents);
$contents = addLocations(file_get_contents($localDirectory . $locationsFile));
fwrite($xmlHandle, $contents);
$contents = addSegments(file_get_contents($localDirectory . $segmentsFile), $xmlHandle);
fwrite($xmlHandle, $contents);
$contents = addFooter();
fwrite($xmlHandle, $contents);
zip_file($fname, $fnameZip);
if ($autoFTPupload) {
    post_file($ftp_directory . $fnameZipND, $fnameZip, $ftp_server, $ftp_user, $ftp_pass);
}
addLogMessage("DONE!");
//Close handles
fclose($logHandle);
fclose($xmlHandle);
/**
 * Download the data. Put in local directory
 * See decriptions of inputs above 
 */
function download_data($webDirectory, $dataFileName, $localDirectory)
{