diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -237,7 +237,7 @@ while ($this_array = each($new_array)){ break; } - $listing[$listsize]['filename'] = $value; + $listing[$listsize]['filename'] = utf8_encode($value); $listing[$listsize]['type'] = $icon; $listing[$listsize]['modified'] = $key; $listing[$listsize]['size'] = $size_array[$key]; @@ -286,5 +286,7 @@ for ($i = 0; $i < count($listing); $i++) { <?php } else if ($_GET['format'] == "json") { echo json_encode($listing); +} else if ($_GET['format'] == "raw") { + print_r($listing); } ?> |