Dusk Kino

"); echo("Inici
"); //Solve ocurrences where url has ?q=./ if (dirname($_GET["q"]) == ".") { $parentdir = ""; } else $parentdir = dirname($_GET["q"]); echo("Arrere
"); echo(""); } echo("
"); $is_there_files = false; //Show folder links $dirs = scandir($currentdir); echo("

Carpetes

"); foreach($dirs as $file) { if ($file[0] != '.' && is_dir("$currentdir/$file")) { echo("/$file/
\n"); } if(!is_dir("$currentdir/$file")) $is_there_files = true; } if($is_there_files){ echo("
"); //Show file links echo("

Fitxers

"); echo("
"); foreach($dirs as $file) { if ($file[0] != '.' && !is_dir("$currentdir/$file")) { echo("$file
\n"); } } echo("
"); } printf('

/%s

', $_GET["q"]); ?>