\r\n"; } function page1() { head(); echo "
\r\n" . "Paste your rawr dump here:
\r\n" . "
\r\n" . "
\r\n" . "\r\n"; } function page2() { head(); $rawr = rawrtoarray($_POST['rawrdata']); print_r($rawr); echo "" . "" . "\r\n"; } function page3() { head(); $rawr = rawrtoarray($_POST['rawrdata']); echo "" . "" . "\r\n"; } function rawrtoarray($rawrdump) { $rawr = array(); $rows = split("\n",$rawrdump); foreach($rows as $row) { $cols = split(":",$row,2); if (count($cols) == 2) { $key = topawn(trim($cols[0])); $value = trim($cols[1]); $rawr[$key] = $value; } } return $rawr; } ?>