GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ClauseFormatter/clauses.php at master · HebrewTools/ClauseFormatter Expand file tree/ Copy pathclauses.phpMore file actions 53 lines (46 loc) · 1.03 KB / Copy pathclauses.phpFile metadata and controls53 lines (46 loc) · 1.03 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 <?php function get_book_index($name) { $fh = fopen('book_names.txt', 'r'); do { $line = explode("\t", trim(fgets($fh))); } while ($line[1] != $name && !feof($fh)); fclose($fh); if ($line[1] == $name) { return $line[0]; } else { return null; } } function get_all_books() { $fh = fopen('book_names.txt', 'r'); $books = []; while (!feof($fh)) { $line = explode("\t", trim(fgets($fh))); if (count($line) > 1) $books[$line[0]] = $line[1]; } fclose($fh); return $books; } function get_text($book, $schap, $sverse, $echap, $everse) { $text = []; $fh = fopen('wlc_utf8.txt', 'r'); do { $line = explode("\t", fgets($fh)); } while (($line[0] != $book || $line[1] != $schap || $line[2] != $sverse) && !feof($fh)); if ($line[0] != $book) { fclose($fh); return null; } $i = 0; while ($line[1] <= $echap && ($line[1] < $echap || $line[2] <= $everse) && !feof($fh) && $i < 100) { $text[] = ['verse' => $line[2], 'text' => $line[5]]; $line = explode("\t", fgets($fh)); } fclose($fh); return $text; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |