Bud nastav .htaccess
nebo udelej soubor index.php a do nej uloz zhruba tohle:
<html>
<title>Trinovo upravy</title>
<body bgcolor="black" link="gray" alink="gray" vlink="gray">
<font color="white">
<b>DDR</b> (Dance Dance Revolution).<br> Songy s upravenym casovanim .... <br> * <a href="http://ddrforum.pocitac.com">DDRforum</a>
<hr>
<?php
# Do we have a path? if not, it's the current directory
$path = $_GET["path"];
if( !isset( $path ) || $path == "" ) {
$path = ".";
}
# Print out for navigation
print "Aktualni cesta: <b>" . $path . "</b><br />";
# Initialise list arrays, directories and files separately and array counters for them
$d_arr = array(); $d = 0;
$f_arr = array(); $f = 0;
# Open possibly available directory
if( is_dir( $path ) ) {
if( $handle = opendir( $path ) ) {
while( false !== ( $file = readdir( $handle ) ) ) {
# Make sure we don't push parental directories or dotfiles (unix) into the arrays
if( $file != "." && $file != ".." && $file[0] != "." ) {
if( is_dir( $path . "/" . $file ) )
# Create array for directories
$d_arr[$d++] = $file;
else
# Create array for files
$f_arr[$f++] = $file;
}
}
}
}
# Wrap things up if we're in a directory
if( is_dir( $handle ) ) closedir( $handle );
# Sort and reset the arrays
asort( $d_arr ); reset( $d_arr );
asort( $f_arr ); reset( $f_arr );
# Print a parent directory link
$d_prev = substr( $path, 0, ( strrpos( dirname( $path . "/." ), "/" ) ) );
print "<a href=\"?path=" . $d_prev . "\"> Nadrazeny adresar </a><br />\n";
# Print the directory list
for( $i=0; $i < count( $d_arr ); $i++ ) {
# Print with query string
print "[ D ] <a href=\"?path=" . $path . "/" . $d_arr[$i] . "\">" . $d_arr[$i] . "</a>/<br />\n";
}
# Print file list
for( $i=0; $i < count( $f_arr ); $i++ ) {
# Only print path and filename
print "[ F ] <a href=\"" . $path . "/" . $f_arr[$i] . "\"> " . $f_arr[$i] . "</a>";
# We may want a file size. NOTE: needs $path to stat
if( filesize( $path . "/" . $f_arr[$i] ) >= 1024 ) {
# Size in kilobytes
print " " . round( filesize( $path . "/" . $f_arr[$i] ) / 1024, 1 ) . " KB<br />\n";
} elseif( filesize( $path . "/" . $f_arr[$i] ) >= 1048576 ) {
# Size in megabytes
print " " . round( filesize( $path . "/" . $f_arr[$i] ) / 1024 / 1024, 1 ) . " MB<br />\n";
} else {
# Size in bytes
print " " . filesize( $path . "/" . $f_arr[$i] ) . " bytu<br />\n";
}
}
?>
<hr>
</font>
</html> |
... jinak me Love and Joy sedi pekne, ale ta verze co ma Molik je pekne posunuty
Divny divny ... asi se rozsirila nejaka blba verze. Nekdo si hral s F6 a tohle je vysledek.