use '?random=jpg' to get an URL of a random file
parent
46714bff6b
commit
57ead42c49
|
@ -617,7 +617,7 @@ function main($path)
|
||||||
|
|
||||||
$files = list_files($path);
|
$files = list_files($path);
|
||||||
//echo json_encode(array_keys($files['children']), JSON_PRETTY_PRINT);
|
//echo json_encode(array_keys($files['children']), JSON_PRETTY_PRINT);
|
||||||
if ($_GET['random']!=='') {
|
if (isset($_GET['random'])&&$_GET['random']!=='') {
|
||||||
if ($_SERVER['ishidden']<4) {
|
if ($_SERVER['ishidden']<4) {
|
||||||
$tmp = [];
|
$tmp = [];
|
||||||
foreach (array_keys($files['children']) as $filename) {
|
foreach (array_keys($files['children']) as $filename) {
|
||||||
|
|
Loading…
Reference in New Issue