src/index.php
static public function display()
    {
        Sorter::sort(Listing::$files);
        $content = '<!DOCTYPE html>';
        $content .= sprintf('
<html xmlns="http://www.w3.org/1999/xhtml" lang="%s">', Translation::getCanonicalLocale());
        $content .= '
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . sprintf(Translation::trans('index_of'), Main::getDir()) . '</title>';
        $content .= static::getStyle();
        $content .= '
    </head>
    <body>';
        $content .= static::getTitle();
        $content .= '
        <table align="center">';
        $content .= static::getHeader();
        foreach (Listing::$files as $file) {
            $content .= static::getRow($file);
        }
        $content .= static::getFooter();
        $content .= '
        </table>';
        $content .= '
    </body>
</html>';
        die($content);
    }
static public function display()
    {
        Sorter::sort(Listing::$files);
        $content = '<!DOCTYPE html>';
        $content .= sprintf('
<html xmlns="http://www.w3.org/1999/xhtml" lang="%s">', Translation::getCanonicalLocale());
        $content .= '
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . sprintf(Translation::trans('index_of'), Main::getDir()) . '</title>';
        $content .= static::getStyle();
        $content .= '
    </head>
    <body>';
        $content .= static::getTitle();
        $content .= '
        <table align="center">';
        $content .= static::getHeader();
        foreach (Listing::$files as $file) {
            $content .= static::getRow($file);
        }
        $content .= static::getFooter();
        $content .= '
        </table>';
        $content .= '
    </body>
</html>';
        die($content);
    }
static public function display ( ) { Sorter :: sort ( Listing :: $ files ) ; $ content = '<!DOCTYPE html>' ; $ content .= sprintf ( '
<html xmlns="http://www.w3.org/1999/xhtml" lang="%s">' , Translation :: getCanonicalLocale ( ) ) ; $ content .= '
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . sprintf ( Translation :: trans ( 'index_of' ) , Main :: getDir ( ) ) . '</title>' ; $ content .= static :: getStyle ( ) ; $ content .= '
    </head>
    <body>' ; $ content .= static :: getTitle ( ) ; $ content .= '
        <table align="center">' ; $ content .= static :: getHeader ( ) ; foreach ( Listing :: $ files as $ file ) { $ content .= static :: getRow ( $ file ) ; } $ content .= static :: getFooter ( ) ; $ content .= '
        </table>' ; $ content .= '
    </body>
</html>' ; die ( $ content ) ; }
Display directory listing
Display directory listing