add a test build pate to the website, pointing to the automated hourly builds

for #50
This commit is contained in:
Jon Atkins
2013-04-30 03:20:26 +01:00
parent 5a5e6b9850
commit 51c17daf53
5 changed files with 168 additions and 91 deletions

View File

@ -0,0 +1,32 @@
<?php
function loadUserScriptHeader($path)
{
$result = Array();
$f = fopen ( $path, "rt" );
while ( ( $line = fgets ( $f ) ) !== FALSE )
{
if ( preg_match ( '#//[ \\t]*==/UserScript==#', $line ) )
break;
$matches = Array();
if ( preg_match ( '#^//[ \\t]*(@[a-zA-Z0-9]+)[ \\t]+(.*)$#', $line, $matches ) )
{
$name = $matches[1];
$value = $matches[2];
if ( ! array_key_exists ( $name, $result ) )
{
$result[$name] = $value;
}
}
}
fclose ( $f );
return $result;
}
?>