summaryrefslogtreecommitdiffstats
path: root/fakeremote/list.php
blob: 5c8d1c67ebd60313d85fec83760535bd2f0a7925 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);