Add author pfp

This commit is contained in:
manfromhuh 2022-07-15 21:24:36 -04:00
parent 340997fa89
commit 4d4ce6f0a5

View File

@ -43,7 +43,12 @@ if (file_exists($dir) && is_dir($dir) ) {
foreach($file_array as $file) {//Renders the folder names as more readable titles. foreach($file_array as $file) {//Renders the folder names as more readable titles.
$link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces $link_title = str_replace('_',' ',$file);//Remove undersores and replace them with spaces
$link_title = str_replace($_replace,'',$link_title); $link_title = str_replace($_replace,'',$link_title);
echo("<ul><li><a href='$file'> $link_title </a></li></ul>\n");//Output the result. if (file_exists($file."/pfp.png")){
$pfp_path = $file."/pfp.png";
} else {
$pfp_path = "";
}
echo("<ul><li><img src=\".$pfp_path\" name=\"$file pfp\" width=\"20\" height=\"20\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
} }
} else { } else {
echo "<ul><li><a>No Authors<a></li></ul>"; echo "<ul><li><a>No Authors<a></li></ul>";