Publication list
if( !function_exists('scandir') ) {
function scandir($directory, $sorting_order = 0) {
$dh = opendir($directory);
while( false !== ($filename = readdir($dh)) ) {
$files[] = $filename;
}
sort($files);
return($files);
}
}
$files = scandir(getcwd());
foreach ($files as $file)
{
if (substr($file, -5)=='.html')
{
$ancor = strtoupper(substr($file, 0, -5));
echo ''.$ancor.' ';
}
}
foreach ($files as $file)
{
if (substr($file, -5)=='.html')
{
echo '
';
$ancor = strtoupper(substr($file, 0, -5));
echo '';
$mtime = filemtime($file)+3600+3600;
echo ''.gmdate('Y-m-d H:i:s', $mtime).'
';
$text=file_get_contents($file);
# strip bad tags
$text=strip_tags($text, '
- ');
# parse for DOI
if (stristr($text, 'doi'))
{
$suchmuster = 'doi([: ]*)([A-Za-z0-9./-]*)';
$ersatz = 'DOI: \\2';
$text = eregi_replace($suchmuster, $ersatz, $text);
}
echo $text;
}
}
?>