website - load mobile .apk version, and embedded IITC version, dynamically - ensures the data remains up to date, even for the 'test builds' page
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
<?php
|
||||
|
||||
function loadUserScriptHeader($path)
|
||||
function loadUserScriptHeader($file)
|
||||
{
|
||||
$result = Array();
|
||||
|
||||
$f = fopen ( $path, "rt" );
|
||||
while ( ( $line = fgets ( $f ) ) !== FALSE )
|
||||
if ( is_string($file) )
|
||||
$file = fopen ( $file, "rt" );
|
||||
# else assume it's already a readable stream
|
||||
|
||||
while ( ( $line = fgets ( $file ) ) !== FALSE )
|
||||
{
|
||||
if ( preg_match ( '#//[ \\t]*==/UserScript==#', $line ) )
|
||||
break;
|
||||
|
Reference in New Issue
Block a user