website diff lib/random-image.php @ rev 1033
main: code cleaning
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 04 11:17:21 2012 +0300 (2012-04-04) |
parents | 6bdb0d107255 |
children | 388a05db640c |
line diff
1.1 --- a/lib/random-image.php Thu Mar 08 02:41:51 2012 +0100 1.2 +++ b/lib/random-image.php Wed Apr 04 11:17:21 2012 +0300 1.3 @@ -1,11 +1,11 @@ 1.4 <?php 1.5 1.6 $total = "8"; 1.7 -$folder = "images/slideshow"; 1.8 +$folder = "/images/slideshow"; 1.9 $start = "1"; 1.10 $random = mt_rand($start, $total); 1.11 $name = $random . ".png"; 1.12 1.13 -echo "<img src=\"$folder/$name\" alt=\"$name\" />"; 1.14 +echo "<img src=\"$folder/$name\" alt=\"SliTaz screenshot #$random\" />"; 1.15 1.16 ?>