case "htaccess": $objEXT = "Apache Config File"; break; case "exe": $objEXT = "Windows Executable"; break; default: if ($objEXT != "") { $objEXT = strtoupper($objEXT) . " File"; } else { $objEXT = "Unknown"; } break; } // Gets and cleans up file size $filesize = $obj->getSize(); $size = pretty_filesize($filesize); $sizekey = $obj->getSize(); echo "\n\t\t<tr class='{$class}'>\n\t\t\n\t\t\t<td><a href=download.php?id=" . $objID . ">{$name}</a></td>\n\t\t\t<td><a href=download.php?id=" . $objID . ">{$objEXT}</a></td>\n\t\t\t<td sorttable_customkey='{$sizekey}'><a href=download.php?id=" . $objID . ">{$size}</a></td>\n\t\t\t<td sorttable_customkey='{$uploadDatekey}'><a href=download.php?id=" . $objID . ">{$uploadDate}</a></td>\n\t\t\t<td><a href=download.php?id=" . $objID . ">{$objWG}</a></td>\n\t\t\t<td><a href=download.php?id=" . $objID . ">{$objUSER}</a></td>\n\t\t</tr> "; } ?> </tbody> </table> </div> </body> </html>
case "htaccess": $extn = "Apache Config File"; break; case "exe": $extn = "Windows Executable"; break; default: if ($extn != "") { $extn = strtoupper($extn) . " File"; } else { $extn = "Unknown"; } break; } // Gets and cleans up file size $size = pretty_filesize($dirArray[$index]); $sizekey = filesize($dirArray[$index]); } // Output echo "\n\t\t<tr class='{$class}'>\n\t\t\t<td><a href='./{$namehref}'{$favicon} class='name'>{$name}</a></td>\n\t\t\t<td><a href='./{$namehref}'>{$extn}</a></td>\n\t\t\t<td sorttable_customkey='{$sizekey}'><a href='./{$namehref}'>{$size}</a></td>\n\t\t\t<td sorttable_customkey='{$timekey}'><a href='./{$namehref}'>{$modtime}</a></td>\n\t\t</tr>"; } } ?> </tbody> </table> <h2></h2> </div> </body> </html>