diff --git a/include/header.php b/include/header.php
new file mode 100644
index 0000000..b2b0096
--- /dev/null
+++ b/include/header.php
@@ -0,0 +1,11 @@
+
+
+
Magatzem de Dusk
+
+
+
+
+HEADER;
diff --git a/index.php b/index.php
index dfb9c61..a63c6f9 100755
--- a/index.php
+++ b/index.php
@@ -1,26 +1,24 @@
-
-
-
-
- Dusk Kino
-
-
-
-
+
%s', $filename, $css_class, $name);
+ return sprintf('%s', $filename, $css_class, $name);
}
function filter_files_dir($files_array, string $path) : array {
$ret_array = ['dir' => [], 'file' => []];
foreach($files_array as $file) {
+ // Hidden Files are not shown
+ if(substr($file, 0, 1) == '.') {
+ continue;
+ }
if(is_dir($path . $file)) {
// Append dir to array
$ret_array['dir'][] = $file;
@@ -33,6 +31,14 @@ function filter_files_dir($files_array, string $path) : array {
return $ret_array;
}
+echo($header);
+echo("\n");
+
+?>
+
+ Magatzem de Dusk
+Directoris');
+ }
+ echo('');
foreach($resource_array['dir'] as $dir) {
- if(substr($dir, 0, 1) == '.') {
- continue;
- }
- echo(link_from_file($request_uri . $dir));
+ echo('- ' . link_from_file($request_uri . $dir, null, "dir_link") . '
');
echo('
');
}
- echo('
');
+ echo('
');
}
+echo("\n");
+
//Show file links
{
+ if(!empty($resource_array['file'])) {
+ echo('Fitxers
');
+ }
+ echo('');
foreach($resource_array['file'] as $file) {
- if(substr($file, 0, 1) == '.') {
- continue;
- }
- echo(link_from_file($request_uri . $file));
+ echo('- ' . link_from_file($request_uri . $file, null, 'file_link') . '
');
echo('
');
}
- echo('
');
+ echo('
');
}
-?>
+echo("\n");
+?>