All pastes #604850 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-05 20:24 UTC
rendered paste body
<?
$handle = fopen("fixme.sav", "r");
$content = fread($handle, filesize("fixme.sav"));
$matchcount = substr_count($content, "\x0f\x5c\x87\x96");
$i = 0;
$ui_stringarray = array();
while($i < $matchcount)
{
	$pos += 4;
	$pos = strpos($content, "\x0f\x5c\x87\x96", $pos);
	$ui_string = substr($content, $pos + 4, (strpos($content, "\x00", $pos) - $pos) - 4);
	//echo("$ui_string\n");
	$ui_stringarray[$i] = $ui_string;
	$i++;
}
print_r($ui_stringarray);
fclose($handle);
?>