Publications by author

[php]

$authorcode=$_GET[“authorname”];

$str = file_get_contents(‘../../bib/transducens_bibtex/dlsicodes2names.txt’);
$arr = unserialize($str);

echo “<script>”;
echo “function myFunction(){“;
echo “var parent = document.getElementById(\”post-333\”);”;
echo “var h1tag = parent.getElementsByTagName(\”h1\”)[0];”;
echo “h1tag.innerHTML=\”Publications by $arr[$authorcode]\”;”;
echo “document.title=\”Publications by “.html_entity_decode($arr[$authorcode], ENT_QUOTES, “UTF-8″).”\””;
echo “}”;
echo “document.onload=myFunction();”;

echo “</script>”;

if (preg_match(‘/^\w+$/’, $authorcode)) {
$html= implode(“”,file(“../../bib/transducens_bibtex/html/”.$authorcode.”.html”));
echo $html;
}
else{
echo “<h4>Invalid author name! </h4>”;
}

[/php]