* **/ //127.0.0.1/Master/Alles/overdose/index.php?t=Beautiful Brutalism&d=brutalismus&s=200&smax=40&smin=2000&i=1 if(isset($_GET['d'])){ $dir = $_GET['d']; } else { echo("Technische Schwierigkeiten :("); exit(); } $title = isset($_GET['t'])? $_GET['t'] : "Overdose: /" . $dir ."/"; $sourcelinks = isset($_GET['l'])? $_GET['l'] : []; $initial_speed = isset($_GET['s'])? $_GET['s'] : 200; //in Milliseconds (less = faster) //Show playbutton and speedslider and allow mouse controls? $allowInterface = isset($_GET['noui']) ? false : true; //User interface options $min_speed = isset($_GET['smin']) ? $_GET['smin'] : 2000; $max_speed = isset($_GET['smax']) ? $_GET['smax'] : 40; //must be > 0 $steps = 10; //Some web servers don't offer glob_brace, if this is the case for you replace >> .{jpg,png,bmp}", GLOB_BRACE << with >> " << in the following line. //This way you'll have to take care to have only image files in your directory. $images = glob("$dir/*"); //$images = glob("$dir/*.{jpg,JPG,jpeg,JPEG,png,PNG,bmp,BMP}", GLOB_BRACE); $js_images = json_encode($images); ?> <?=$title ?>