website view lib/random-image.php @ rev 1326

en/index.php: tiny edits
author Paul Issott <paul@slitaz.org>
date Sat Mar 17 09:36:44 2018 +0000 (2018-03-17)
parents e06721d4f040
children
line source
1 <?php
3 $total = "15";
4 $folder = "/images/slideshow";
5 $start = "1";
6 $random = mt_rand($start, $total);
7 $name = $random . ".png";
9 echo "<img src=\"$folder/$name\" alt=\"SliTaz screenshot #$random\" />";
11 ?>