diff options
author | Simon Rettberg | 2013-11-16 15:42:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-11-16 15:42:16 +0100 |
commit | 633e43127c6d1a96d47587eed2739bdaff6c3d4f (patch) | |
tree | afe22b5cef77a5a054388d05f6a2c106dcb4d60b /external/tgz/list.php | |
parent | Add custom config.tgz upload functionality (diff) | |
download | slx-admin-633e43127c6d1a96d47587eed2739bdaff6c3d4f.tar.gz slx-admin-633e43127c6d1a96d47587eed2739bdaff6c3d4f.tar.xz slx-admin-633e43127c6d1a96d47587eed2739bdaff6c3d4f.zip |
Add minilinux download functionality and ipxe compilation scripts
Diffstat (limited to 'external/tgz/list.php')
-rw-r--r-- | external/tgz/list.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/external/tgz/list.php b/external/tgz/list.php new file mode 100644 index 00000000..5c8d1c67 --- /dev/null +++ b/external/tgz/list.php @@ -0,0 +1,24 @@ +<?php + +/* +echo '['; + +$first = true; +foreach (glob('./*.tgz') as $file) { + if (!$first) echo ', '; + $first = false; + echo ' { "file" : "' . basename($file) . '", "description" : "<Beschreibung>" }'; +} +echo ' ]'; +*/ + +$files = array(); +foreach (glob('./*.tgz') as $file) { + $files[] = array( + 'file' => basename($file), + 'description' => 'Eine sinnvolle Beschreibung' + ); +} + +echo json_encode($files); + |