Coloring of bibtex entry performed by the php Generic Syntax Highlighter (GeSHi).
$found = false; $file = "./bibliography.data"; $fp = fopen($file, "r"); while ( $source = fgets($fp, 1000) ) { $array = explode ("\t", $source); if (isset ($array[1])) { if (!strcmp ($array[0], $_GET["id"])) { $found = true; $bibentry = preg_split ("/[,]+/", $array[1]); ## Split string by commas $new_bibentry = implode (",\n", $bibentry); ## Glue back the string with new lines $geshi = new GeSHi ($new_bibentry, $language); echo $geshi -> parse_code(); } } } if (!$found) { print "Sorry, but that bibliography entry was not found.
"; } ?> List of publications