diff --git a/src/php/.editorconfig b/src/php/.editorconfig
new file mode 100644
index 00000000..d03ab4e6
--- /dev/null
+++ b/src/php/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*.{html,php,htm}]
+indent_style = space
+indent_size = 3
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
diff --git a/src/php/lib_rascsi.php b/src/php/lib_rascsi.php
index dd4158f6..59b01f7c 100644
--- a/src/php/lib_rascsi.php
+++ b/src/php/lib_rascsi.php
@@ -6,7 +6,11 @@
'. PHP_EOL;
@@ -14,8 +18,10 @@ function html_generate_header(){
echo '
RaSCSI - 68kmla Edition | '. PHP_EOL;
echo ' '. PHP_EOL;
echo ' '. PHP_EOL;
echo ' | '. PHP_EOL;
echo ' '. PHP_EOL;
@@ -23,6 +29,26 @@ function html_generate_header(){
//echo(exec('whoami'));
}
+function html_generate_image_file_select_list(){
+ $all_files = get_all_files();
+ foreach(explode(PHP_EOL, $all_files) as $this_file){
+ if(strpos($this_file, 'total') === 0){
+ continue;
+ }
+ $file_name = file_name_from_ls($this_file);
+ if(strlen($file_name) === 0){
+ continue;
+ }
+ // Ignore files that start with a .
+ if(strpos($file_name, '.') === 0){
+ continue;
+ }
+
+ echo ''.PHP_EOL;
+ }
+}
+
+
function html_generate_scsi_id_select_list(){
echo '